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.1.2 to 0.1.3

2

CHANGELOG.md

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

25

lib/index.d.ts

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

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