@typescript-deploys/pr-build 5.4.0-pr-57371-5 → 5.4.0-pr-57358-23
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 +5 -7
- package/lib/tsserver.js +17 -16
- package/lib/typescript.js +17 -16
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.4";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240213`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -67337,12 +67337,10 @@ function createTypeChecker(host) {
|
|
|
67337
67337
|
return !(narrowedType.flags & 131072 /* Never */) ? narrowedType : isTypeSubtypeOf(candidate, type) ? candidate : isTypeAssignableTo(type, candidate) ? type : isTypeAssignableTo(candidate, type) ? candidate : getIntersectionType([type, candidate]);
|
|
67338
67338
|
}
|
|
67339
67339
|
function narrowTypeByCallExpression(type, callExpression, assumeTrue) {
|
|
67340
|
-
|
|
67341
|
-
|
|
67342
|
-
|
|
67343
|
-
|
|
67344
|
-
return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);
|
|
67345
|
-
}
|
|
67340
|
+
const signature = assumeTrue || !isCallChain(callExpression) ? getEffectsSignature(callExpression) : void 0;
|
|
67341
|
+
const predicate = signature && getTypePredicateOfSignature(signature);
|
|
67342
|
+
if (predicate && (predicate.kind === 0 /* This */ || predicate.kind === 1 /* Identifier */)) {
|
|
67343
|
+
return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);
|
|
67346
67344
|
}
|
|
67347
67345
|
if (containsMissingType(type) && isAccessExpression(reference) && isPropertyAccessExpression(callExpression.expression)) {
|
|
67348
67346
|
const callAccess = callExpression.expression;
|
package/lib/tsserver.js
CHANGED
|
@@ -2340,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2340
2340
|
|
|
2341
2341
|
// src/compiler/corePublic.ts
|
|
2342
2342
|
var versionMajorMinor = "5.4";
|
|
2343
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2343
|
+
var version = `${versionMajorMinor}.0-insiders.20240213`;
|
|
2344
2344
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2345
2345
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2346
2346
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -72081,12 +72081,10 @@ function createTypeChecker(host) {
|
|
|
72081
72081
|
return !(narrowedType.flags & 131072 /* Never */) ? narrowedType : isTypeSubtypeOf(candidate, type) ? candidate : isTypeAssignableTo(type, candidate) ? type : isTypeAssignableTo(candidate, type) ? candidate : getIntersectionType([type, candidate]);
|
|
72082
72082
|
}
|
|
72083
72083
|
function narrowTypeByCallExpression(type, callExpression, assumeTrue) {
|
|
72084
|
-
|
|
72085
|
-
|
|
72086
|
-
|
|
72087
|
-
|
|
72088
|
-
return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);
|
|
72089
|
-
}
|
|
72084
|
+
const signature = assumeTrue || !isCallChain(callExpression) ? getEffectsSignature(callExpression) : void 0;
|
|
72085
|
+
const predicate = signature && getTypePredicateOfSignature(signature);
|
|
72086
|
+
if (predicate && (predicate.kind === 0 /* This */ || predicate.kind === 1 /* Identifier */)) {
|
|
72087
|
+
return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);
|
|
72090
72088
|
}
|
|
72091
72089
|
if (containsMissingType(type) && isAccessExpression(reference) && isPropertyAccessExpression(callExpression.expression)) {
|
|
72092
72090
|
const callAccess = callExpression.expression;
|
|
@@ -163054,15 +163052,18 @@ function getCompletionEntriesForDirectoryFragmentWithRootDirs(rootDirs, fragment
|
|
|
163054
163052
|
const basePath = compilerOptions.project || host.getCurrentDirectory();
|
|
163055
163053
|
const ignoreCase = !(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames());
|
|
163056
163054
|
const baseDirectories = getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ignoreCase);
|
|
163057
|
-
return
|
|
163058
|
-
|
|
163059
|
-
|
|
163060
|
-
|
|
163061
|
-
|
|
163062
|
-
|
|
163063
|
-
|
|
163064
|
-
|
|
163065
|
-
|
|
163055
|
+
return deduplicate(
|
|
163056
|
+
flatMap(baseDirectories, (baseDirectory) => arrayFrom(getCompletionEntriesForDirectoryFragment(
|
|
163057
|
+
fragment,
|
|
163058
|
+
baseDirectory,
|
|
163059
|
+
extensionOptions,
|
|
163060
|
+
host,
|
|
163061
|
+
/*moduleSpecifierIsRelative*/
|
|
163062
|
+
true,
|
|
163063
|
+
exclude
|
|
163064
|
+
).values())),
|
|
163065
|
+
(itemA, itemB) => itemA.name === itemB.name && itemA.kind === itemB.kind && itemA.extension === itemB.extension
|
|
163066
|
+
);
|
|
163066
163067
|
}
|
|
163067
163068
|
function getCompletionEntriesForDirectoryFragment(fragment, scriptDirectory, extensionOptions, host, moduleSpecifierIsRelative, exclude, result = createNameAndKindSet()) {
|
|
163068
163069
|
var _a;
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.4";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20240213`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -69836,12 +69836,10 @@ ${lanes.join("\n")}
|
|
|
69836
69836
|
return !(narrowedType.flags & 131072 /* Never */) ? narrowedType : isTypeSubtypeOf(candidate, type) ? candidate : isTypeAssignableTo(type, candidate) ? type : isTypeAssignableTo(candidate, type) ? candidate : getIntersectionType([type, candidate]);
|
|
69837
69837
|
}
|
|
69838
69838
|
function narrowTypeByCallExpression(type, callExpression, assumeTrue) {
|
|
69839
|
-
|
|
69840
|
-
|
|
69841
|
-
|
|
69842
|
-
|
|
69843
|
-
return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);
|
|
69844
|
-
}
|
|
69839
|
+
const signature = assumeTrue || !isCallChain(callExpression) ? getEffectsSignature(callExpression) : void 0;
|
|
69840
|
+
const predicate = signature && getTypePredicateOfSignature(signature);
|
|
69841
|
+
if (predicate && (predicate.kind === 0 /* This */ || predicate.kind === 1 /* Identifier */)) {
|
|
69842
|
+
return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);
|
|
69845
69843
|
}
|
|
69846
69844
|
if (containsMissingType(type) && isAccessExpression(reference) && isPropertyAccessExpression(callExpression.expression)) {
|
|
69847
69845
|
const callAccess = callExpression.expression;
|
|
@@ -162321,15 +162319,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
162321
162319
|
const basePath = compilerOptions.project || host.getCurrentDirectory();
|
|
162322
162320
|
const ignoreCase = !(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames());
|
|
162323
162321
|
const baseDirectories = getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ignoreCase);
|
|
162324
|
-
return
|
|
162325
|
-
|
|
162326
|
-
|
|
162327
|
-
|
|
162328
|
-
|
|
162329
|
-
|
|
162330
|
-
|
|
162331
|
-
|
|
162332
|
-
|
|
162322
|
+
return deduplicate(
|
|
162323
|
+
flatMap(baseDirectories, (baseDirectory) => arrayFrom(getCompletionEntriesForDirectoryFragment(
|
|
162324
|
+
fragment,
|
|
162325
|
+
baseDirectory,
|
|
162326
|
+
extensionOptions,
|
|
162327
|
+
host,
|
|
162328
|
+
/*moduleSpecifierIsRelative*/
|
|
162329
|
+
true,
|
|
162330
|
+
exclude
|
|
162331
|
+
).values())),
|
|
162332
|
+
(itemA, itemB) => itemA.name === itemB.name && itemA.kind === itemB.kind && itemA.extension === itemB.extension
|
|
162333
|
+
);
|
|
162333
162334
|
}
|
|
162334
162335
|
function getCompletionEntriesForDirectoryFragment(fragment, scriptDirectory, extensionOptions, host, moduleSpecifierIsRelative, exclude, result = createNameAndKindSet()) {
|
|
162335
162336
|
var _a;
|
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-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20240213`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.4.0-pr-
|
|
5
|
+
"version": "5.4.0-pr-57358-23",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "50eca250d6935fe06a0090848ac6347f1c118d1f"
|
|
118
118
|
}
|