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.5 to 2.0.6

2

dist/commonjs/equivalents.js

@@ -29,3 +29,3 @@ "use strict";

if ((0, exports.isExt)(ext)) {
equivs.push(...exports.map[ext].map((e => stem + e)));
equivs.push(...exports.map[ext].map(e => stem + e));
}

@@ -32,0 +32,0 @@ if (extensionless) {

@@ -79,3 +79,4 @@ "use strict";

getNewLine: () => newLine,
fileExists: (fileName) => (0, path_1.relative)(fileName, inputFileName) === '' || (0, path_1.relative)(fileName, packageJsonFileName) === '',
fileExists: (fileName) => (0, path_1.relative)(fileName, inputFileName) === '' ||
(0, path_1.relative)(fileName, packageJsonFileName) === '',
readFile: fileName => (0, path_1.relative)(fileName, packageJsonFileName) === ''

@@ -82,0 +83,0 @@ ? `{"type": "${packageJsonType}"}`

@@ -66,3 +66,3 @@ "use strict";

lastStat = performance.now();
const res = applyOverrides(
const configWithDefaults = applyOverrides(
// default rootDir to the folder containing tsconfig, if not

@@ -84,3 +84,4 @@ // set explicitly to something else, so we always have one.

},
}, applyOverrides(tsimp ? applyOverrides(config, tsimp) : config, {
}, tsimp ? applyOverrides(config, tsimp) : config);
const res = applyOverrides(configWithDefaults, {
compilerOptions: {

@@ -93,2 +94,3 @@ // settings that tsimp depends on, cannot be overridden

sourceMap: undefined,
sourceRoot: (0, path_1.resolve)(dir, configWithDefaults.compilerOptions.rootDir),
inlineSourceMap: true,

@@ -100,3 +102,3 @@ inlineSources: false,

},
}));
});
const newConfig = typescript_1.default.parseJsonConfigFileContent(res, typescript_1.default.sys, dir);

@@ -103,0 +105,0 @@ const newConfigJSON = JSON.stringify(newConfig);

@@ -23,3 +23,3 @@ import { parse } from 'path';

if (isExt(ext)) {
equivs.push(...map[ext].map((e => stem + e)));
equivs.push(...map[ext].map(e => stem + e));
}

@@ -26,0 +26,0 @@ if (extensionless) {

@@ -73,3 +73,4 @@ // get output functions to transpile TS code without typechecking

getNewLine: () => newLine,
fileExists: (fileName) => relative(fileName, inputFileName) === '' || relative(fileName, packageJsonFileName) === '',
fileExists: (fileName) => relative(fileName, inputFileName) === '' ||
relative(fileName, packageJsonFileName) === '',
readFile: fileName => relative(fileName, packageJsonFileName) === ''

@@ -76,0 +77,0 @@ ? `{"type": "${packageJsonType}"}`

@@ -60,3 +60,3 @@ // load the appropriate tsconfig.json file, and apply the tsimp

lastStat = performance.now();
const res = applyOverrides(
const configWithDefaults = applyOverrides(
// default rootDir to the folder containing tsconfig, if not

@@ -78,3 +78,4 @@ // set explicitly to something else, so we always have one.

},
}, applyOverrides(tsimp ? applyOverrides(config, tsimp) : config, {
}, tsimp ? applyOverrides(config, tsimp) : config);
const res = applyOverrides(configWithDefaults, {
compilerOptions: {

@@ -87,2 +88,3 @@ // settings that tsimp depends on, cannot be overridden

sourceMap: undefined,
sourceRoot: resolve(dir, configWithDefaults.compilerOptions.rootDir),
inlineSourceMap: true,

@@ -94,3 +96,3 @@ inlineSources: false,

},
}));
});
const newConfig = ts.parseJsonConfigFileContent(res, ts.sys, dir);

@@ -97,0 +99,0 @@ const newConfigJSON = JSON.stringify(newConfig);

{
"name": "tsimp",
"version": "2.0.5",
"version": "2.0.6",
"license": "BlueOak-1.0.0",

@@ -63,3 +63,3 @@ "files": [

"signal-exit": "^4.1.0",
"sock-daemon": "^1.3.1",
"sock-daemon": "1.4",
"walk-up-path": "^3.0.1"

@@ -66,0 +66,0 @@ },

@@ -86,3 +86,3 @@ # tsimp 😈

Note that `import` declarations happen in parallel *before* the
Note that `import` declarations happen in parallel _before_ the
code is executed, so you'll need to split it up like this:

@@ -89,0 +89,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

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

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