typescript 5.0.0-dev.20230130 → 5.0.0-dev.20230131
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 -2
- package/lib/tsserver.js +5 -2
- package/lib/tsserverlibrary.js +6 -10
- package/lib/typescript.js +6 -10
- package/lib/typingsInstaller.js +4 -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.20230131`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
|
@@ -2769,6 +2769,9 @@ function mark(markName) {
|
|
|
2769
2769
|
counts.set(markName, count + 1);
|
|
2770
2770
|
marks.set(markName, timestamp());
|
|
2771
2771
|
performanceImpl == null ? void 0 : performanceImpl.mark(markName);
|
|
2772
|
+
if (typeof onProfilerEvent === "function") {
|
|
2773
|
+
onProfilerEvent(markName);
|
|
2774
|
+
}
|
|
2772
2775
|
}
|
|
2773
2776
|
}
|
|
2774
2777
|
function measure(measureName, startMarkName, endMarkName) {
|
|
@@ -64454,7 +64457,7 @@ function createTypeChecker(host) {
|
|
|
64454
64457
|
return narrowTypeByLiteralExpression(type, literal, assumeTrue);
|
|
64455
64458
|
}
|
|
64456
64459
|
function narrowTypeByLiteralExpression(type, literal, assumeTrue) {
|
|
64457
|
-
return assumeTrue ? narrowTypeByTypeName(type, literal.text) :
|
|
64460
|
+
return assumeTrue ? narrowTypeByTypeName(type, literal.text) : getAdjustedTypeWithFacts(type, typeofNEFacts.get(literal.text) || 32768 /* TypeofNEHostObject */);
|
|
64458
64461
|
}
|
|
64459
64462
|
function narrowTypeBySwitchOptionalChainContainment(type, switchStatement, clauseStart, clauseEnd, clauseCheck) {
|
|
64460
64463
|
const everyClauseChecks = clauseStart !== clauseEnd && every(getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd), clauseCheck);
|
package/lib/tsserver.js
CHANGED
|
@@ -2378,7 +2378,7 @@ __export(ts_server_exports3, {
|
|
|
2378
2378
|
|
|
2379
2379
|
// src/compiler/corePublic.ts
|
|
2380
2380
|
var versionMajorMinor = "5.0";
|
|
2381
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2381
|
+
var version = `${versionMajorMinor}.0-dev.20230131`;
|
|
2382
2382
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2383
2383
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2384
2384
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -5526,6 +5526,9 @@ function mark(markName) {
|
|
|
5526
5526
|
counts.set(markName, count + 1);
|
|
5527
5527
|
marks.set(markName, timestamp());
|
|
5528
5528
|
performanceImpl == null ? void 0 : performanceImpl.mark(markName);
|
|
5529
|
+
if (typeof onProfilerEvent === "function") {
|
|
5530
|
+
onProfilerEvent(markName);
|
|
5531
|
+
}
|
|
5529
5532
|
}
|
|
5530
5533
|
}
|
|
5531
5534
|
function measure(measureName, startMarkName, endMarkName) {
|
|
@@ -69112,7 +69115,7 @@ function createTypeChecker(host) {
|
|
|
69112
69115
|
return narrowTypeByLiteralExpression(type, literal, assumeTrue);
|
|
69113
69116
|
}
|
|
69114
69117
|
function narrowTypeByLiteralExpression(type, literal, assumeTrue) {
|
|
69115
|
-
return assumeTrue ? narrowTypeByTypeName(type, literal.text) :
|
|
69118
|
+
return assumeTrue ? narrowTypeByTypeName(type, literal.text) : getAdjustedTypeWithFacts(type, typeofNEFacts.get(literal.text) || 32768 /* TypeofNEHostObject */);
|
|
69116
69119
|
}
|
|
69117
69120
|
function narrowTypeBySwitchOptionalChainContainment(type, switchStatement, clauseStart, clauseEnd, clauseCheck) {
|
|
69118
69121
|
const everyClauseChecks = clauseStart !== clauseEnd && every(getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd), clauseCheck);
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -18,17 +18,10 @@ and limitations under the License.
|
|
|
18
18
|
var ts = (() => {
|
|
19
19
|
var __defProp = Object.defineProperty;
|
|
20
20
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
21
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
22
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
23
|
-
}) : x)(function(x) {
|
|
24
|
-
if (typeof require !== "undefined")
|
|
25
|
-
return require.apply(this, arguments);
|
|
26
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
27
|
-
});
|
|
28
21
|
var __esm = (fn, res) => function __init() {
|
|
29
22
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
30
23
|
};
|
|
31
|
-
var __commonJS = (cb, mod) => function
|
|
24
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
32
25
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
33
26
|
};
|
|
34
27
|
var __export = (target, all) => {
|
|
@@ -42,7 +35,7 @@ var ts = (() => {
|
|
|
42
35
|
"src/compiler/corePublic.ts"() {
|
|
43
36
|
"use strict";
|
|
44
37
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230131`;
|
|
46
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -3196,6 +3189,9 @@ ${lanes.join("\n")}
|
|
|
3196
3189
|
counts.set(markName, count + 1);
|
|
3197
3190
|
marks.set(markName, timestamp());
|
|
3198
3191
|
performanceImpl == null ? void 0 : performanceImpl.mark(markName);
|
|
3192
|
+
if (typeof onProfilerEvent === "function") {
|
|
3193
|
+
onProfilerEvent(markName);
|
|
3194
|
+
}
|
|
3199
3195
|
}
|
|
3200
3196
|
}
|
|
3201
3197
|
function measure(measureName, startMarkName, endMarkName) {
|
|
@@ -66838,7 +66834,7 @@ ${lanes.join("\n")}
|
|
|
66838
66834
|
return narrowTypeByLiteralExpression(type, literal, assumeTrue);
|
|
66839
66835
|
}
|
|
66840
66836
|
function narrowTypeByLiteralExpression(type, literal, assumeTrue) {
|
|
66841
|
-
return assumeTrue ? narrowTypeByTypeName(type, literal.text) :
|
|
66837
|
+
return assumeTrue ? narrowTypeByTypeName(type, literal.text) : getAdjustedTypeWithFacts(type, typeofNEFacts.get(literal.text) || 32768 /* TypeofNEHostObject */);
|
|
66842
66838
|
}
|
|
66843
66839
|
function narrowTypeBySwitchOptionalChainContainment(type, switchStatement, clauseStart, clauseEnd, clauseCheck) {
|
|
66844
66840
|
const everyClauseChecks = clauseStart !== clauseEnd && every(getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd), clauseCheck);
|
package/lib/typescript.js
CHANGED
|
@@ -18,17 +18,10 @@ and limitations under the License.
|
|
|
18
18
|
var ts = (() => {
|
|
19
19
|
var __defProp = Object.defineProperty;
|
|
20
20
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
21
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
22
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
23
|
-
}) : x)(function(x) {
|
|
24
|
-
if (typeof require !== "undefined")
|
|
25
|
-
return require.apply(this, arguments);
|
|
26
|
-
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
27
|
-
});
|
|
28
21
|
var __esm = (fn, res) => function __init() {
|
|
29
22
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
30
23
|
};
|
|
31
|
-
var __commonJS = (cb, mod) => function
|
|
24
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
32
25
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
33
26
|
};
|
|
34
27
|
var __export = (target, all) => {
|
|
@@ -42,7 +35,7 @@ var ts = (() => {
|
|
|
42
35
|
"src/compiler/corePublic.ts"() {
|
|
43
36
|
"use strict";
|
|
44
37
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230131`;
|
|
46
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -3196,6 +3189,9 @@ ${lanes.join("\n")}
|
|
|
3196
3189
|
counts.set(markName, count + 1);
|
|
3197
3190
|
marks.set(markName, timestamp());
|
|
3198
3191
|
performanceImpl == null ? void 0 : performanceImpl.mark(markName);
|
|
3192
|
+
if (typeof onProfilerEvent === "function") {
|
|
3193
|
+
onProfilerEvent(markName);
|
|
3194
|
+
}
|
|
3199
3195
|
}
|
|
3200
3196
|
}
|
|
3201
3197
|
function measure(measureName, startMarkName, endMarkName) {
|
|
@@ -66838,7 +66834,7 @@ ${lanes.join("\n")}
|
|
|
66838
66834
|
return narrowTypeByLiteralExpression(type, literal, assumeTrue);
|
|
66839
66835
|
}
|
|
66840
66836
|
function narrowTypeByLiteralExpression(type, literal, assumeTrue) {
|
|
66841
|
-
return assumeTrue ? narrowTypeByTypeName(type, literal.text) :
|
|
66837
|
+
return assumeTrue ? narrowTypeByTypeName(type, literal.text) : getAdjustedTypeWithFacts(type, typeofNEFacts.get(literal.text) || 32768 /* TypeofNEHostObject */);
|
|
66842
66838
|
}
|
|
66843
66839
|
function narrowTypeBySwitchOptionalChainContainment(type, switchStatement, clauseStart, clauseEnd, clauseCheck) {
|
|
66844
66840
|
const everyClauseChecks = clauseStart !== clauseEnd && every(getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd), clauseCheck);
|
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.0";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230131`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -2309,6 +2309,9 @@ function mark(markName) {
|
|
|
2309
2309
|
counts.set(markName, count + 1);
|
|
2310
2310
|
marks.set(markName, timestamp());
|
|
2311
2311
|
performanceImpl == null ? void 0 : performanceImpl.mark(markName);
|
|
2312
|
+
if (typeof onProfilerEvent === "function") {
|
|
2313
|
+
onProfilerEvent(markName);
|
|
2314
|
+
}
|
|
2312
2315
|
}
|
|
2313
2316
|
}
|
|
2314
2317
|
function measure(measureName, startMarkName, endMarkName) {
|
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.20230131",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|