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 3.0.12 to 3.0.13

dist/shared/unimport.09da54a1.cjs

4

dist/addons.d.ts

@@ -1,3 +0,3 @@

export { v as vueTemplateAddon } from './vue-template-91da44d8.js';
import './types-4c92b6e9.js';
export { v as vueTemplateAddon } from './vue-template-4ea042fa.js';
import './types-234273bb.js';
import 'magic-string';

@@ -1,6 +0,6 @@

import { P as Preset, I as Import, B as BuiltinPresetName, a as InlinePreset, T as TypeDeclarationOptions, M as MagicStringResult, S as ScanDirExportsOptions, U as UnimportOptions, b as Thenable, c as InjectImportsOptions, d as ImportInjectionResult, e as UnimportMeta, f as UnimportContext, g as InstallGlobalOptions } from './types-4c92b6e9.js';
export { p as Addon, A as AddonsOptions, k as ImportCommon, j as ImportName, n as InjectionUsageRecord, i as ModuleId, m as PackagePreset, o as PathFromResolver, l as PresetImport, h as builtinPresets } from './types-4c92b6e9.js';
import { P as Preset, I as Import, B as BuiltinPresetName, a as InlinePreset, T as TypeDeclarationOptions, M as MagicStringResult, S as ScanDirExportsOptions, U as UnimportOptions, b as Thenable, c as InjectImportsOptions, d as ImportInjectionResult, e as UnimportMeta, f as UnimportContext, g as InstallGlobalOptions } from './types-234273bb.js';
export { p as Addon, A as AddonsOptions, k as ImportCommon, j as ImportName, n as InjectionUsageRecord, i as ModuleId, m as PackagePreset, o as PathFromResolver, l as PresetImport, h as builtinPresets } from './types-234273bb.js';
import MagicString from 'magic-string';
import * as mlly from 'mlly';
export { v as vueTemplateAddon } from './vue-template-91da44d8.js';
export { v as vueTemplateAddon } from './vue-template-4ea042fa.js';

@@ -27,3 +27,3 @@ declare function resolvePreset(preset: Preset): Promise<Import[]>;

declare function getMagicString(code: string | MagicString): MagicString;
declare function addImportToCode(code: string | MagicString, imports: Import[], isCJS?: boolean, mergeExisting?: boolean, injectAtLast?: boolean, firstOccurrence?: number): MagicStringResult;
declare function addImportToCode(code: string | MagicString, imports: Import[], isCJS?: boolean, mergeExisting?: boolean, injectAtLast?: boolean, firstOccurrence?: number, onResolved?: (imports: Import[]) => void | Import[], onStringified?: (str: string, imports: Import[]) => void | string): MagicStringResult;
declare function normalizeImports(imports: Import[]): Import[];

@@ -30,0 +30,0 @@ declare function resolveIdAbsolute(id: string, parentId?: string): Promise<string>;

import * as unplugin from 'unplugin';
import { FilterPattern } from '@rollup/pluginutils';
import { U as UnimportOptions } from './types-4c92b6e9.js';
import { U as UnimportOptions } from './types-234273bb.js';
import 'magic-string';

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

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

@@ -5,0 +5,0 @@ "repository": "unjs/unimport",

@@ -5,6 +5,5 @@ # unimport

[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions][github-actions-src]][github-actions-href]
[![Codecov][codecov-src]][codecov-href]
> Unified utils for auto importing APIs in modules
> Unified utils for auto importing APIs in modules, used in [nuxt](https://github.com/nuxt/nuxt) and [unplugin-auto-import](https://github.com/antfu/unplugin-auto-import)

@@ -11,0 +10,0 @@ ## Features

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

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