@unocss/preset-icons
Advanced tools
Comparing version 0.12.6 to 0.12.7
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkBS7EEF5Tjs = require('./chunk-BS7EEF5T.js'); | ||
var _chunkRYT3GRM7js = require('./chunk-RYT3GRM7.js'); | ||
// src/index.ts | ||
var _core = require('@unocss/core'); | ||
var _build = require('@iconify/utils/lib/svg/build'); | ||
@@ -16,3 +16,3 @@ var _customisations = require('@iconify/utils/lib/customisations'); | ||
iconSet = await iconSet(); | ||
if (!iconSet && _chunkRYT3GRM7js.isNode) { | ||
if (!iconSet && _chunkBS7EEF5Tjs.isNode) { | ||
const { loadCollectionFromFS } = await Promise.resolve().then(() => require("./fs.js")); | ||
@@ -69,3 +69,3 @@ iconSet = await loadCollectionFromFS(collection); | ||
if (warn) | ||
_chunkRYT3GRM7js.warnOnce.call(void 0, `[unocss] failed to load icon "${full}"`); | ||
_core.warnOnce.call(void 0, `failed to load icon "${full}"`); | ||
return; | ||
@@ -76,3 +76,3 @@ } | ||
_mode = svg.includes("currentColor") ? "mask" : "background-img"; | ||
const url = `url("data:image/svg+xml;utf8,${_chunkRYT3GRM7js.encodeSvg.call(void 0, svg)}")`; | ||
const url = `url("data:image/svg+xml;utf8,${_chunkBS7EEF5Tjs.encodeSvg.call(void 0, svg)}")`; | ||
if (_mode === "mask") { | ||
@@ -79,0 +79,0 @@ return { |
declare const isNode: boolean; | ||
declare function warnOnce(msg: string): void; | ||
declare function encodeSvg(svg: string): string; | ||
export { encodeSvg, isNode, warnOnce }; | ||
export { encodeSvg, isNode }; |
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkBS7EEF5Tjs = require('./chunk-BS7EEF5T.js'); | ||
var _chunkRYT3GRM7js = require('./chunk-RYT3GRM7.js'); | ||
exports.encodeSvg = _chunkRYT3GRM7js.encodeSvg; exports.isNode = _chunkRYT3GRM7js.isNode; exports.warnOnce = _chunkRYT3GRM7js.warnOnce; | ||
exports.encodeSvg = _chunkBS7EEF5Tjs.encodeSvg; exports.isNode = _chunkBS7EEF5Tjs.isNode; |
{ | ||
"name": "@unocss/preset-icons", | ||
"version": "0.12.6", | ||
"version": "0.12.7", | ||
"description": "Pure CSS Icons for UnoCSS", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
"@iconify/utils": "^1.0.19", | ||
"@unocss/core": "0.12.6", | ||
"@unocss/core": "0.12.7", | ||
"local-pkg": "^0.4.0" | ||
@@ -49,0 +49,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16516
340
+ Added@unocss/core@0.12.7(transitive)
- Removed@unocss/core@0.12.6(transitive)
Updated@unocss/core@0.12.7