@unocss/preset-icons 0.12.8 → 0.12.12
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/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10,6 +10,8 @@ var _customisations = require('@iconify/utils/lib/customisations');
|
|
|
10
10
|
var _geticon = require('@iconify/utils/lib/icon-set/get-icon');
|
|
11
11
|
var COLLECTION_NAME_PARTS_MAX = 3;
|
|
12
12
|
async function searchForIcon(collection, id, collections, scale) {
|
|
13
|
+
if (!collection || !id)
|
|
14
|
+
return;
|
|
13
15
|
let iconSet = collections[collection];
|
|
14
16
|
if (typeof iconSet === "function")
|
|
15
17
|
iconSet = await iconSet();
|
package/dist/index.mjs
CHANGED
|
@@ -10,6 +10,8 @@ import { defaults as DefaultIconCustomizations } from "@iconify/utils/lib/custom
|
|
|
10
10
|
import { getIconData } from "@iconify/utils/lib/icon-set/get-icon";
|
|
11
11
|
var COLLECTION_NAME_PARTS_MAX = 3;
|
|
12
12
|
async function searchForIcon(collection, id, collections, scale) {
|
|
13
|
+
if (!collection || !id)
|
|
14
|
+
return;
|
|
13
15
|
let iconSet = collections[collection];
|
|
14
16
|
if (typeof iconSet === "function")
|
|
15
17
|
iconSet = await iconSet();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-icons",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.12",
|
|
4
4
|
"description": "Pure CSS Icons for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@iconify/utils": "^1.0.19",
|
|
46
|
-
"@unocss/core": "0.12.
|
|
46
|
+
"@unocss/core": "0.12.12",
|
|
47
47
|
"local-pkg": "^0.4.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|