Comparing version 0.2.7 to 0.2.8
@@ -52,5 +52,24 @@ // CommonJS | ||
export interface ESMExport { | ||
type: 'declaration' | 'named' | 'default', | ||
code: string | ||
start: number | ||
end: number | ||
} | ||
export interface DeclarationExport extends ESMExport { | ||
type: 'declaration' | ||
declaration: string | ||
name: string | ||
} | ||
export interface NamedExport extends ESMExport { | ||
type: 'named' | ||
exports: string | ||
names: string[] | ||
} | ||
export function findStaticImports (code: string) : StaticImport[] | ||
export function findDynamicImports (code: string) : DynamicImport[] | ||
export function findNamedExports (code:string): string[] | ||
export function findExports (code: string): (NamedExport | DeclarationExport | ESMExport)[] | ||
export function parseStaticImport (staticImport: StaticImport) : ParsedStaticImport | ||
@@ -57,0 +76,0 @@ |
{ | ||
"name": "mlly", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Missing ECMAScript module utils for Node.js", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/mlly", |
@@ -131,3 +131,3 @@ # 🤝 mlly | ||
## Evaluating Moduls | ||
## Evaluating Modules | ||
@@ -134,0 +134,0 @@ ### `evalModule` |
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
20987
335