ts-jest 27.0.6 → 27.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ts-jest-digest +1 -1
- package/CHANGELOG.md +9 -0
- package/dist/compiler/ts-compiler.js +11 -11
- package/package.json +2 -2
package/.ts-jest-digest
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
26aeac253ad035353c028a2d6dcd0956b0a209a6
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [27.0.7](https://github.com/kulshekhar/ts-jest/compare/v27.0.6...v27.0.7) (2021-10-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* correct `lodash` import ([#2978](https://github.com/kulshekhar/ts-jest/issues/2978)) ([8b60679](https://github.com/kulshekhar/ts-jest/commit/8b60679574eb60a3c8109ffd389b64b86a167e72)), closes [#2977](https://github.com/kulshekhar/ts-jest/issues/2977)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [27.0.6](https://github.com/kulshekhar/ts-jest/compare/v27.0.5...v27.0.6) (2021-10-14)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -49,7 +49,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
49
49
|
exports.TsCompiler = void 0;
|
|
50
50
|
var path_1 = require("path");
|
|
51
51
|
var bs_logger_1 = require("bs-logger");
|
|
52
|
-
var
|
|
52
|
+
var lodash_memoize_1 = __importDefault(require("lodash.memoize"));
|
|
53
53
|
var constants_1 = require("../constants");
|
|
54
54
|
var logger_1 = require("../utils/logger");
|
|
55
55
|
var messages_1 = require("../utils/messages");
|
|
@@ -75,14 +75,14 @@ var TsCompiler = (function () {
|
|
|
75
75
|
call: null
|
|
76
76
|
},
|
|
77
77
|
_a[bs_logger_1.LogContexts.logLevel] = bs_logger_1.LogLevels.trace,
|
|
78
|
-
_a), 'readFile',
|
|
78
|
+
_a), 'readFile', lodash_memoize_1.default(this._ts.sys.readFile));
|
|
79
79
|
this._moduleResolutionHost = {
|
|
80
|
-
fileExists:
|
|
80
|
+
fileExists: lodash_memoize_1.default(this._ts.sys.fileExists),
|
|
81
81
|
readFile: this._cachedReadFile,
|
|
82
|
-
directoryExists:
|
|
82
|
+
directoryExists: lodash_memoize_1.default(this._ts.sys.directoryExists),
|
|
83
83
|
getCurrentDirectory: function () { return _this.configSet.cwd; },
|
|
84
|
-
realpath: this._ts.sys.realpath &&
|
|
85
|
-
getDirectories:
|
|
84
|
+
realpath: this._ts.sys.realpath && lodash_memoize_1.default(this._ts.sys.realpath),
|
|
85
|
+
getDirectories: lodash_memoize_1.default(this._ts.sys.getDirectories),
|
|
86
86
|
};
|
|
87
87
|
this._moduleResolutionCache = this._ts.createModuleResolutionCache(this.configSet.cwd, function (x) { return x; }, this._compilerOptions);
|
|
88
88
|
this._createLanguageService();
|
|
@@ -207,12 +207,12 @@ var TsCompiler = (function () {
|
|
|
207
207
|
return;
|
|
208
208
|
return _this._ts.ScriptSnapshot.fromString(contents);
|
|
209
209
|
},
|
|
210
|
-
fileExists:
|
|
210
|
+
fileExists: lodash_memoize_1.default(this._ts.sys.fileExists),
|
|
211
211
|
readFile: this._cachedReadFile,
|
|
212
|
-
readDirectory:
|
|
213
|
-
getDirectories:
|
|
214
|
-
directoryExists:
|
|
215
|
-
realpath: this._ts.sys.realpath &&
|
|
212
|
+
readDirectory: lodash_memoize_1.default(this._ts.sys.readDirectory),
|
|
213
|
+
getDirectories: lodash_memoize_1.default(this._ts.sys.getDirectories),
|
|
214
|
+
directoryExists: lodash_memoize_1.default(this._ts.sys.directoryExists),
|
|
215
|
+
realpath: this._ts.sys.realpath && lodash_memoize_1.default(this._ts.sys.realpath),
|
|
216
216
|
getNewLine: function () { return constants_1.LINE_FEED; },
|
|
217
217
|
getCurrentDirectory: function () { return _this.configSet.cwd; },
|
|
218
218
|
getCompilationSettings: function () { return _this._compilerOptions; },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-jest",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.7",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@types/lodash.memoize": "4.x",
|
|
105
105
|
"@types/lodash.set": "4.x",
|
|
106
106
|
"@types/micromatch": "4.x",
|
|
107
|
-
"@types/node": "16.
|
|
107
|
+
"@types/node": "16.11.0",
|
|
108
108
|
"@types/node-fetch": "^3.0.3",
|
|
109
109
|
"@types/react": "17.x",
|
|
110
110
|
"@types/semver": "latest",
|