Socket
Socket
Sign inDemoInstall

unplugin-icons

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unplugin-icons - npm Package Compare versions

Comparing version 0.13.1 to 0.13.2

dist/chunk-7AE23MQ5.js

6

dist/index.js
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunk6LRP52NFjs = require('./chunk-6LRP52NF.js');
require('./chunk-QYXOJ5JT.js');
var _chunkDSYUXALKjs = require('./chunk-DSYUXALK.js');
require('./chunk-7AE23MQ5.js');
require('./chunk-GGNOJ77I.js');
exports.default = _chunk6LRP52NFjs.src_default;
exports.default = _chunkDSYUXALKjs.src_default;
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkQYXOJ5JTjs = require('./chunk-QYXOJ5JT.js');
var _chunk7AE23MQ5js = require('./chunk-7AE23MQ5.js');
// src/loaders.ts

@@ -12,4 +13,5 @@ var _fs = require('fs');

`${dir}/${name}.svg`,
`${dir}/${_chunkQYXOJ5JTjs.camelize.call(void 0, name)}.svg`,
`${dir}/${_chunkQYXOJ5JTjs.pascalize.call(void 0, name)}.svg`
`${dir}/${_chunk7AE23MQ5js.camelize.call(void 0, name)}.svg`,
`${dir}/${_chunk7AE23MQ5js.pascalize.call(void 0, name)}.svg`,
`${dir}/${_chunk7AE23MQ5js.snakelize.call(void 0, name)}.svg`
];

@@ -16,0 +18,0 @@ for (const path of pathes) {

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunk6LRP52NFjs = require('./chunk-6LRP52NF.js');
require('./chunk-QYXOJ5JT.js');
var _chunkDSYUXALKjs = require('./chunk-DSYUXALK.js');
require('./chunk-7AE23MQ5.js');
require('./chunk-GGNOJ77I.js');

@@ -11,7 +11,7 @@

config.plugins = config.plugins || [];
config.plugins.unshift(_chunk6LRP52NFjs.src_default.webpack(options));
config.plugins.unshift(_chunkDSYUXALKjs.src_default.webpack(options));
});
this.nuxt.hook("vite:extend", async (vite) => {
vite.config.plugins = vite.config.plugins || [];
vite.config.plugins.push(_chunk6LRP52NFjs.src_default.vite(options));
vite.config.plugins.push(_chunkDSYUXALKjs.src_default.vite(options));
});

@@ -18,0 +18,0 @@ }

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunkQYXOJ5JTjs = require('./chunk-QYXOJ5JT.js');
var _chunk7AE23MQ5js = require('./chunk-7AE23MQ5.js');

@@ -21,3 +21,3 @@ // src/resolver.ts

} = options;
const prefix = rawPrefix ? `${_chunkQYXOJ5JTjs.camelToKebab.call(void 0, rawPrefix)}-` : "";
const prefix = rawPrefix ? `${_chunk7AE23MQ5js.camelToKebab.call(void 0, rawPrefix)}-` : "";
const ext = extension ? extension.startsWith(".") ? extension : `.${extension}` : "";

@@ -31,3 +31,3 @@ const collections2 = _utils.uniq.call(void 0, [

return (name) => {
const kebab = _chunkQYXOJ5JTjs.camelToKebab.call(void 0, name);
const kebab = _chunk7AE23MQ5js.camelToKebab.call(void 0, name);
if (!kebab.startsWith(prefix))

@@ -34,0 +34,0 @@ return;

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunk6LRP52NFjs = require('./chunk-6LRP52NF.js');
require('./chunk-QYXOJ5JT.js');
var _chunkDSYUXALKjs = require('./chunk-DSYUXALK.js');
require('./chunk-7AE23MQ5.js');
require('./chunk-GGNOJ77I.js');
// src/rollup.ts
var rollup_default = _chunk6LRP52NFjs.src_default.rollup;
var rollup_default = _chunkDSYUXALKjs.src_default.rollup;

@@ -10,0 +10,0 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunk6LRP52NFjs = require('./chunk-6LRP52NF.js');
require('./chunk-QYXOJ5JT.js');
var _chunkDSYUXALKjs = require('./chunk-DSYUXALK.js');
require('./chunk-7AE23MQ5.js');
require('./chunk-GGNOJ77I.js');
// src/vite.ts
var vite_default = _chunk6LRP52NFjs.src_default.vite;
var vite_default = _chunkDSYUXALKjs.src_default.vite;

@@ -10,0 +10,0 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _chunk6LRP52NFjs = require('./chunk-6LRP52NF.js');
require('./chunk-QYXOJ5JT.js');
var _chunkDSYUXALKjs = require('./chunk-DSYUXALK.js');
require('./chunk-7AE23MQ5.js');
require('./chunk-GGNOJ77I.js');
// src/webpack.ts
var webpack_default = _chunk6LRP52NFjs.src_default.webpack;
var webpack_default = _chunkDSYUXALKjs.src_default.webpack;

@@ -10,0 +10,0 @@

{
"name": "unplugin-icons",
"version": "0.13.1",
"version": "0.13.2",
"description": "Access thousands of icons as components on-demand universally",

@@ -102,18 +102,18 @@ "homepage": "https://github.com/antfu/unplugin-icons",

"@antfu/eslint-config": "^0.16.1",
"@iconify/json": "^2.0.34",
"@iconify/json": "^2.1.2",
"@iconify/types": "^1.0.12",
"@svgr/core": "^6.2.1",
"@types/debug": "^4.1.7",
"@types/node": "^17.0.16",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@vue/compiler-sfc": "^3.2.30",
"@types/node": "^17.0.18",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@vue/compiler-sfc": "^3.2.31",
"bumpp": "^7.1.1",
"cross-env": "^7.0.3",
"eslint": "^8.8.0",
"eslint": "^8.9.0",
"esno": "^0.14.1",
"rollup": "^2.67.1",
"rollup": "^2.67.3",
"tsup": "^5.11.13",
"typescript": "^4.5.5",
"vite": "^2.7.13",
"vitest": "^0.2.8"
"vite": "^2.8.4",
"vitest": "^0.4.0"
},

@@ -120,0 +120,0 @@ "peerDependencies": {

@@ -457,2 +457,27 @@ # unplugin-icons

## Use RAW compiler from query params
From `v0.13.2` you can also use `raw` compiler to access the `svg` icon and use it on your html templates, just add `raw` to the icon query param.
For example, using `vue3`:
```vue
<script setup lang='ts'>
import RawMdiAlarmOff from '~icons/mdi/alarm-off?raw&width=4em&height=4em'
import RawMdiAlarmOff2 from '~icons/mdi/alarm-off?raw&width=1em&height=1em'
</script>
<template>
<!-- raw example -->
<pre>
import RawMdiAlarmOff from '~icons/mdi/alarm-off?raw&width=4em&height=4em'
{{ RawMdiAlarmOff }}
import RawMdiAlarmOff2 from '~icons/mdi/alarm-off?raw&width=1em&height=1em'
{{ RawMdiAlarmOff2 }}
</pre>
<!-- svg example -->
<span v-html="RawMdiAlarmOff"></span>
<span v-html="RawMdiAlarmOff2"></span>
</template>
```
## Custom Icons

@@ -459,0 +484,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc