Comparing version 0.3.4 to 0.3.5
@@ -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
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
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
264508
8439