Socket
Socket
Sign inDemoInstall

ts-jest

Package Overview
Dependencies
314
Maintainers
3
Versions
190
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 29.0.3 to 29.0.4

16

dist/legacy/ts-jest-transformer.js

@@ -125,4 +125,11 @@ "use strict";

else {
if ((_a = config.globals) === null || _a === void 0 ? void 0 : _a['ts-jest']) {
this._logger.warn("Define `ts-jest` config under `globals` is deprecated. Please do\ntransform: {\n <transform_regex>: ['ts-jest', { /* ts-jest config goes here in Jest */ }],\n}," /* Deprecations.GlobalsTsJestConfigOption */);
}
var jestGlobalsConfig = (_b = config.globals) !== null && _b !== void 0 ? _b : {};
var tsJestGlobalsConfig = (_c = jestGlobalsConfig['ts-jest']) !== null && _c !== void 0 ? _c : {};
var migratedConfig = this.tsJestConfig
? __assign(__assign({}, config), { globals: __assign(__assign({}, jestGlobalsConfig), { 'ts-jest': __assign(__assign({}, tsJestGlobalsConfig), this.tsJestConfig) }) }) : config;
// try to look-it up by stringified version
var serializedJestCfg_1 = (0, utils_1.stringify)(config);
var serializedJestCfg_1 = (0, utils_1.stringify)(migratedConfig);
var serializedCcs = TsJestTransformer._cachedConfigSets.find(function (cs) { return cs.jestConfig.serialized === serializedJestCfg_1; });

@@ -144,9 +151,2 @@ if (serializedCcs) {

this._logger.info('no matching config-set found, creating a new one');
if ((_a = config.globals) === null || _a === void 0 ? void 0 : _a['ts-jest']) {
this._logger.warn("Define `ts-jest` config under `globals` is deprecated. Please do\ntransform: {\n <transform_regex>: ['ts-jest', { /* ts-jest config goes here in Jest */ }],\n}," /* Deprecations.GlobalsTsJestConfigOption */);
}
var jestGlobalsConfig = (_b = config.globals) !== null && _b !== void 0 ? _b : {};
var tsJestGlobalsConfig = (_c = jestGlobalsConfig['ts-jest']) !== null && _c !== void 0 ? _c : {};
var migratedConfig = this.tsJestConfig
? __assign(__assign({}, config), { globals: __assign(__assign({}, jestGlobalsConfig), { 'ts-jest': __assign(__assign({}, tsJestGlobalsConfig), this.tsJestConfig) }) }) : config;
configSet = this._createConfigSet(migratedConfig);

@@ -153,0 +153,0 @@ var jest_1 = __assign({}, migratedConfig);

{
"name": "ts-jest",
"version": "29.0.3",
"version": "29.0.4",
"main": "dist/index.js",

@@ -57,3 +57,3 @@ "types": "dist/index.d.ts",

"jest-util": "^29.0.0",
"json5": "^2.2.1",
"json5": "^2.2.3",
"lodash.memoize": "4.x",

@@ -94,5 +94,5 @@ "make-error": "1.x",

"@commitlint/cli": "17.x",
"@commitlint/config-angular": "^17.1.0",
"@jest/transform": "^29.0.3",
"@jest/types": "^29.0.3",
"@commitlint/config-angular": "^17.4.0",
"@jest/transform": "^29.1.2",
"@jest/types": "^29.1.2",
"@types/babel__core": "7.x",

@@ -106,3 +106,3 @@ "@types/cross-spawn": "latest",

"@types/micromatch": "4.x",
"@types/node": "17.0.35",
"@types/node": "18.11.18",
"@types/node-fetch": "^3.0.3",

@@ -114,9 +114,9 @@ "@types/react": "18.x",

"@types/yargs-parser": "21.x",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"babel-jest": "^29.0.3",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"babel-jest": "^29.1.2",
"conventional-changelog-cli": "2.x",
"cross-spawn": "latest",
"esbuild": "~0.15.9",
"eslint": "^8.24.0",
"esbuild": "~0.16.16",
"eslint": "^8.31.0",
"eslint-config-prettier": "latest",

@@ -129,7 +129,7 @@ "eslint-plugin-import": "latest",

"execa": "5.1.1",
"fs-extra": "10.x",
"fs-extra": "11.x",
"glob": "^8.0.3",
"glob-gitignore": "latest",
"husky": "4.x",
"jest": "^29.0.3",
"jest": "^29.1.2",
"jest-snapshot-serializer-raw": "^1.2.0",

@@ -141,5 +141,5 @@ "js-yaml": "latest",

"lodash.set": "^4.3.2",
"node-fetch": "^3.2.10",
"prettier": "^2.7.1",
"typescript": "~4.8.3"
"node-fetch": "^3.3.0",
"prettier": "^2.8.2",
"typescript": "~4.8.4"
},

@@ -146,0 +146,0 @@ "lint-staged": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc