@iconify/tools 4.0.5 → 4.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,7 +98,7 @@ async function exportJSONPackage(iconSet, options) {
|
|
|
98
98
|
await misc_writeJson.writeJSONFile(`${dir}/${jsonFilename}`, data);
|
|
99
99
|
cjsImports.push(`const ${attr} = require('${relativeFile}');`);
|
|
100
100
|
mjsImports.push(
|
|
101
|
-
`import ${attr} from '${relativeFile}'
|
|
101
|
+
`import ${attr} from '${relativeFile}' with { type: 'json' };`
|
|
102
102
|
);
|
|
103
103
|
packageJSONIconSet[attr] = attr + ".json";
|
|
104
104
|
packageJSONExports[relativeFile] = relativeFile;
|
|
@@ -96,7 +96,7 @@ async function exportJSONPackage(iconSet, options) {
|
|
|
96
96
|
await writeJSONFile(`${dir}/${jsonFilename}`, data);
|
|
97
97
|
cjsImports.push(`const ${attr} = require('${relativeFile}');`);
|
|
98
98
|
mjsImports.push(
|
|
99
|
-
`import ${attr} from '${relativeFile}'
|
|
99
|
+
`import ${attr} from '${relativeFile}' with { type: 'json' };`
|
|
100
100
|
);
|
|
101
101
|
packageJSONIconSet[attr] = attr + ".json";
|
|
102
102
|
packageJSONExports[relativeFile] = relativeFile;
|
package/lib/svg/index.cjs
CHANGED
|
@@ -136,7 +136,7 @@ class SVG {
|
|
|
136
136
|
remove('xml:space="preserve"', "", "");
|
|
137
137
|
content = content.replace(/<g>\s*<\/g>/g, "");
|
|
138
138
|
this.$svg = cheerio__namespace.load(content.trim(), {
|
|
139
|
-
// @ts-expect-error Legacy attribute, kept because Cheerio types are a
|
|
139
|
+
// @ts-expect-error Legacy attribute, kept because Cheerio types are a unstable
|
|
140
140
|
lowerCaseAttributeNames: false,
|
|
141
141
|
xmlMode: true
|
|
142
142
|
});
|
package/lib/svg/index.mjs
CHANGED
|
@@ -120,7 +120,7 @@ class SVG {
|
|
|
120
120
|
remove('xml:space="preserve"', "", "");
|
|
121
121
|
content = content.replace(/<g>\s*<\/g>/g, "");
|
|
122
122
|
this.$svg = cheerio.load(content.trim(), {
|
|
123
|
-
// @ts-expect-error Legacy attribute, kept because Cheerio types are a
|
|
123
|
+
// @ts-expect-error Legacy attribute, kept because Cheerio types are a unstable
|
|
124
124
|
lowerCaseAttributeNames: false,
|
|
125
125
|
xmlMode: true
|
|
126
126
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
|
|
5
5
|
"author": "Vjacheslav Trushkin",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.6",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"bugs": "https://github.com/iconify/tools/issues",
|
|
9
9
|
"homepage": "https://github.com/iconify/tools",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"types": "./lib/index.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@iconify/types": "^2.0.0",
|
|
19
|
-
"@iconify/utils": "^2.1.
|
|
19
|
+
"@iconify/utils": "^2.1.32",
|
|
20
20
|
"@types/tar": "^6.1.13",
|
|
21
|
-
"axios": "^1.7.
|
|
21
|
+
"axios": "^1.7.7",
|
|
22
22
|
"cheerio": "1.0.0",
|
|
23
23
|
"domhandler": "^5.0.3",
|
|
24
24
|
"extract-zip": "^2.0.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/jest": "^29.5.12",
|
|
32
|
-
"@types/node": "^20.
|
|
32
|
+
"@types/node": "^20.16.2",
|
|
33
33
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
34
34
|
"@typescript-eslint/parser": "^6.21.0",
|
|
35
35
|
"cross-env": "^7.0.3",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"jest": "^29.7.0",
|
|
40
40
|
"prettier": "^3.3.3",
|
|
41
41
|
"rimraf": "^6.0.1",
|
|
42
|
-
"ts-jest": "^29.2.
|
|
42
|
+
"ts-jest": "^29.2.5",
|
|
43
43
|
"typescript": "^5.5.4",
|
|
44
44
|
"unbuild": "^2.0.0"
|
|
45
45
|
},
|