Comparing version 0.1.2 to 0.1.3
@@ -5,2 +5,4 @@ # Changelog | ||
### [0.1.3](https://github.com/unjs/mlly/compare/v0.1.2...v0.1.3) (2021-07-22) | ||
### [0.1.2](https://github.com/unjs/mlly/compare/v0.1.1...v0.1.2) (2021-07-22) | ||
@@ -7,0 +9,0 @@ |
@@ -7,4 +7,5 @@ // CommonJS | ||
} | ||
export type createCommonJS = (importMeta: ImportMeta) => CommonjsContext | ||
export function createCommonJS (importMeta: ImportMeta) : CommonjsContext | ||
// Resolve | ||
@@ -17,8 +18,8 @@ | ||
export type resolve = (id: string, opts: ResolveOptions) => Promise<string> | ||
export type resolvePath = (id: string, opts: ResolveOptions) => Promise<string> | ||
export type resolveSync = (id: string, opts: ResolveOptions) => string | ||
export type resolvePathSync = (id: string, opts: ResolveOptions) => string | ||
export type createResolve = (defaults: ResolveOptions) => (id: string, from: string | URL) => Promise<string> | ||
export type resolveImports = (code: string, opts: ResolveOptions) => Promise<string> | ||
export function resolve (id: string, opts: ResolveOptions) : Promise<string> | ||
export function resolvePath (id: string, opts: ResolveOptions) : Promise<string> | ||
export function resolveSync (id: string, opts: ResolveOptions) : string | ||
export function resolvePathSync (id: string, opts: ResolveOptions) : string | ||
export function createResolve (defaults: ResolveOptions) : (id: string, from: string | URL) => Promise<string> | ||
export function resolveImports (code: string, opts: ResolveOptions) : Promise<string> | ||
@@ -29,10 +30,10 @@ | ||
export interface EvaluateOptions extends ResolveOptions {} | ||
export function loadModule (id: string, opts?: EvaluateOptions) : Promise<any> | ||
export function evalModule (code: string, opts?: EvaluateOptions) : Promise<any> | ||
export type loadModule = (id: string, opts?: EvaluateOptions) => Promise<any> | ||
export type evalModule = (code: string, opts?: EvaluateOptions) => Promise<any> | ||
export type readModule = (id: string, opts?: ResolveOptions) => Promise<any> | ||
export type toDataURL = (code: string) => Promise<string> | ||
export function readModule (id: string, opts?: ResolveOptions) : Promise<any> | ||
export function toDataURL(code: string, opts?: ResolveOptions) : Promise<string> | ||
// Path Utils | ||
export type fileURLToPath = (id: URL | string) => string | ||
export function fileURLToPath (id: URL | string) : string |
{ | ||
"name": "mlly", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"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
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
10675
114