Comparing version 0.0.1 to 0.0.2
@@ -1,5 +0,24 @@ | ||
import * as magic_string from 'magic-string'; | ||
import { U as UnimportOptions, I as Import } from './types-4e434457'; | ||
export { I as Import, a as ImportName, M as ModuleId, b as Preset, P as PresetImport, U as UnimportOptions } from './types-4e434457'; | ||
import { P as Preset, I as Import, B as BuiltinPresetName, U as UnimportOptions } from './types-e15aa7ca'; | ||
export { B as BuiltinPresetName, I as Import, a as ImportName, M as ModuleId, P as Preset, c as PresetImport, U as UnimportOptions, b as builtinPresets } from './types-e15aa7ca'; | ||
import * as MagicString from 'magic-string'; | ||
import MagicString__default from 'magic-string'; | ||
declare function resolvePreset(preset: Preset): Import[]; | ||
declare function resolveBuiltinPresets(presets: (BuiltinPresetName | Preset)[]): Import[]; | ||
declare const excludeRE: RegExp[]; | ||
declare const importAsRE: RegExp; | ||
declare const separatorRE: RegExp; | ||
declare function defineUnimportPreset(preset: Preset): Preset; | ||
declare function stripCommentsAndStrings(code: string): string; | ||
declare function toImports(imports: Import[], isCJS?: boolean): string; | ||
declare function dedupeImports(imports: Import[], warn: (msg: string) => void): Import[]; | ||
declare function toExports(imports: Import[]): string; | ||
declare function toTypeDeclrationItems(imports: Import[]): string[]; | ||
declare function toTypeDeclrationFile(imports: Import[]): string; | ||
declare function addImportToCode(code: string, imports: Import[], isCJS?: boolean, mergeExisting?: boolean): { | ||
s: MagicString__default; | ||
code: string; | ||
}; | ||
declare type Unimport = ReturnType<typeof createUnimport>; | ||
@@ -13,3 +32,3 @@ declare function createUnimport(opts: Partial<UnimportOptions>): { | ||
addImports: (code: string, mergeExisting?: boolean) => { | ||
s: magic_string.default; | ||
s: MagicString.default; | ||
code: string; | ||
@@ -20,2 +39,2 @@ }; | ||
export { Unimport, createUnimport }; | ||
export { Unimport, addImportToCode, createUnimport, dedupeImports, defineUnimportPreset, excludeRE, importAsRE, resolveBuiltinPresets, resolvePreset, separatorRE, stripCommentsAndStrings, toExports, toImports, toTypeDeclrationFile, toTypeDeclrationItems }; |
import * as unplugin from 'unplugin'; | ||
import { FilterPattern } from '@rollup/pluginutils'; | ||
import { U as UnimportOptions } from './types-4e434457'; | ||
import { U as UnimportOptions } from './types-e15aa7ca'; | ||
@@ -5,0 +5,0 @@ interface UnimportPluginOptions extends UnimportOptions { |
{ | ||
"name": "unimport", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/unimport", |
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
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
44863
12
1544
1
7