Socket
Socket
Sign inDemoInstall

mlly

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mlly - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

24

dist/index.d.ts

@@ -68,10 +68,10 @@ interface ESMImport {

*/
declare function resolveSync(id: string, opts: ResolveOptions): string;
declare function resolve(id: string, opts: ResolveOptions): Promise<string>;
declare function resolveSync(id: string, opts?: ResolveOptions): string;
declare function resolve(id: string, opts?: ResolveOptions): Promise<string>;
/**
* @deprecated please use `resolvePath` instead of `resolvePathSync`
*/
declare function resolvePathSync(id: string, opts: ResolveOptions): string;
declare function resolvePath(id: string, opts: ResolveOptions): Promise<any>;
declare function createResolve(defaults: ResolveOptions): (id: any, url: any) => Promise<string>;
declare function resolvePathSync(id: string, opts?: ResolveOptions): string;
declare function resolvePath(id: string, opts?: ResolveOptions): Promise<any>;
declare function createResolve(defaults?: ResolveOptions): (id: any, url: any) => Promise<string>;

@@ -83,5 +83,13 @@ interface EvaluateOptions extends ResolveOptions {

declare function evalModule(code: string, opts?: EvaluateOptions): Promise<any>;
declare function transformModule(code: string, opts: EvaluateOptions): Promise<string>;
declare function resolveImports(code: string, opts: EvaluateOptions): Promise<string>;
declare function transformModule(code: string, opts?: EvaluateOptions): Promise<string>;
declare function resolveImports(code: string, opts?: EvaluateOptions): Promise<string>;
declare function hasESMSyntax(code: string): boolean;
declare function hasCJSSyntax(code: string): boolean;
declare function detectSyntax(code: string): {
hasESM: boolean;
hasCJS: boolean;
isMixed: boolean;
};
declare function fileURLToPath(id: string): string;

@@ -92,2 +100,2 @@ declare function normalizeid(id: string): string;

export { CommonjsContext, DYNAMIC_IMPORT_RE, DeclarationExport, DefaultExport, DynamicImport, ESMExport, ESMImport, ESM_STATIC_IMPORT_RE, EXPORT_DECAL_RE, EvaluateOptions, NamedExport, ParsedStaticImport, ResolveOptions, StaticImport, createCommonJS, createResolve, evalModule, fileURLToPath, findDynamicImports, findExports, findStaticImports, interopDefault, loadModule, loadURL, normalizeid, parseStaticImport, resolve, resolveImports, resolvePath, resolvePathSync, resolveSync, toDataURL, transformModule };
export { CommonjsContext, DYNAMIC_IMPORT_RE, DeclarationExport, DefaultExport, DynamicImport, ESMExport, ESMImport, ESM_STATIC_IMPORT_RE, EXPORT_DECAL_RE, EvaluateOptions, NamedExport, ParsedStaticImport, ResolveOptions, StaticImport, createCommonJS, createResolve, detectSyntax, evalModule, fileURLToPath, findDynamicImports, findExports, findStaticImports, hasCJSSyntax, hasESMSyntax, interopDefault, loadModule, loadURL, normalizeid, parseStaticImport, resolve, resolveImports, resolvePath, resolvePathSync, resolveSync, toDataURL, transformModule };
{
"name": "mlly",
"version": "0.3.4",
"version": "0.3.5",
"description": "Missing ECMAScript module utils for Node.js",

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

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