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 0.0.1 to 0.0.2

dist/chunks/context.cjs

29

dist/index.d.ts

@@ -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 };

2

dist/unplugin.d.ts
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

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