Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mlly

Package Overview
Dependencies
Maintainers
1
Versions
77
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.2.3 to 0.2.4

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.2.4](https://github.com/unjs/mlly/compare/v0.2.3...v0.2.4) (2021-10-01)
### Features
* add types for import analyzes ([b9ca4af](https://github.com/unjs/mlly/commit/b9ca4aff597453877674f0c9ebf504f19f989ea1))
### [0.2.3](https://github.com/unjs/mlly/compare/v0.2.2...v0.2.3) (2021-10-01)

@@ -7,0 +14,0 @@

@@ -26,2 +26,32 @@ // CommonJS

// Import analyzes
export interface ESMImport {
type: 'static' | 'dynamic'
code: string
start: number
end: number
}
export interface StaticImport extends ESMImport {
type: 'static'
imports: string
specifier: string
}
export interface ParsedStaticImport extends StaticImport {
defaultImport?: string
namespacedImport?: string
namedImports?: { [name: string]: string }
}
export interface DynamicImport extends ESMImport {
type: 'dynamic'
expression: string
}
export function findStaticImports (code: string) : StaticImport[]
export function findDynamicImports (code: string) : DynamicImport[]
export function parseStaticImport (staticImport: StaticImport) : ParsedStaticImport
// Evaluate

@@ -28,0 +58,0 @@

2

package.json
{
"name": "mlly",
"version": "0.2.3",
"version": "0.2.4",
"description": "Missing ECMAScript module utils for Node.js",

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

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