@pikacss/plugin-icons 0.0.10 → 0.0.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.cjs CHANGED
@@ -107,7 +107,7 @@ function createIconsPlugin(lookupIconLoader) {
107
107
  iconifyCollectionsNames
108
108
  );
109
109
  if (parsed == null) {
110
- console.warn(`failed to load icon "${full}"`);
110
+ core.warn(`failed to load icon "${full}"`);
111
111
  return {};
112
112
  }
113
113
  const url = `url("data:image/svg+xml;utf8,${utils.encodeSvgForCss(parsed.svg)}")`;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { encodeSvgForCss, loadIcon } from '@iconify/utils';
2
- import { defineEnginePlugin, renderCSSStyleBlocks } from '@pikacss/core';
2
+ import { defineEnginePlugin, renderCSSStyleBlocks, warn } from '@pikacss/core';
3
3
  import { parseIconWithLoader, getEnvFlags, createNodeLoader, combineLoaders, createCDNFetchLoader } from '@unocss/preset-icons';
4
4
  import { $fetch } from 'ofetch';
5
5
 
@@ -105,7 +105,7 @@ function createIconsPlugin(lookupIconLoader) {
105
105
  iconifyCollectionsNames
106
106
  );
107
107
  if (parsed == null) {
108
- console.warn(`failed to load icon "${full}"`);
108
+ warn(`failed to load icon "${full}"`);
109
109
  return {};
110
110
  }
111
111
  const url = `url("data:image/svg+xml;utf8,${encodeSvgForCss(parsed.svg)}")`;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.0.10",
7
+ "version": "0.0.12",
8
8
  "author": "DevilTea <ch19980814@gmail.com>",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -38,11 +38,10 @@
38
38
  "@iconify/utils": "^2.3.0",
39
39
  "@unocss/preset-icons": "^65.4.3",
40
40
  "ofetch": "^1.4.1",
41
- "@pikacss/core": "0.0.10"
41
+ "@pikacss/core": "0.0.12"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "unbuild",
45
- "build:pack": "pnpm build && pnpm pack",
46
45
  "stub": "unbuild --stub",
47
46
  "typecheck": "pnpm typecheck:package && pnpm typecheck:test",
48
47
  "typecheck:package": "tsc --project ./tsconfig.package.json --noEmit",