Compare commits

...
5 Commits
Author SHA1 Message Date
Marco D'Auria 8d898d7170 fix(icon): sanitizer checks attribute name instead of value (#1087)
resolves #1088
2022-08-26 09:10:58 -04:00
Liam DeBeasi 7dd69094d1 merge release-6.0.2
6.0.2
2022-05-31 17:18:32 -04:00
Liam DeBeasi e79e5cd235 6.0.2 2022-05-31 17:17:27 -04:00
Liam DeBeasi 86a051ca63 merge release-6.0.1 2022-05-31 17:16:42 -04:00
Liam DeBeasi 28d0338ee0 fix(): improve compatibility with vite (#1066) 2022-05-31 17:14:57 -04:00
4 changed files with 15 additions and 15 deletions
+9 -9
View File
@@ -1,15 +1,15 @@
{
"name": "ionicons",
"version": "6.0.0",
"version": "6.0.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "ionicons",
"version": "6.0.0",
"version": "6.0.2",
"license": "MIT",
"dependencies": {
"@stencil/core": "~2.12.0"
"@stencil/core": "~2.16.0"
},
"devDependencies": {
"@types/fs-extra": "^9.0.6",
@@ -1134,9 +1134,9 @@
}
},
"node_modules/@stencil/core": {
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.12.1.tgz",
"integrity": "sha512-u24TZ+FEvjnZt5ZgIkLjLpUNsO6Ml3mUZqwmqk81w6RWWz75hgB5p4RFI5rvuErFeh2xvMIGo+pNdG24XUBz1A==",
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.16.0.tgz",
"integrity": "sha512-oKxPYxpH1no0oMFSf8EesuFBcn9hVpoqrpiS2WH0H50RKKL8hhKoxDfn/cNeD12L0Aj7kf6nNtexIllmkYG6lw==",
"bin": {
"stencil": "bin/stencil"
},
@@ -12396,9 +12396,9 @@
}
},
"@stencil/core": {
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.12.1.tgz",
"integrity": "sha512-u24TZ+FEvjnZt5ZgIkLjLpUNsO6Ml3mUZqwmqk81w6RWWz75hgB5p4RFI5rvuErFeh2xvMIGo+pNdG24XUBz1A=="
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/@stencil/core/-/core-2.16.0.tgz",
"integrity": "sha512-oKxPYxpH1no0oMFSf8EesuFBcn9hVpoqrpiS2WH0H50RKKL8hhKoxDfn/cNeD12L0Aj7kf6nNtexIllmkYG6lw=="
},
"@szmarczak/http-timer": {
"version": "4.0.5",
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "ionicons",
"version": "6.0.0",
"version": "6.0.2",
"description": "Premium icons for Ionic.",
"files": [
"components/",
@@ -24,7 +24,7 @@
"version": "npm run build"
},
"dependencies": {
"@stencil/core": "~2.12.0"
"@stencil/core": "~2.16.0"
},
"devDependencies": {
"@types/fs-extra": "^9.0.6",
+2 -2
View File
@@ -7,7 +7,7 @@ describe('isValid', () => {
const el = {
nodeType: 1,
nodeName: 'svg',
attributes: [{ value: 'onload' }],
attributes: [{ name: 'onload' }],
childNodes: []
} as any;
expect(isValid(el)).toBe(false);
@@ -17,7 +17,7 @@ describe('isValid', () => {
const el = {
nodeType: 1,
nodeName: 'svg',
attributes: [{ value: 'OnClIcK' }],
attributes: [{ name: 'OnClIcK' }],
childNodes: []
} as any;
expect(isValid(el)).toBe(false);
+2 -2
View File
@@ -34,8 +34,8 @@ export const isValid = (elm: HTMLElement) => {
}
for (let i = 0; i < elm.attributes.length; i++) {
const val = elm.attributes[i].value;
if (isStr(val) && val.toLowerCase().indexOf('on') === 0) {
const name = elm.attributes[i].name;
if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {
return false;
}
}