@iconify/json 2.0.29 → 2.0.30
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.
- package/collections.json +2 -2
- package/collections.md +2 -2
- package/composer.json +1 -1
- package/dist/index.js +53 -15
- package/dist/index.mjs +11 -4
- package/json/codicon.json +10 -1
- package/json/lucide.json +7 -1
- package/package.json +14 -17
- package/readme.md +1 -1
package/collections.json
CHANGED
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
},
|
|
735
735
|
"codicon": {
|
|
736
736
|
"name": "Codicons",
|
|
737
|
-
"total":
|
|
737
|
+
"total": 401,
|
|
738
738
|
"version": "0.0.27",
|
|
739
739
|
"author": {
|
|
740
740
|
"name": "Microsoft Corporation",
|
|
@@ -779,7 +779,7 @@
|
|
|
779
779
|
},
|
|
780
780
|
"lucide": {
|
|
781
781
|
"name": "Lucide",
|
|
782
|
-
"total":
|
|
782
|
+
"total": 542,
|
|
783
783
|
"author": {
|
|
784
784
|
"name": "Lucide Contributors",
|
|
785
785
|
"url": "https://github.com/lucide-icons/lucide"
|
package/collections.md
CHANGED
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
### Codicons
|
|
329
|
-
* Number of icons:
|
|
329
|
+
* Number of icons: 401
|
|
330
330
|
* Author: Microsoft Corporation
|
|
331
331
|
* URL: https://github.com/microsoft/vscode-codicons
|
|
332
332
|
* License: CC BY 4.0
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
|
|
345
345
|
|
|
346
346
|
### Lucide
|
|
347
|
-
* Number of icons:
|
|
347
|
+
* Number of icons: 542
|
|
348
348
|
* Author: Lucide Contributors
|
|
349
349
|
* URL: https://github.com/lucide-icons/lucide
|
|
350
350
|
* License: ISC
|
package/composer.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,25 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
11
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(module2))
|
|
13
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
14
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
19
|
+
return (module2, temp) => {
|
|
20
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
21
|
+
};
|
|
22
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23
|
+
|
|
24
|
+
// src/index.ts
|
|
25
|
+
var src_exports = {};
|
|
26
|
+
__export(src_exports, {
|
|
27
|
+
loadCollection: () => loadCollection,
|
|
28
|
+
locate: () => locate,
|
|
29
|
+
lookupCollection: () => lookupCollection,
|
|
30
|
+
lookupCollections: () => lookupCollections
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// node_modules/tsup/assets/cjs_shims.js
|
|
34
|
+
var getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
35
|
+
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
36
|
+
|
|
37
|
+
// src/index.ts
|
|
38
|
+
var import_fs = require("fs");
|
|
39
|
+
var import_url = require("url");
|
|
40
|
+
var import_pathe = require("pathe");
|
|
41
|
+
var _dirname = typeof __dirname !== "undefined" ? __dirname : (0, import_pathe.dirname)((0, import_url.fileURLToPath)(importMetaUrl));
|
|
42
|
+
var dir = (0, import_pathe.join)(_dirname, "/..");
|
|
43
|
+
var locate = (name) => (0, import_pathe.join)(dir, `./json/${name}.json`);
|
|
8
44
|
var loadCollection = async (path) => {
|
|
9
|
-
return JSON.parse(await
|
|
45
|
+
return JSON.parse(await import_fs.promises.readFile(path, "utf8"));
|
|
10
46
|
};
|
|
11
47
|
var lookupCollection = async (name) => {
|
|
12
48
|
return await loadCollection(locate(name));
|
|
13
49
|
};
|
|
14
50
|
var lookupCollections = async () => {
|
|
15
|
-
return JSON.parse(await
|
|
51
|
+
return JSON.parse(await import_fs.promises.readFile((0, import_pathe.join)(dir, "./collections.json"), "utf8"));
|
|
16
52
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
53
|
+
module.exports = __toCommonJS(src_exports);
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
loadCollection,
|
|
57
|
+
locate,
|
|
58
|
+
lookupCollection,
|
|
59
|
+
lookupCollections
|
|
60
|
+
});
|
|
23
61
|
/**
|
|
24
62
|
* This file is part of the iconify.design libraries.
|
|
25
63
|
*
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
+
// node_modules/tsup/assets/esm_shims.js
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import path from "path";
|
|
4
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
5
|
+
var getDirname = () => path.dirname(getFilename());
|
|
6
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
7
|
+
|
|
1
8
|
// src/index.ts
|
|
2
9
|
import { promises as fs } from "fs";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
10
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
4
11
|
import { dirname, join } from "pathe";
|
|
5
|
-
var _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(
|
|
12
|
+
var _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath2(import.meta.url));
|
|
6
13
|
var dir = join(_dirname, "/..");
|
|
7
14
|
var locate = (name) => join(dir, `./json/${name}.json`);
|
|
8
|
-
var loadCollection = async (
|
|
9
|
-
return JSON.parse(await fs.readFile(
|
|
15
|
+
var loadCollection = async (path2) => {
|
|
16
|
+
return JSON.parse(await fs.readFile(path2, "utf8"));
|
|
10
17
|
};
|
|
11
18
|
var lookupCollection = async (name) => {
|
|
12
19
|
return await loadCollection(locate(name));
|
package/json/codicon.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"prefix": "codicon",
|
|
3
3
|
"info": {
|
|
4
4
|
"name": "Codicons",
|
|
5
|
-
"total":
|
|
5
|
+
"total": 401,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Microsoft Corporation",
|
|
8
8
|
"url": "https://github.com/microsoft/vscode-codicons"
|
|
@@ -629,6 +629,12 @@
|
|
|
629
629
|
"layout-activitybar-right": {
|
|
630
630
|
"body": "<g fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 1L1 2v12l1 1h12l1-1V2l-1-1H2zm0 13V2h10v12H2z\"/></g>"
|
|
631
631
|
},
|
|
632
|
+
"layout-centered": {
|
|
633
|
+
"body": "<g fill=\"currentColor\"><path d=\"M2 1L1 2v12l1 1h12l1-1V2l-1-1H2zm0 13V2h4v12H2zm8 0V2h4v12h-4z\"/></g>"
|
|
634
|
+
},
|
|
635
|
+
"layout-menubar": {
|
|
636
|
+
"body": "<g fill=\"currentColor\"><path d=\"M6 3H3v1h3V3z\"/><path d=\"M3 5h3v1H3V5z\"/><path d=\"M6 7H3v1h3V7z\"/><path d=\"M2 1L1 2v12l1 1h12l1-1V2l-1-1H2zm0 13V2h12v12H2z\"/></g>"
|
|
637
|
+
},
|
|
632
638
|
"layout-panel": {
|
|
633
639
|
"body": "<g fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 1L1 2v12l1 1h12l1-1V2l-1-1H2zm0 9V2h12v8H2z\"/></g>"
|
|
634
640
|
},
|
|
@@ -1113,6 +1119,9 @@
|
|
|
1113
1119
|
"tag": {
|
|
1114
1120
|
"body": "<g fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M13.2 2H8.017l-.353.146L1 8.81v.707L6.183 14.7h.707l2.215-2.215A4.48 4.48 0 0 0 15.65 9c.027-.166.044-.332.051-.5a4.505 4.505 0 0 0-2-3.74V2.5l-.5-.5zm-.5 2.259A4.504 4.504 0 0 0 11.2 4a.5.5 0 1 0 0 1a3.5 3.5 0 0 1 1.5.338v2.138L8.775 11.4a.506.506 0 0 0-.217.217l-2.022 2.022l-4.475-4.476L8.224 3H12.7v1.259zm1 1.792a3.5 3.5 0 0 1 1 2.449a3.438 3.438 0 0 1-.051.5a3.487 3.487 0 0 1-4.793 2.735l3.698-3.698l.146-.354V6.051z\"/></g>"
|
|
1115
1121
|
},
|
|
1122
|
+
"target": {
|
|
1123
|
+
"body": "<g fill=\"currentColor\"><path d=\"M8 9a1 1 0 1 0 0-2a1 1 0 0 0 0 2z\"/><path d=\"M12 8a4 4 0 1 1-8 0a4 4 0 0 1 8 0zm-4 3a3 3 0 1 0 0-6a3 3 0 0 0 0 6z\"/><path d=\"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0zm-7 6A6 6 0 1 0 8 2a6 6 0 0 0 0 12z\"/></g>"
|
|
1124
|
+
},
|
|
1116
1125
|
"tasklist": {
|
|
1117
1126
|
"body": "<g fill=\"currentColor\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.57 6.699l5.693-4.936L8.585 1L3.273 5.596l-1.51-1.832L1 4.442l1.85 2.214l.72.043zM15 5H6.824l2.307-2H15v2zM6 7h9v2H6V7zm9 4H6v2h9v-2z\"/></g>"
|
|
1118
1127
|
},
|
package/json/lucide.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"prefix": "lucide",
|
|
3
3
|
"info": {
|
|
4
4
|
"name": "Lucide",
|
|
5
|
-
"total":
|
|
5
|
+
"total": 542,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Lucide Contributors",
|
|
8
8
|
"url": "https://github.com/lucide-icons/lucide"
|
|
@@ -1448,6 +1448,12 @@
|
|
|
1448
1448
|
"terminal-square": {
|
|
1449
1449
|
"body": "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M7 11l2-2l-2-2\"/><path d=\"M11 13h4\"/><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" ry=\"2\"/></g>"
|
|
1450
1450
|
},
|
|
1451
|
+
"text-cursor": {
|
|
1452
|
+
"body": "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1\"/><path d=\"M7 22h1a4 4 0 0 0 4-4v-1\"/><path d=\"M7 2h1a4 4 0 0 1 4 4v1\"/></g>"
|
|
1453
|
+
},
|
|
1454
|
+
"text-cursor-input": {
|
|
1455
|
+
"body": "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5.3 4h.9C7.7 4 9 5.3 9 6.7m0 0v10.5c0 1.6-1.1 2.7-2.7 2.7h-1M9 6.7v10.6a2.6 2.6 0 0 0 2.7 2.7h1M9 6.7C9 5.2 10.2 4 11.8 4h.9\"/><path d=\"M13.1 7.9h6.8c1.1 0 2.1 1 2.1 2.1v4c0 1.1-.9 2.1-2.1 2.1h-6.8\"/><path d=\"M4.8 16.1h-.7C3 16.1 2 15.1 2 14v-4c0-1.1 1-2.1 2.1-2.1h.7\"/></g>"
|
|
1456
|
+
},
|
|
1451
1457
|
"thermometer": {
|
|
1452
1458
|
"body": "<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2a2 2 0 0 0-2 2v10.5a4 4 0 1 0 4 0V4a2 2 0 0 0-2-2z\"/></g>"
|
|
1453
1459
|
},
|
package/package.json
CHANGED
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
"name": "@iconify/json",
|
|
3
3
|
"description": "Iconify icons collection in JSON format",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "2.0.
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"tag": "next"
|
|
8
|
-
},
|
|
5
|
+
"version": "2.0.30",
|
|
9
6
|
"homepage": "https://iconify.design/icon-sets/",
|
|
10
|
-
"bugs": "https://github.com/iconify/
|
|
7
|
+
"bugs": "https://github.com/iconify/icon-sets/issues",
|
|
11
8
|
"repository": {
|
|
12
9
|
"type": "git",
|
|
13
|
-
"url": "git+ssh://git@github.com/iconify/
|
|
10
|
+
"url": "git+ssh://git@github.com/iconify/icon-sets.git"
|
|
14
11
|
},
|
|
15
12
|
"exports": {
|
|
16
13
|
"./*": "./*",
|
|
@@ -46,17 +43,17 @@
|
|
|
46
43
|
"pathe": "^0.0.2"
|
|
47
44
|
},
|
|
48
45
|
"devDependencies": {
|
|
49
|
-
"@types/jest": "^27.0
|
|
50
|
-
"@types/node": "^
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
46
|
+
"@types/jest": "^27.4.0",
|
|
47
|
+
"@types/node": "^17.0.12",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
|
52
49
|
"cross-env": "^7.0.3",
|
|
53
|
-
"eslint": "^7.
|
|
54
|
-
"esno": "^0.
|
|
55
|
-
"jest": "^27.
|
|
56
|
-
"jest-each": "^27.
|
|
57
|
-
"ts-jest": "^27.
|
|
58
|
-
"ts-node": "^10.
|
|
59
|
-
"tsup": "^
|
|
60
|
-
"typescript": "^4.
|
|
50
|
+
"eslint": "^8.7.0",
|
|
51
|
+
"esno": "^0.14.0",
|
|
52
|
+
"jest": "^27.4.7",
|
|
53
|
+
"jest-each": "^27.4.6",
|
|
54
|
+
"ts-jest": "^27.1.3",
|
|
55
|
+
"ts-node": "^10.4.0",
|
|
56
|
+
"tsup": "^5.11.11",
|
|
57
|
+
"typescript": "^4.5.5"
|
|
61
58
|
}
|
|
62
59
|
}
|
package/readme.md
CHANGED
|
@@ -8,7 +8,7 @@ All icons have been normalized:
|
|
|
8
8
|
- Colors for monotone icons have been replaced with `currentColor`, making it easy to change icon color by changing text color.
|
|
9
9
|
- Icon content has been optimised to reduce its size.
|
|
10
10
|
|
|
11
|
-
Repository is updated by fully automated script, so it always contains latest icons from various sources.
|
|
11
|
+
Repository is frequently updated by fully automated script, so it always contains latest icons from various sources.
|
|
12
12
|
|
|
13
13
|
## Format and usage
|
|
14
14
|
|