Comparing version 1.0.1 to 1.0.2
@@ -1,2 +0,2 @@ | ||
import { l as Addon } from './types-488f6d65.js'; | ||
import { l as Addon } from './types-e4738ae5.js'; | ||
import 'magic-string'; | ||
@@ -3,0 +3,0 @@ |
@@ -1,3 +0,3 @@ | ||
import { P as Preset, I as Import, B as BuiltinPresetName, a as InlinePreset, T as TypeDeclarationOptions, S as ScanDirExportsOptions, U as UnimportOptions, b as Thenable, c as InjectImportsOptions, d as InstallGlobalOptions } from './types-488f6d65.js'; | ||
export { l as Addon, A as AddonsOptions, B as BuiltinPresetName, I as Import, g as ImportCommon, f as ImportName, c as InjectImportsOptions, a as InlinePreset, d as InstallGlobalOptions, M as ModuleId, i as PackagePreset, k as PathFromResolver, P as Preset, h as PresetImport, S as ScanDirExportsOptions, b as Thenable, T as TypeDeclarationOptions, j as UnimportContext, U as UnimportOptions, e as builtinPresets } from './types-488f6d65.js'; | ||
import { P as Preset, I as Import, B as BuiltinPresetName, a as InlinePreset, T as TypeDeclarationOptions, S as ScanDirExportsOptions, U as UnimportOptions, b as Thenable, c as InjectImportsOptions, d as InstallGlobalOptions } from './types-e4738ae5.js'; | ||
export { l as Addon, A as AddonsOptions, B as BuiltinPresetName, I as Import, g as ImportCommon, f as ImportName, c as InjectImportsOptions, a as InlinePreset, d as InstallGlobalOptions, M as ModuleId, i as PackagePreset, k as PathFromResolver, P as Preset, h as PresetImport, S as ScanDirExportsOptions, b as Thenable, T as TypeDeclarationOptions, j as UnimportContext, U as UnimportOptions, e as builtinPresets } from './types-e4738ae5.js'; | ||
import MagicString from 'magic-string'; | ||
@@ -35,3 +35,3 @@ import * as mlly from 'mlly'; | ||
declare type Unimport = ReturnType<typeof createUnimport>; | ||
type Unimport = ReturnType<typeof createUnimport>; | ||
declare function createUnimport(opts: Partial<UnimportOptions>): { | ||
@@ -38,0 +38,0 @@ clearDynamicImports: () => void; |
import * as unplugin from 'unplugin'; | ||
import { FilterPattern } from '@rollup/pluginutils'; | ||
import { U as UnimportOptions } from './types-488f6d65.js'; | ||
import { U as UnimportOptions } from './types-e4738ae5.js'; | ||
import 'magic-string'; | ||
@@ -14,4 +14,4 @@ | ||
declare const defaultExcludes: RegExp[]; | ||
declare const _default: unplugin.UnpluginInstance<Partial<UnimportPluginOptions>, false>; | ||
declare const _default: unplugin.UnpluginInstance<Partial<UnimportPluginOptions>, boolean>; | ||
export { UnimportPluginOptions, _default as default, defaultExcludes, defaultIncludes }; |
{ | ||
"name": "unimport", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Unified utils for auto importing APIs in modules", | ||
@@ -50,3 +50,3 @@ "repository": "unjs/unimport", | ||
"local-pkg": "^0.4.2", | ||
"magic-string": "^0.26.7", | ||
"magic-string": "^0.27.0", | ||
"mlly": "^1.0.0", | ||
@@ -57,17 +57,17 @@ "pathe": "^1.0.0", | ||
"strip-literal": "^1.0.0", | ||
"unplugin": "^1.0.0" | ||
"unplugin": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"@nuxtjs/eslint-config-typescript": "^11.0.0", | ||
"@vitest/coverage-c8": "^0.25.2", | ||
"eslint": "^8.27.0", | ||
"@nuxtjs/eslint-config-typescript": "^12.0.0", | ||
"@vitest/coverage-c8": "^0.25.7", | ||
"eslint": "^8.29.0", | ||
"h3": "^1.0.1", | ||
"jquery": "^3.6.1", | ||
"standard-version": "^9.5.0", | ||
"typescript": "^4.8.4", | ||
"unbuild": "^1.0.1", | ||
"vitest": "^0.25.2", | ||
"vue-tsc": "^1.0.9" | ||
"typescript": "^4.9.4", | ||
"unbuild": "^1.0.2", | ||
"vitest": "^0.25.7", | ||
"vue-tsc": "^1.0.13" | ||
}, | ||
"packageManager": "pnpm@7.14.2" | ||
"packageManager": "pnpm@7.18.1" | ||
} |
@@ -12,3 +12,3 @@ # unimport | ||
- Auto import registed APIs for Vite, Webpack or esbuild powered by [unplugin](https://github.com/unjs/unplugin) | ||
- Auto import register APIs for Vite, Webpack or esbuild powered by [unplugin](https://github.com/unjs/unplugin) | ||
- TypeScript declaration file generation | ||
@@ -156,3 +156,3 @@ - Auto import for custom APIs defined under specific directories | ||
You can check out [`src/presets`](./src/presets/) for all the options avaliable or refer to the type declration. | ||
You can check out [`src/presets`](./src/presets/) for all the options available or refer to the type declaration. | ||
@@ -218,3 +218,3 @@ ###### Exports Auto Scan | ||
In Vue's template, usage of APIs are in different context than plain modules. Thus some custom transformation are required. To enable it, set `addons.vueTemplate` to `true`: | ||
In Vue's template, the usage of API is in a different context than plain modules. Thus some custom transformations are required. To enable it, set `addons.vueTemplate` to `true`: | ||
@@ -231,3 +231,3 @@ ```ts | ||
When auto-import a ref, inline operations won't be auto unwrapped. | ||
When auto-import a ref, inline operations won't be auto-unwrapped. | ||
@@ -234,0 +234,0 @@ ```ts |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
82550
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Addedmagic-string@0.27.0(transitive)
- Removedmagic-string@0.26.7(transitive)
- Removedsourcemap-codec@1.4.8(transitive)
Updatedmagic-string@^0.27.0
Updatedunplugin@^1.0.1