@pikacss/plugin-icons 0.0.32 → 0.0.34
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.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +15 -8
package/dist/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ function createIconsPlugin(lookupIconLoader) {
|
|
|
115
115
|
usedProps
|
|
116
116
|
}, iconifyCollectionsNames);
|
|
117
117
|
if (parsed == null) {
|
|
118
|
-
|
|
118
|
+
__pikacss_core.log.warn(`failed to load icon "${full}"`);
|
|
119
119
|
return {};
|
|
120
120
|
}
|
|
121
121
|
const url = `url("data:image/svg+xml;utf8,${(0, __iconify_utils.encodeSvgForCss)(parsed.svg)}")`;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
2
|
import { encodeSvgForCss, loadIcon } from "@iconify/utils";
|
|
3
|
-
import { defineEnginePlugin,
|
|
3
|
+
import { defineEnginePlugin, log } from "@pikacss/core";
|
|
4
4
|
import { combineLoaders, createCDNFetchLoader, createNodeLoader, parseIconWithLoader } from "@unocss/preset-icons";
|
|
5
5
|
import { $fetch } from "ofetch";
|
|
6
6
|
|
|
@@ -87,7 +87,7 @@ function createIconsPlugin(lookupIconLoader) {
|
|
|
87
87
|
usedProps
|
|
88
88
|
}, iconifyCollectionsNames);
|
|
89
89
|
if (parsed == null) {
|
|
90
|
-
warn(`failed to load icon "${full}"`);
|
|
90
|
+
log.warn(`failed to load icon "${full}"`);
|
|
91
91
|
return {};
|
|
92
92
|
}
|
|
93
93
|
const url = `url("data:image/svg+xml;utf8,${encodeSvgForCss(parsed.svg)}")`;
|
package/package.json
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikacss/plugin-icons",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"
|
|
5
|
-
"access": "public"
|
|
6
|
-
},
|
|
7
|
-
"version": "0.0.32",
|
|
4
|
+
"version": "0.0.34",
|
|
8
5
|
"author": "DevilTea <ch19980814@gmail.com>",
|
|
9
6
|
"license": "MIT",
|
|
10
7
|
"repository": {
|
|
11
8
|
"type": "git",
|
|
12
|
-
"url": "
|
|
9
|
+
"url": "https://github.com/pikacss/pikacss.git",
|
|
13
10
|
"directory": "packages/plugin-icons"
|
|
14
11
|
},
|
|
15
12
|
"bugs": {
|
|
16
13
|
"url": "https://github.com/DevilTea/pikacss/issues"
|
|
17
14
|
},
|
|
18
|
-
"keywords": [
|
|
15
|
+
"keywords": [
|
|
16
|
+
"pikacss",
|
|
17
|
+
"atomic-css",
|
|
18
|
+
"css-in-js",
|
|
19
|
+
"atomic-css-in-js-engine",
|
|
20
|
+
"pikacss-plugin",
|
|
21
|
+
"icons"
|
|
22
|
+
],
|
|
19
23
|
"exports": {
|
|
20
24
|
".": {
|
|
21
25
|
"import": {
|
|
@@ -31,6 +35,9 @@
|
|
|
31
35
|
"main": "dist/index.cjs",
|
|
32
36
|
"module": "dist/index.mjs",
|
|
33
37
|
"types": "dist/index.d.mts",
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
34
41
|
"files": [
|
|
35
42
|
"dist"
|
|
36
43
|
],
|
|
@@ -38,10 +45,10 @@
|
|
|
38
45
|
"@iconify/utils": "^3.1.0",
|
|
39
46
|
"@unocss/preset-icons": "^66.5.9",
|
|
40
47
|
"ofetch": "^1.5.1",
|
|
41
|
-
"@pikacss/core": "0.0.
|
|
48
|
+
"@pikacss/core": "0.0.34"
|
|
42
49
|
},
|
|
43
50
|
"scripts": {
|
|
44
|
-
"build": "tsdown",
|
|
51
|
+
"build": "tsdown && pnpm exec publint",
|
|
45
52
|
"typecheck": "pnpm typecheck:package && pnpm typecheck:test",
|
|
46
53
|
"typecheck:package": "tsc --project ./tsconfig.package.json --noEmit",
|
|
47
54
|
"typecheck:test": "tsc --project ./tsconfig.tests.json --noEmit",
|