typescript 5.0.0-dev.20221130 → 5.0.0-dev.20221201
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 -4
- package/lib/tsserver.js +5 -4
- package/lib/tsserverlibrary.js +5 -4
- package/lib/typescript.js +5 -4
- package/lib/typingsInstaller.js +1 -1
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -23,7 +23,7 @@ var __export = (target, all) => {
|
|
|
23
23
|
|
|
24
24
|
// src/compiler/corePublic.ts
|
|
25
25
|
var versionMajorMinor = "5.0";
|
|
26
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
26
|
+
var version = `${versionMajorMinor}.0-dev.20221201`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
|
@@ -54540,7 +54540,8 @@ function createTypeChecker(host) {
|
|
|
54540
54540
|
return !!(type.flags & 109440 /* Unit */);
|
|
54541
54541
|
}
|
|
54542
54542
|
function isUnitLikeType(type) {
|
|
54543
|
-
|
|
54543
|
+
const t = getBaseConstraintOrType(type);
|
|
54544
|
+
return t.flags & 2097152 /* Intersection */ ? some(t.types, isUnitType) : isUnitType(t);
|
|
54544
54545
|
}
|
|
54545
54546
|
function extractUnitType(type) {
|
|
54546
54547
|
return type.flags & 2097152 /* Intersection */ ? find(type.types, isUnitType) || type : type;
|
|
@@ -103578,7 +103579,7 @@ function createWatchProgram(host) {
|
|
|
103578
103579
|
if (hostSourceFile.version)
|
|
103579
103580
|
return hostSourceFile.version;
|
|
103580
103581
|
const text = readFileWithCache(path);
|
|
103581
|
-
return text ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;
|
|
103582
|
+
return text !== void 0 ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;
|
|
103582
103583
|
}
|
|
103583
103584
|
function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) {
|
|
103584
103585
|
const hostSourceFileInfo = sourceFilesCache.get(oldSourceFile.resolvedPath);
|
|
@@ -105088,7 +105089,7 @@ function getUpToDateStatusWorker(state, project, resolvedPath) {
|
|
|
105088
105089
|
buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host);
|
|
105089
105090
|
version2 = buildInfoVersionMap.get(toPath2(state, inputFile));
|
|
105090
105091
|
const text = version2 ? state.readFileWithCache(inputFile) : void 0;
|
|
105091
|
-
currentVersion = text
|
|
105092
|
+
currentVersion = text !== void 0 ? getSourceFileVersionAsHashFromText(host, text) : void 0;
|
|
105092
105093
|
if (version2 && version2 === currentVersion)
|
|
105093
105094
|
pseudoInputUpToDate = true;
|
|
105094
105095
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -2648,7 +2648,7 @@ var ts = (() => {
|
|
|
2648
2648
|
|
|
2649
2649
|
// src/compiler/corePublic.ts
|
|
2650
2650
|
var versionMajorMinor = "5.0";
|
|
2651
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2651
|
+
var version = `${versionMajorMinor}.0-dev.20221201`;
|
|
2652
2652
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2653
2653
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2654
2654
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -59383,7 +59383,8 @@ ${lanes.join("\n")}
|
|
|
59383
59383
|
return !!(type.flags & 109440 /* Unit */);
|
|
59384
59384
|
}
|
|
59385
59385
|
function isUnitLikeType(type) {
|
|
59386
|
-
|
|
59386
|
+
const t = getBaseConstraintOrType(type);
|
|
59387
|
+
return t.flags & 2097152 /* Intersection */ ? some(t.types, isUnitType) : isUnitType(t);
|
|
59387
59388
|
}
|
|
59388
59389
|
function extractUnitType(type) {
|
|
59389
59390
|
return type.flags & 2097152 /* Intersection */ ? find(type.types, isUnitType) || type : type;
|
|
@@ -108704,7 +108705,7 @@ ${lanes.join("\n")}
|
|
|
108704
108705
|
if (hostSourceFile.version)
|
|
108705
108706
|
return hostSourceFile.version;
|
|
108706
108707
|
const text = readFileWithCache(path);
|
|
108707
|
-
return text ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;
|
|
108708
|
+
return text !== void 0 ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;
|
|
108708
108709
|
}
|
|
108709
108710
|
function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) {
|
|
108710
108711
|
const hostSourceFileInfo = sourceFilesCache.get(oldSourceFile.resolvedPath);
|
|
@@ -110240,7 +110241,7 @@ ${lanes.join("\n")}
|
|
|
110240
110241
|
buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host);
|
|
110241
110242
|
version2 = buildInfoVersionMap.get(toPath2(state, inputFile));
|
|
110242
110243
|
const text = version2 ? state.readFileWithCache(inputFile) : void 0;
|
|
110243
|
-
currentVersion = text
|
|
110244
|
+
currentVersion = text !== void 0 ? getSourceFileVersionAsHashFromText(host, text) : void 0;
|
|
110244
110245
|
if (version2 && version2 === currentVersion)
|
|
110245
110246
|
pseudoInputUpToDate = true;
|
|
110246
110247
|
}
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20221201`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -56841,7 +56841,8 @@ ${lanes.join("\n")}
|
|
|
56841
56841
|
return !!(type.flags & 109440 /* Unit */);
|
|
56842
56842
|
}
|
|
56843
56843
|
function isUnitLikeType(type) {
|
|
56844
|
-
|
|
56844
|
+
const t = getBaseConstraintOrType(type);
|
|
56845
|
+
return t.flags & 2097152 /* Intersection */ ? some(t.types, isUnitType) : isUnitType(t);
|
|
56845
56846
|
}
|
|
56846
56847
|
function extractUnitType(type) {
|
|
56847
56848
|
return type.flags & 2097152 /* Intersection */ ? find(type.types, isUnitType) || type : type;
|
|
@@ -106535,7 +106536,7 @@ ${lanes.join("\n")}
|
|
|
106535
106536
|
if (hostSourceFile.version)
|
|
106536
106537
|
return hostSourceFile.version;
|
|
106537
106538
|
const text = readFileWithCache(path);
|
|
106538
|
-
return text ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;
|
|
106539
|
+
return text !== void 0 ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;
|
|
106539
106540
|
}
|
|
106540
106541
|
function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) {
|
|
106541
106542
|
const hostSourceFileInfo = sourceFilesCache.get(oldSourceFile.resolvedPath);
|
|
@@ -108077,7 +108078,7 @@ ${lanes.join("\n")}
|
|
|
108077
108078
|
buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host);
|
|
108078
108079
|
version2 = buildInfoVersionMap.get(toPath2(state, inputFile));
|
|
108079
108080
|
const text = version2 ? state.readFileWithCache(inputFile) : void 0;
|
|
108080
|
-
currentVersion = text
|
|
108081
|
+
currentVersion = text !== void 0 ? getSourceFileVersionAsHashFromText(host, text) : void 0;
|
|
108081
108082
|
if (version2 && version2 === currentVersion)
|
|
108082
108083
|
pseudoInputUpToDate = true;
|
|
108083
108084
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20221201`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -56841,7 +56841,8 @@ ${lanes.join("\n")}
|
|
|
56841
56841
|
return !!(type.flags & 109440 /* Unit */);
|
|
56842
56842
|
}
|
|
56843
56843
|
function isUnitLikeType(type) {
|
|
56844
|
-
|
|
56844
|
+
const t = getBaseConstraintOrType(type);
|
|
56845
|
+
return t.flags & 2097152 /* Intersection */ ? some(t.types, isUnitType) : isUnitType(t);
|
|
56845
56846
|
}
|
|
56846
56847
|
function extractUnitType(type) {
|
|
56847
56848
|
return type.flags & 2097152 /* Intersection */ ? find(type.types, isUnitType) || type : type;
|
|
@@ -106535,7 +106536,7 @@ ${lanes.join("\n")}
|
|
|
106535
106536
|
if (hostSourceFile.version)
|
|
106536
106537
|
return hostSourceFile.version;
|
|
106537
106538
|
const text = readFileWithCache(path);
|
|
106538
|
-
return text ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;
|
|
106539
|
+
return text !== void 0 ? getSourceFileVersionAsHashFromText(compilerHost, text) : void 0;
|
|
106539
106540
|
}
|
|
106540
106541
|
function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) {
|
|
106541
106542
|
const hostSourceFileInfo = sourceFilesCache.get(oldSourceFile.resolvedPath);
|
|
@@ -108077,7 +108078,7 @@ ${lanes.join("\n")}
|
|
|
108077
108078
|
buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host);
|
|
108078
108079
|
version2 = buildInfoVersionMap.get(toPath2(state, inputFile));
|
|
108079
108080
|
const text = version2 ? state.readFileWithCache(inputFile) : void 0;
|
|
108080
|
-
currentVersion = text
|
|
108081
|
+
currentVersion = text !== void 0 ? getSourceFileVersionAsHashFromText(host, text) : void 0;
|
|
108081
108082
|
if (version2 && version2 === currentVersion)
|
|
108082
108083
|
pseudoInputUpToDate = true;
|
|
108083
108084
|
}
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -50,7 +50,7 @@ var path = __toESM(require("path"));
|
|
|
50
50
|
|
|
51
51
|
// src/compiler/corePublic.ts
|
|
52
52
|
var versionMajorMinor = "5.0";
|
|
53
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
53
|
+
var version = `${versionMajorMinor}.0-dev.20221201`;
|
|
54
54
|
|
|
55
55
|
// src/compiler/core.ts
|
|
56
56
|
var emptyArray = [];
|
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.0.0-dev.
|
|
5
|
+
"version": "5.0.0-dev.20221201",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|