Comparing version 0.2.1 to 0.2.2
@@ -1,3 +0,3 @@ | ||
import { P as Preset, I as Import, B as BuiltinPresetName, T as TypeDeclrationOptions, S as ScanDirExportsOptions, U as UnimportOptions, a as InjectImportsOptions } from './types-0a276ff1.js'; | ||
export { h as Addon, A as AddonsOptions, B as BuiltinPresetName, I as Import, d as ImportCommon, c as ImportName, a as InjectImportsOptions, M as ModuleId, g as PathFromResolver, P as Preset, e as PresetImport, S as ScanDirExportsOptions, T as TypeDeclrationOptions, f as UnimportContext, U as UnimportOptions, b as builtinPresets } from './types-0a276ff1.js'; | ||
import { P as Preset, I as Import, B as BuiltinPresetName, T as TypeDeclrationOptions, S as ScanDirExportsOptions, U as UnimportOptions, a as Thenable, b as InjectImportsOptions } from './types-0260c723.js'; | ||
export { i as Addon, A as AddonsOptions, B as BuiltinPresetName, I as Import, e as ImportCommon, d as ImportName, b as InjectImportsOptions, M as ModuleId, h as PathFromResolver, P as Preset, f as PresetImport, S as ScanDirExportsOptions, a as Thenable, T as TypeDeclrationOptions, g as UnimportContext, U as UnimportOptions, c as builtinPresets } from './types-0260c723.js'; | ||
import MagicString from 'magic-string'; | ||
@@ -34,3 +34,3 @@ | ||
clearDynamicImports: () => void; | ||
modifyDynamicImports: (fn: (imports: Import[]) => Promise<void> | void) => Promise<void>; | ||
modifyDynamicImports: (fn: (imports: Import[]) => Thenable<void | Import[]>) => Promise<void>; | ||
getImports: () => Import[]; | ||
@@ -37,0 +37,0 @@ detectImports: (code: string) => Promise<{ |
import * as unplugin from 'unplugin'; | ||
import { FilterPattern } from '@rollup/pluginutils'; | ||
import { U as UnimportOptions } from './types-0a276ff1.js'; | ||
import { U as UnimportOptions } from './types-0260c723.js'; | ||
import 'magic-string'; | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "unimport", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Unified utils for auto importing APIs in modules", | ||
@@ -20,2 +20,7 @@ "repository": "unjs/unimport", | ||
}, | ||
"./addons": { | ||
"import": "./dist/addons.mjs", | ||
"require": "./dist/addons.cjs", | ||
"types": "./dist/addons.d.ts" | ||
}, | ||
"./*": "./*" | ||
@@ -44,5 +49,5 @@ }, | ||
"escape-string-regexp": "^5.0.0", | ||
"globby": "^13.1.1", | ||
"fast-glob": "^3.2.11", | ||
"local-pkg": "^0.4.1", | ||
"magic-string": "^0.26.1", | ||
"magic-string": "^0.26.2", | ||
"mlly": "^0.5.2", | ||
@@ -57,3 +62,2 @@ "pathe": "^0.3.0", | ||
"eslint": "latest", | ||
"fast-glob": "latest", | ||
"standard-version": "latest", | ||
@@ -63,5 +67,5 @@ "typescript": "latest", | ||
"vitest": "latest", | ||
"vue-tsc": "^0.34.11" | ||
"vue-tsc": "^0.34.16" | ||
}, | ||
"packageManager": "pnpm@7.0.1" | ||
"packageManager": "pnpm@7.1.5" | ||
} |
@@ -13,3 +13,3 @@ # unimport | ||
- Auto import registed APIs for Vite, Webpack or esbuild powered by [unplugin](https://github.com/unjs/unplugin) | ||
- TypeScript declartion file generation | ||
- TypeScript declaration file generation | ||
- Auto import for custom APIs defined under specific directories | ||
@@ -25,3 +25,3 @@ - Auto import for Vue template | ||
# yarn | ||
yarn install unimport | ||
yarn add unimport | ||
@@ -28,0 +28,0 @@ # pnpm |
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
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
65783
8
18
2099
+ Addedfast-glob@^3.2.11
- Removedglobby@^13.1.1
- Removeddir-glob@3.0.1(transitive)
- Removedglobby@13.2.2(transitive)
- Removedignore@5.3.2(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedslash@4.0.0(transitive)
Updatedmagic-string@^0.26.2