Comparing version 2.0.7 to 2.0.8
export type PackageJsonType = 'commonjs' | 'module'; | ||
export declare const isPackageJsonType: (t: any) => t is PackageJsonType; | ||
export declare const classifyModule: (fileName: string) => PackageJsonType; | ||
export declare const classifyModule: (fileName: string) => PackageJsonType | 'json'; | ||
//# sourceMappingURL=classify-module.d.ts.map |
@@ -21,2 +21,5 @@ "use strict"; | ||
const classifyModule = (fileName) => { | ||
if (fileName.endsWith('.json')) { | ||
return 'json'; | ||
} | ||
if (fileName.endsWith('.cts') || fileName.endsWith('.cjs')) { | ||
@@ -23,0 +26,0 @@ return 'commonjs'; |
@@ -61,4 +61,3 @@ "use strict"; | ||
if (tsFile) { | ||
const ret = String((0, node_url_1.pathToFileURL)(tsFile)); | ||
return { fileName: ret }; | ||
return { fileName: String((0, node_url_1.pathToFileURL)(tsFile)) }; | ||
} | ||
@@ -65,0 +64,0 @@ } |
export type PackageJsonType = 'commonjs' | 'module'; | ||
export declare const isPackageJsonType: (t: any) => t is PackageJsonType; | ||
export declare const classifyModule: (fileName: string) => PackageJsonType; | ||
export declare const classifyModule: (fileName: string) => PackageJsonType | 'json'; | ||
//# sourceMappingURL=classify-module.d.ts.map |
@@ -17,2 +17,5 @@ // figure out whether a given module should be interpreted as ESM or CJS | ||
export const classifyModule = (fileName) => { | ||
if (fileName.endsWith('.json')) { | ||
return 'json'; | ||
} | ||
if (fileName.endsWith('.cts') || fileName.endsWith('.cjs')) { | ||
@@ -19,0 +22,0 @@ return 'commonjs'; |
@@ -58,4 +58,3 @@ // define the client and server for the persistent daemon that | ||
if (tsFile) { | ||
const ret = String(pathToFileURL(tsFile)); | ||
return { fileName: ret }; | ||
return { fileName: String(pathToFileURL(tsFile)) }; | ||
} | ||
@@ -62,0 +61,0 @@ } |
{ | ||
"name": "tsimp", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"license": "BlueOak-1.0.0", | ||
@@ -63,3 +63,3 @@ "files": [ | ||
"signal-exit": "^4.1.0", | ||
"sock-daemon": "1.4", | ||
"sock-daemon": "^1.4.1", | ||
"walk-up-path": "^3.0.1" | ||
@@ -66,0 +66,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
374758
3004
15
Updatedsock-daemon@^1.4.1