nuxt-lodash
Advanced tools
Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "nuxt-lodash", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Lodash auto-import for Nuxt.js", | ||
@@ -20,9 +20,2 @@ "keywords": [ | ||
}, | ||
"exports": { | ||
".": "./module.mjs", | ||
"./functions": { | ||
"import": "./functions.mjs", | ||
"types": "./functions.d.ts" | ||
} | ||
}, | ||
"type": "module", | ||
@@ -29,0 +22,0 @@ "main": "./module.mjs", |
@@ -11,3 +11,3 @@ <h1>Nuxt 3 - lodash</h1> | ||
<h4>Lodash auto-import module for Nuxt3, supports custom prefix and list of exludes<h4> | ||
<h4><a href="https://lodash.com/">Lodash</a> auto-import module for <a href="https://nuxtjs.org/">Nuxt3</a>, supports custom prefix, list of exludes and list of aliases<h4> | ||
@@ -32,2 +32,6 @@ ## 📦 Install | ||
exclude: ["map"], | ||
alias: [ | ||
["camelCase", "stringToCamelCase"], // will result it useStringToCamelCase | ||
["kebabCase", "stringToKebabCase"], // will result it useStringToKebabCase | ||
], | ||
}, | ||
@@ -45,2 +49,3 @@ ], | ||
| `exclude` | `[]` | list of functions to exlude from auto-imports | | ||
| `alias` | `[]` | list of aliases to rename specific functions | | ||
@@ -47,0 +52,0 @@ ## 💻 Example |
declare type NuxtLodashOptions = { | ||
/** | ||
* Prefix to be added before every lodash function. | ||
* false to disable prefix | ||
*/ | ||
prefix?: false | string; | ||
/** | ||
* Array of lodash funcions to be exluded from auto-imports | ||
*/ | ||
exludes?: string[]; | ||
}; | ||
declare module "nuxt3" { | ||
interface NuxtConfig { | ||
lodash?: NuxtLodashOptions; | ||
} | ||
/** | ||
* Prefix to be added before every lodash function. | ||
* false to disable prefix | ||
*/ | ||
prefix?: false | string; | ||
/** | ||
* Array of lodash funcions to be exluded from auto-imports | ||
*/ | ||
exclude?: string[]; | ||
/** | ||
* Iterable of string pairs to alias each function | ||
*/ | ||
alias?: Iterable<[string, string]>; | ||
}; | ||
declare module "nuxt3" { | ||
interface NuxtConfig { | ||
lodash?: NuxtLodashOptions; | ||
} | ||
declare module "@nuxt/types" { | ||
interface NuxtConfig { | ||
lodash?: NuxtLodashOptions; | ||
} | ||
} | ||
declare module "@nuxt/types" { | ||
interface NuxtConfig { | ||
lodash?: NuxtLodashOptions; | ||
} | ||
declare module "@nuxt/kit" { | ||
interface NuxtConfig { | ||
lodash?: NuxtLodashOptions; | ||
} | ||
} | ||
declare module "@nuxt/kit" { | ||
interface NuxtConfig { | ||
lodash?: NuxtLodashOptions; | ||
} | ||
export { NuxtLodashOptions }; | ||
} | ||
export { NuxtLodashOptions }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
63
0
5274
61