typescript 5.0.0-dev.20221119 → 5.0.0-dev.20221121
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 +24 -7
- package/lib/tsserver.js +24 -7
- package/lib/tsserverlibrary.js +24 -7
- package/lib/typescript.js +24 -7
- 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.20221121`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
|
@@ -87267,26 +87267,43 @@ function transformModule(context) {
|
|
|
87267
87267
|
return promise;
|
|
87268
87268
|
}
|
|
87269
87269
|
function createImportCallExpressionCommonJS(arg, isInlineable) {
|
|
87270
|
-
const
|
|
87270
|
+
const needSyncEval = arg && !isSimpleInlineableExpression(arg) && !isInlineable;
|
|
87271
87271
|
const promiseResolveCall = factory2.createCallExpression(
|
|
87272
87272
|
factory2.createPropertyAccessExpression(factory2.createIdentifier("Promise"), "resolve"),
|
|
87273
87273
|
void 0,
|
|
87274
|
-
[
|
|
87274
|
+
needSyncEval ? languageVersion >= 2 /* ES2015 */ ? [
|
|
87275
|
+
factory2.createTemplateExpression(factory2.createTemplateHead(""), [
|
|
87276
|
+
factory2.createTemplateSpan(arg, factory2.createTemplateTail(""))
|
|
87277
|
+
])
|
|
87278
|
+
] : [
|
|
87279
|
+
factory2.createCallExpression(
|
|
87280
|
+
factory2.createPropertyAccessExpression(factory2.createStringLiteral(""), "concat"),
|
|
87281
|
+
void 0,
|
|
87282
|
+
[arg]
|
|
87283
|
+
)
|
|
87284
|
+
] : []
|
|
87275
87285
|
);
|
|
87276
87286
|
let requireCall = factory2.createCallExpression(
|
|
87277
87287
|
factory2.createIdentifier("require"),
|
|
87278
87288
|
void 0,
|
|
87279
|
-
|
|
87289
|
+
needSyncEval ? [factory2.createIdentifier("s")] : arg ? [arg] : []
|
|
87280
87290
|
);
|
|
87281
87291
|
if (getESModuleInterop(compilerOptions)) {
|
|
87282
87292
|
requireCall = emitHelpers().createImportStarHelper(requireCall);
|
|
87283
87293
|
}
|
|
87294
|
+
const parameters = needSyncEval ? [
|
|
87295
|
+
factory2.createParameterDeclaration(
|
|
87296
|
+
void 0,
|
|
87297
|
+
void 0,
|
|
87298
|
+
"s"
|
|
87299
|
+
)
|
|
87300
|
+
] : [];
|
|
87284
87301
|
let func;
|
|
87285
87302
|
if (languageVersion >= 2 /* ES2015 */) {
|
|
87286
87303
|
func = factory2.createArrowFunction(
|
|
87287
87304
|
void 0,
|
|
87288
87305
|
void 0,
|
|
87289
|
-
|
|
87306
|
+
parameters,
|
|
87290
87307
|
void 0,
|
|
87291
87308
|
void 0,
|
|
87292
87309
|
requireCall
|
|
@@ -87297,13 +87314,13 @@ function transformModule(context) {
|
|
|
87297
87314
|
void 0,
|
|
87298
87315
|
void 0,
|
|
87299
87316
|
void 0,
|
|
87300
|
-
|
|
87317
|
+
parameters,
|
|
87301
87318
|
void 0,
|
|
87302
87319
|
factory2.createBlock([factory2.createReturnStatement(requireCall)])
|
|
87303
87320
|
);
|
|
87304
87321
|
}
|
|
87305
87322
|
const downleveledImport = factory2.createCallExpression(factory2.createPropertyAccessExpression(promiseResolveCall, "then"), void 0, [func]);
|
|
87306
|
-
return
|
|
87323
|
+
return downleveledImport;
|
|
87307
87324
|
}
|
|
87308
87325
|
function getHelperExpressionForExport(node, innerExpr) {
|
|
87309
87326
|
if (!getESModuleInterop(compilerOptions) || getEmitFlags(node) & 67108864 /* NeverApplyImportHelper */) {
|
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.20221121`;
|
|
2652
2652
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2653
2653
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2654
2654
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -92275,26 +92275,43 @@ ${lanes.join("\n")}
|
|
|
92275
92275
|
return promise;
|
|
92276
92276
|
}
|
|
92277
92277
|
function createImportCallExpressionCommonJS(arg, isInlineable) {
|
|
92278
|
-
const
|
|
92278
|
+
const needSyncEval = arg && !isSimpleInlineableExpression(arg) && !isInlineable;
|
|
92279
92279
|
const promiseResolveCall = factory2.createCallExpression(
|
|
92280
92280
|
factory2.createPropertyAccessExpression(factory2.createIdentifier("Promise"), "resolve"),
|
|
92281
92281
|
void 0,
|
|
92282
|
-
[
|
|
92282
|
+
needSyncEval ? languageVersion >= 2 /* ES2015 */ ? [
|
|
92283
|
+
factory2.createTemplateExpression(factory2.createTemplateHead(""), [
|
|
92284
|
+
factory2.createTemplateSpan(arg, factory2.createTemplateTail(""))
|
|
92285
|
+
])
|
|
92286
|
+
] : [
|
|
92287
|
+
factory2.createCallExpression(
|
|
92288
|
+
factory2.createPropertyAccessExpression(factory2.createStringLiteral(""), "concat"),
|
|
92289
|
+
void 0,
|
|
92290
|
+
[arg]
|
|
92291
|
+
)
|
|
92292
|
+
] : []
|
|
92283
92293
|
);
|
|
92284
92294
|
let requireCall = factory2.createCallExpression(
|
|
92285
92295
|
factory2.createIdentifier("require"),
|
|
92286
92296
|
void 0,
|
|
92287
|
-
|
|
92297
|
+
needSyncEval ? [factory2.createIdentifier("s")] : arg ? [arg] : []
|
|
92288
92298
|
);
|
|
92289
92299
|
if (getESModuleInterop(compilerOptions)) {
|
|
92290
92300
|
requireCall = emitHelpers().createImportStarHelper(requireCall);
|
|
92291
92301
|
}
|
|
92302
|
+
const parameters = needSyncEval ? [
|
|
92303
|
+
factory2.createParameterDeclaration(
|
|
92304
|
+
void 0,
|
|
92305
|
+
void 0,
|
|
92306
|
+
"s"
|
|
92307
|
+
)
|
|
92308
|
+
] : [];
|
|
92292
92309
|
let func;
|
|
92293
92310
|
if (languageVersion >= 2 /* ES2015 */) {
|
|
92294
92311
|
func = factory2.createArrowFunction(
|
|
92295
92312
|
void 0,
|
|
92296
92313
|
void 0,
|
|
92297
|
-
|
|
92314
|
+
parameters,
|
|
92298
92315
|
void 0,
|
|
92299
92316
|
void 0,
|
|
92300
92317
|
requireCall
|
|
@@ -92305,13 +92322,13 @@ ${lanes.join("\n")}
|
|
|
92305
92322
|
void 0,
|
|
92306
92323
|
void 0,
|
|
92307
92324
|
void 0,
|
|
92308
|
-
|
|
92325
|
+
parameters,
|
|
92309
92326
|
void 0,
|
|
92310
92327
|
factory2.createBlock([factory2.createReturnStatement(requireCall)])
|
|
92311
92328
|
);
|
|
92312
92329
|
}
|
|
92313
92330
|
const downleveledImport = factory2.createCallExpression(factory2.createPropertyAccessExpression(promiseResolveCall, "then"), void 0, [func]);
|
|
92314
|
-
return
|
|
92331
|
+
return downleveledImport;
|
|
92315
92332
|
}
|
|
92316
92333
|
function getHelperExpressionForExport(node, innerExpr) {
|
|
92317
92334
|
if (!getESModuleInterop(compilerOptions) || getEmitFlags(node) & 67108864 /* NeverApplyImportHelper */) {
|
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.20221121`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -89992,26 +89992,43 @@ ${lanes.join("\n")}
|
|
|
89992
89992
|
return promise;
|
|
89993
89993
|
}
|
|
89994
89994
|
function createImportCallExpressionCommonJS(arg, isInlineable) {
|
|
89995
|
-
const
|
|
89995
|
+
const needSyncEval = arg && !isSimpleInlineableExpression(arg) && !isInlineable;
|
|
89996
89996
|
const promiseResolveCall = factory2.createCallExpression(
|
|
89997
89997
|
factory2.createPropertyAccessExpression(factory2.createIdentifier("Promise"), "resolve"),
|
|
89998
89998
|
void 0,
|
|
89999
|
-
[
|
|
89999
|
+
needSyncEval ? languageVersion >= 2 /* ES2015 */ ? [
|
|
90000
|
+
factory2.createTemplateExpression(factory2.createTemplateHead(""), [
|
|
90001
|
+
factory2.createTemplateSpan(arg, factory2.createTemplateTail(""))
|
|
90002
|
+
])
|
|
90003
|
+
] : [
|
|
90004
|
+
factory2.createCallExpression(
|
|
90005
|
+
factory2.createPropertyAccessExpression(factory2.createStringLiteral(""), "concat"),
|
|
90006
|
+
void 0,
|
|
90007
|
+
[arg]
|
|
90008
|
+
)
|
|
90009
|
+
] : []
|
|
90000
90010
|
);
|
|
90001
90011
|
let requireCall = factory2.createCallExpression(
|
|
90002
90012
|
factory2.createIdentifier("require"),
|
|
90003
90013
|
void 0,
|
|
90004
|
-
|
|
90014
|
+
needSyncEval ? [factory2.createIdentifier("s")] : arg ? [arg] : []
|
|
90005
90015
|
);
|
|
90006
90016
|
if (getESModuleInterop(compilerOptions)) {
|
|
90007
90017
|
requireCall = emitHelpers().createImportStarHelper(requireCall);
|
|
90008
90018
|
}
|
|
90019
|
+
const parameters = needSyncEval ? [
|
|
90020
|
+
factory2.createParameterDeclaration(
|
|
90021
|
+
void 0,
|
|
90022
|
+
void 0,
|
|
90023
|
+
"s"
|
|
90024
|
+
)
|
|
90025
|
+
] : [];
|
|
90009
90026
|
let func;
|
|
90010
90027
|
if (languageVersion >= 2 /* ES2015 */) {
|
|
90011
90028
|
func = factory2.createArrowFunction(
|
|
90012
90029
|
void 0,
|
|
90013
90030
|
void 0,
|
|
90014
|
-
|
|
90031
|
+
parameters,
|
|
90015
90032
|
void 0,
|
|
90016
90033
|
void 0,
|
|
90017
90034
|
requireCall
|
|
@@ -90022,13 +90039,13 @@ ${lanes.join("\n")}
|
|
|
90022
90039
|
void 0,
|
|
90023
90040
|
void 0,
|
|
90024
90041
|
void 0,
|
|
90025
|
-
|
|
90042
|
+
parameters,
|
|
90026
90043
|
void 0,
|
|
90027
90044
|
factory2.createBlock([factory2.createReturnStatement(requireCall)])
|
|
90028
90045
|
);
|
|
90029
90046
|
}
|
|
90030
90047
|
const downleveledImport = factory2.createCallExpression(factory2.createPropertyAccessExpression(promiseResolveCall, "then"), void 0, [func]);
|
|
90031
|
-
return
|
|
90048
|
+
return downleveledImport;
|
|
90032
90049
|
}
|
|
90033
90050
|
function getHelperExpressionForExport(node, innerExpr) {
|
|
90034
90051
|
if (!getESModuleInterop(compilerOptions) || getEmitFlags(node) & 67108864 /* NeverApplyImportHelper */) {
|
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.20221121`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -89992,26 +89992,43 @@ ${lanes.join("\n")}
|
|
|
89992
89992
|
return promise;
|
|
89993
89993
|
}
|
|
89994
89994
|
function createImportCallExpressionCommonJS(arg, isInlineable) {
|
|
89995
|
-
const
|
|
89995
|
+
const needSyncEval = arg && !isSimpleInlineableExpression(arg) && !isInlineable;
|
|
89996
89996
|
const promiseResolveCall = factory2.createCallExpression(
|
|
89997
89997
|
factory2.createPropertyAccessExpression(factory2.createIdentifier("Promise"), "resolve"),
|
|
89998
89998
|
void 0,
|
|
89999
|
-
[
|
|
89999
|
+
needSyncEval ? languageVersion >= 2 /* ES2015 */ ? [
|
|
90000
|
+
factory2.createTemplateExpression(factory2.createTemplateHead(""), [
|
|
90001
|
+
factory2.createTemplateSpan(arg, factory2.createTemplateTail(""))
|
|
90002
|
+
])
|
|
90003
|
+
] : [
|
|
90004
|
+
factory2.createCallExpression(
|
|
90005
|
+
factory2.createPropertyAccessExpression(factory2.createStringLiteral(""), "concat"),
|
|
90006
|
+
void 0,
|
|
90007
|
+
[arg]
|
|
90008
|
+
)
|
|
90009
|
+
] : []
|
|
90000
90010
|
);
|
|
90001
90011
|
let requireCall = factory2.createCallExpression(
|
|
90002
90012
|
factory2.createIdentifier("require"),
|
|
90003
90013
|
void 0,
|
|
90004
|
-
|
|
90014
|
+
needSyncEval ? [factory2.createIdentifier("s")] : arg ? [arg] : []
|
|
90005
90015
|
);
|
|
90006
90016
|
if (getESModuleInterop(compilerOptions)) {
|
|
90007
90017
|
requireCall = emitHelpers().createImportStarHelper(requireCall);
|
|
90008
90018
|
}
|
|
90019
|
+
const parameters = needSyncEval ? [
|
|
90020
|
+
factory2.createParameterDeclaration(
|
|
90021
|
+
void 0,
|
|
90022
|
+
void 0,
|
|
90023
|
+
"s"
|
|
90024
|
+
)
|
|
90025
|
+
] : [];
|
|
90009
90026
|
let func;
|
|
90010
90027
|
if (languageVersion >= 2 /* ES2015 */) {
|
|
90011
90028
|
func = factory2.createArrowFunction(
|
|
90012
90029
|
void 0,
|
|
90013
90030
|
void 0,
|
|
90014
|
-
|
|
90031
|
+
parameters,
|
|
90015
90032
|
void 0,
|
|
90016
90033
|
void 0,
|
|
90017
90034
|
requireCall
|
|
@@ -90022,13 +90039,13 @@ ${lanes.join("\n")}
|
|
|
90022
90039
|
void 0,
|
|
90023
90040
|
void 0,
|
|
90024
90041
|
void 0,
|
|
90025
|
-
|
|
90042
|
+
parameters,
|
|
90026
90043
|
void 0,
|
|
90027
90044
|
factory2.createBlock([factory2.createReturnStatement(requireCall)])
|
|
90028
90045
|
);
|
|
90029
90046
|
}
|
|
90030
90047
|
const downleveledImport = factory2.createCallExpression(factory2.createPropertyAccessExpression(promiseResolveCall, "then"), void 0, [func]);
|
|
90031
|
-
return
|
|
90048
|
+
return downleveledImport;
|
|
90032
90049
|
}
|
|
90033
90050
|
function getHelperExpressionForExport(node, innerExpr) {
|
|
90034
90051
|
if (!getESModuleInterop(compilerOptions) || getEmitFlags(node) & 67108864 /* NeverApplyImportHelper */) {
|
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.20221121`;
|
|
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.20221121",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|