typescript 5.4.0-dev.20231127 → 5.4.0-dev.20231128
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/lib/tsc.js +200 -160
- package/lib/tsserver.js +350 -289
- package/lib/typescript.js +349 -288
- package/lib/typingsInstaller.js +11 -7
- package/package.json +3 -3
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.4";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20231128`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -23028,8 +23028,9 @@ var Parser;
|
|
|
23028
23028
|
function nextTokenIsStringLiteral() {
|
|
23029
23029
|
return nextToken() === 11 /* StringLiteral */;
|
|
23030
23030
|
}
|
|
23031
|
-
function
|
|
23032
|
-
|
|
23031
|
+
function nextTokenIsFromKeywordOrEqualsToken() {
|
|
23032
|
+
nextToken();
|
|
23033
|
+
return token() === 161 /* FromKeyword */ || token() === 64 /* EqualsToken */;
|
|
23033
23034
|
}
|
|
23034
23035
|
function nextTokenIsIdentifierOrStringLiteralOnSameLine() {
|
|
23035
23036
|
nextToken();
|
|
@@ -23726,7 +23727,7 @@ var Parser;
|
|
|
23726
23727
|
identifier = parseIdentifier();
|
|
23727
23728
|
}
|
|
23728
23729
|
let isTypeOnly = false;
|
|
23729
|
-
if ((identifier == null ? void 0 : identifier.escapedText) === "type" && (token() !== 161 /* FromKeyword */ || isIdentifier2() && lookAhead(
|
|
23730
|
+
if ((identifier == null ? void 0 : identifier.escapedText) === "type" && (token() !== 161 /* FromKeyword */ || isIdentifier2() && lookAhead(nextTokenIsFromKeywordOrEqualsToken)) && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) {
|
|
23730
23731
|
isTypeOnly = true;
|
|
23731
23732
|
identifier = isIdentifier2() ? parseIdentifier() : void 0;
|
|
23732
23733
|
}
|
|
@@ -27630,6 +27631,9 @@ function getConditions(options, resolutionMode) {
|
|
|
27630
27631
|
}
|
|
27631
27632
|
return concatenate(conditions, options.customConditions);
|
|
27632
27633
|
}
|
|
27634
|
+
function isPackageJsonInfo(entry) {
|
|
27635
|
+
return !!(entry == null ? void 0 : entry.contents);
|
|
27636
|
+
}
|
|
27633
27637
|
function resolveModuleName(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, resolutionMode) {
|
|
27634
27638
|
var _a, _b, _c;
|
|
27635
27639
|
const traceEnabled = isTraceEnabled(compilerOptions, host);
|
|
@@ -28257,13 +28261,13 @@ function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) {
|
|
|
28257
28261
|
}
|
|
28258
28262
|
const existing = (_b = state.packageJsonInfoCache) == null ? void 0 : _b.getPackageJsonInfo(packageJsonPath);
|
|
28259
28263
|
if (existing !== void 0) {
|
|
28260
|
-
if (
|
|
28264
|
+
if (isPackageJsonInfo(existing)) {
|
|
28261
28265
|
if (traceEnabled)
|
|
28262
28266
|
trace(host, Diagnostics.File_0_exists_according_to_earlier_cached_lookups, packageJsonPath);
|
|
28263
28267
|
(_c = state.affectingLocations) == null ? void 0 : _c.push(packageJsonPath);
|
|
28264
28268
|
return existing.packageDirectory === packageDirectory ? existing : { packageDirectory, contents: existing.contents };
|
|
28265
28269
|
} else {
|
|
28266
|
-
if (existing && traceEnabled)
|
|
28270
|
+
if (existing.directoryExists && traceEnabled)
|
|
28267
28271
|
trace(host, Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups, packageJsonPath);
|
|
28268
28272
|
(_d = state.failedLookupLocations) == null ? void 0 : _d.push(packageJsonPath);
|
|
28269
28273
|
return void 0;
|
|
@@ -28285,7 +28289,7 @@ function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) {
|
|
|
28285
28289
|
trace(host, Diagnostics.File_0_does_not_exist, packageJsonPath);
|
|
28286
28290
|
}
|
|
28287
28291
|
if (state.packageJsonInfoCache && !state.packageJsonInfoCache.isReadonly)
|
|
28288
|
-
state.packageJsonInfoCache.setPackageJsonInfo(packageJsonPath, directoryExists);
|
|
28292
|
+
state.packageJsonInfoCache.setPackageJsonInfo(packageJsonPath, { packageDirectory, directoryExists });
|
|
28289
28293
|
(_f = state.failedLookupLocations) == null ? void 0 : _f.push(packageJsonPath);
|
|
28290
28294
|
}
|
|
28291
28295
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.4.0-dev.
|
|
5
|
+
"version": "5.4.0-dev.20231128",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"playwright": "^1.38.0",
|
|
79
79
|
"source-map-support": "^0.5.21",
|
|
80
80
|
"tslib": "^2.5.0",
|
|
81
|
-
"typescript": "^5.
|
|
81
|
+
"typescript": "^5.3.2",
|
|
82
82
|
"which": "^2.0.2"
|
|
83
83
|
},
|
|
84
84
|
"overrides": {
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "b6121e400cf8636760aa8a7da6b7fac14e2e70c7"
|
|
118
118
|
}
|