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

tsimp

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsimp - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

2

dist/commonjs/classify-module.d.ts
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

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