@unocss/preset-icons 0.45.26 → 0.45.29
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/browser.cjs +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/shared/{preset-icons.0f5b1443.mjs → preset-icons.0877714d.mjs} +1 -1
- package/dist/shared/{preset-icons.b3a2fafc.cjs → preset-icons.54fbfd28.cjs} +1 -1
- package/package.json +4 -4
package/dist/browser.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const cdn = require('./shared/preset-icons.
|
|
5
|
+
const cdn = require('./shared/preset-icons.54fbfd28.cjs');
|
|
6
6
|
const core = require('./core.cjs');
|
|
7
7
|
require('ohmyfetch');
|
|
8
8
|
require('@unocss/core');
|
package/dist/browser.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createCDNLoader, l as loadIcon } from './shared/preset-icons.
|
|
1
|
+
import { c as createCDNLoader, l as loadIcon } from './shared/preset-icons.0877714d.mjs';
|
|
2
2
|
import { createPresetIcons } from './core.mjs';
|
|
3
3
|
export { combineLoaders, createPresetIcons } from './core.mjs';
|
|
4
4
|
import 'ohmyfetch';
|
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const cdn = require('./shared/preset-icons.
|
|
5
|
+
const cdn = require('./shared/preset-icons.54fbfd28.cjs');
|
|
6
6
|
const core = require('./core.cjs');
|
|
7
7
|
require('ohmyfetch');
|
|
8
8
|
require('@unocss/core');
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createCDNLoader, l as loadIcon } from './shared/preset-icons.
|
|
1
|
+
import { c as createCDNLoader, l as loadIcon } from './shared/preset-icons.0877714d.mjs';
|
|
2
2
|
import { createPresetIcons, combineLoaders } from './core.mjs';
|
|
3
3
|
export { combineLoaders, createPresetIcons } from './core.mjs';
|
|
4
4
|
import 'ohmyfetch';
|
|
@@ -262,7 +262,7 @@ function iconToSVG(icon, customisations) {
|
|
|
262
262
|
"IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
263
263
|
|
|
264
264
|
function trimSVG(str) {
|
|
265
|
-
return str.replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').trim();
|
|
265
|
+
return str.replace(/(['"])\s*\n\s*([^>\\/\s])/g, "$1 $2").replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').trim();
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
function add(keyword, colors) {
|
|
@@ -264,7 +264,7 @@ function iconToSVG(icon, customisations) {
|
|
|
264
264
|
"IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
265
265
|
|
|
266
266
|
function trimSVG(str) {
|
|
267
|
-
return str.replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').trim();
|
|
267
|
+
return str.replace(/(['"])\s*\n\s*([^>\\/\s])/g, "$1 $2").replace(/(["';{}><])\s*\n\s*/g, "$1").replace(/\s*\n\s*/g, " ").replace(/\s+"/g, '"').replace(/="\s+/g, '="').trim();
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
function add(keyword, colors) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-icons",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.29",
|
|
4
4
|
"description": "Pure CSS Icons for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"*.css"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@iconify/utils": "^2.0.
|
|
51
|
-
"@unocss/core": "0.45.
|
|
52
|
-
"ohmyfetch": "^0.4.
|
|
50
|
+
"@iconify/utils": "^2.0.1",
|
|
51
|
+
"@unocss/core": "0.45.29",
|
|
52
|
+
"ohmyfetch": "^0.4.19"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@iconify/types": "^2.0.0"
|