Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unimport

Package Overview
Dependencies
Maintainers
3
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unimport - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

dist/shared/unimport.1330341c.mjs

2

dist/addons.d.ts

@@ -1,2 +0,2 @@

import { l as Addon } from './types-e4738ae5.js';
import { m as Addon } from './types-0d3b142b.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-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 { P as Preset, I as Import, B as BuiltinPresetName, a as InlinePreset, T as TypeDeclarationOptions, b as ImportInjectionResult, S as ScanDirExportsOptions, U as UnimportOptions, c as Thenable, d as InjectImportsOptions, e as InstallGlobalOptions } from './types-0d3b142b.js';
export { m as Addon, A as AddonsOptions, B as BuiltinPresetName, I as Import, h as ImportCommon, b as ImportInjectionResult, g as ImportName, d as InjectImportsOptions, a as InlinePreset, e as InstallGlobalOptions, M as ModuleId, j as PackagePreset, l as PathFromResolver, P as Preset, i as PresetImport, S as ScanDirExportsOptions, c as Thenable, T as TypeDeclarationOptions, k as UnimportContext, U as UnimportOptions, f as builtinPresets } from './types-0d3b142b.js';
import MagicString from 'magic-string';

@@ -25,6 +25,3 @@ import * as mlly from 'mlly';

declare function getMagicString(code: string | MagicString): MagicString;
declare function addImportToCode(code: string | MagicString, imports: Import[], isCJS?: boolean, mergeExisting?: boolean): {
s: MagicString;
readonly code: string;
};
declare function addImportToCode(code: string | MagicString, imports: Import[], isCJS?: boolean, mergeExisting?: boolean): ImportInjectionResult;
declare function normalizeImports(imports: Import[]): Import[];

@@ -47,6 +44,3 @@ declare function resolveIdAbsolute(id: string, parentId?: string): Promise<any>;

}>;
injectImports: (code: string | MagicString, id?: string, options?: InjectImportsOptions) => Promise<{
s: MagicString;
readonly code: string;
}>;
injectImports: (code: string | MagicString, id?: string, options?: InjectImportsOptions) => Promise<ImportInjectionResult>;
toExports: (filepath?: string) => Promise<string>;

@@ -53,0 +47,0 @@ parseVirtualImports: (code: string) => mlly.ParsedStaticImport[];

import * as unplugin from 'unplugin';
import { FilterPattern } from '@rollup/pluginutils';
import { U as UnimportOptions } from './types-e4738ae5.js';
import { U as UnimportOptions } from './types-0d3b142b.js';
import 'magic-string';

@@ -5,0 +5,0 @@

{
"name": "unimport",
"version": "1.0.2",
"version": "1.1.0",
"description": "Unified utils for auto importing APIs in modules",

@@ -60,13 +60,13 @@ "repository": "unjs/unimport",

"@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",
"@vitest/coverage-c8": "^0.26.0",
"eslint": "^8.30.0",
"h3": "^1.0.2",
"jquery": "^3.6.2",
"standard-version": "^9.5.0",
"typescript": "^4.9.4",
"unbuild": "^1.0.2",
"vitest": "^0.25.7",
"vue-tsc": "^1.0.13"
"vitest": "^0.26.0",
"vue-tsc": "^1.0.16"
},
"packageManager": "pnpm@7.18.1"
"packageManager": "pnpm@7.18.2"
}

@@ -214,2 +214,21 @@ # unimport

### Opt-out Auto Import
You can opt-out auto import for specific modules by adding a comment:
```ts
// @unimport-disable
```
It's can be customized by setting `commentsDisable`:
```ts
Unimport.vite({
commentsDisable: [
'@unimport-disable',
'@custom-imports-disable',
]
})
```
### Vue Template Auto Import

@@ -216,0 +235,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

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