typescript 5.1.0-dev.20230430 → 5.1.0-dev.20230502
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 +9 -27
- package/lib/tsserver.js +9 -27
- package/lib/tsserverlibrary.js +9 -27
- package/lib/typescript.js +9 -27
- 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.1";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20230502`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -93791,10 +93791,7 @@ function transformES2018(context) {
|
|
|
93791
93791
|
const exitNonUserCodeExpression = factory2.createAssignment(nonUserCode, factory2.createFalse());
|
|
93792
93792
|
const exitNonUserCodeStatement = factory2.createExpressionStatement(exitNonUserCodeExpression);
|
|
93793
93793
|
setSourceMapRange(exitNonUserCodeStatement, node.expression);
|
|
93794
|
-
const
|
|
93795
|
-
const enterNonUserCodeStatement = factory2.createExpressionStatement(enterNonUserCodeExpression);
|
|
93796
|
-
setSourceMapRange(exitNonUserCodeStatement, node.expression);
|
|
93797
|
-
const statements = [];
|
|
93794
|
+
const statements = [iteratorValueStatement, exitNonUserCodeStatement];
|
|
93798
93795
|
const binding = createForOfBindingStatement(factory2, node.initializer, value);
|
|
93799
93796
|
statements.push(visitNode(binding, visitor, isStatement));
|
|
93800
93797
|
let bodyLocation;
|
|
@@ -93807,29 +93804,14 @@ function transformES2018(context) {
|
|
|
93807
93804
|
} else {
|
|
93808
93805
|
statements.push(statement);
|
|
93809
93806
|
}
|
|
93810
|
-
|
|
93811
|
-
|
|
93812
|
-
factory2.
|
|
93813
|
-
|
|
93814
|
-
|
|
93815
|
-
true
|
|
93816
|
-
),
|
|
93817
|
-
bodyLocation
|
|
93807
|
+
return setTextRange(
|
|
93808
|
+
factory2.createBlock(
|
|
93809
|
+
setTextRange(factory2.createNodeArray(statements), statementsLocation),
|
|
93810
|
+
/*multiLine*/
|
|
93811
|
+
true
|
|
93818
93812
|
),
|
|
93819
|
-
|
|
93813
|
+
bodyLocation
|
|
93820
93814
|
);
|
|
93821
|
-
return factory2.createBlock([
|
|
93822
|
-
iteratorValueStatement,
|
|
93823
|
-
exitNonUserCodeStatement,
|
|
93824
|
-
factory2.createTryStatement(
|
|
93825
|
-
body,
|
|
93826
|
-
/*catchClause*/
|
|
93827
|
-
void 0,
|
|
93828
|
-
factory2.createBlock([
|
|
93829
|
-
enterNonUserCodeStatement
|
|
93830
|
-
])
|
|
93831
|
-
)
|
|
93832
|
-
]);
|
|
93833
93815
|
}
|
|
93834
93816
|
function createDownlevelAwait(expression) {
|
|
93835
93817
|
return enclosingFunctionFlags & 1 /* Generator */ ? factory2.createYieldExpression(
|
|
@@ -93908,7 +93890,7 @@ function transformES2018(context) {
|
|
|
93908
93890
|
factory2.createLogicalNot(done)
|
|
93909
93891
|
]),
|
|
93910
93892
|
/*incrementor*/
|
|
93911
|
-
|
|
93893
|
+
factory2.createAssignment(nonUserCode, factory2.createTrue()),
|
|
93912
93894
|
/*statement*/
|
|
93913
93895
|
convertForOfStatementHead(node, getValue, nonUserCode)
|
|
93914
93896
|
),
|
package/lib/tsserver.js
CHANGED
|
@@ -2303,7 +2303,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2303
2303
|
|
|
2304
2304
|
// src/compiler/corePublic.ts
|
|
2305
2305
|
var versionMajorMinor = "5.1";
|
|
2306
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2306
|
+
var version = `${versionMajorMinor}.0-dev.20230502`;
|
|
2307
2307
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2308
2308
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2309
2309
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -98612,10 +98612,7 @@ function transformES2018(context) {
|
|
|
98612
98612
|
const exitNonUserCodeExpression = factory2.createAssignment(nonUserCode, factory2.createFalse());
|
|
98613
98613
|
const exitNonUserCodeStatement = factory2.createExpressionStatement(exitNonUserCodeExpression);
|
|
98614
98614
|
setSourceMapRange(exitNonUserCodeStatement, node.expression);
|
|
98615
|
-
const
|
|
98616
|
-
const enterNonUserCodeStatement = factory2.createExpressionStatement(enterNonUserCodeExpression);
|
|
98617
|
-
setSourceMapRange(exitNonUserCodeStatement, node.expression);
|
|
98618
|
-
const statements = [];
|
|
98615
|
+
const statements = [iteratorValueStatement, exitNonUserCodeStatement];
|
|
98619
98616
|
const binding = createForOfBindingStatement(factory2, node.initializer, value);
|
|
98620
98617
|
statements.push(visitNode(binding, visitor, isStatement));
|
|
98621
98618
|
let bodyLocation;
|
|
@@ -98628,29 +98625,14 @@ function transformES2018(context) {
|
|
|
98628
98625
|
} else {
|
|
98629
98626
|
statements.push(statement);
|
|
98630
98627
|
}
|
|
98631
|
-
|
|
98632
|
-
|
|
98633
|
-
factory2.
|
|
98634
|
-
|
|
98635
|
-
|
|
98636
|
-
true
|
|
98637
|
-
),
|
|
98638
|
-
bodyLocation
|
|
98628
|
+
return setTextRange(
|
|
98629
|
+
factory2.createBlock(
|
|
98630
|
+
setTextRange(factory2.createNodeArray(statements), statementsLocation),
|
|
98631
|
+
/*multiLine*/
|
|
98632
|
+
true
|
|
98639
98633
|
),
|
|
98640
|
-
|
|
98634
|
+
bodyLocation
|
|
98641
98635
|
);
|
|
98642
|
-
return factory2.createBlock([
|
|
98643
|
-
iteratorValueStatement,
|
|
98644
|
-
exitNonUserCodeStatement,
|
|
98645
|
-
factory2.createTryStatement(
|
|
98646
|
-
body,
|
|
98647
|
-
/*catchClause*/
|
|
98648
|
-
void 0,
|
|
98649
|
-
factory2.createBlock([
|
|
98650
|
-
enterNonUserCodeStatement
|
|
98651
|
-
])
|
|
98652
|
-
)
|
|
98653
|
-
]);
|
|
98654
98636
|
}
|
|
98655
98637
|
function createDownlevelAwait(expression) {
|
|
98656
98638
|
return enclosingFunctionFlags & 1 /* Generator */ ? factory2.createYieldExpression(
|
|
@@ -98729,7 +98711,7 @@ function transformES2018(context) {
|
|
|
98729
98711
|
factory2.createLogicalNot(done)
|
|
98730
98712
|
]),
|
|
98731
98713
|
/*incrementor*/
|
|
98732
|
-
|
|
98714
|
+
factory2.createAssignment(nonUserCode, factory2.createTrue()),
|
|
98733
98715
|
/*statement*/
|
|
98734
98716
|
convertForOfStatementHead(node, getValue, nonUserCode)
|
|
98735
98717
|
),
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230502`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -96609,10 +96609,7 @@ ${lanes.join("\n")}
|
|
|
96609
96609
|
const exitNonUserCodeExpression = factory2.createAssignment(nonUserCode, factory2.createFalse());
|
|
96610
96610
|
const exitNonUserCodeStatement = factory2.createExpressionStatement(exitNonUserCodeExpression);
|
|
96611
96611
|
setSourceMapRange(exitNonUserCodeStatement, node.expression);
|
|
96612
|
-
const
|
|
96613
|
-
const enterNonUserCodeStatement = factory2.createExpressionStatement(enterNonUserCodeExpression);
|
|
96614
|
-
setSourceMapRange(exitNonUserCodeStatement, node.expression);
|
|
96615
|
-
const statements = [];
|
|
96612
|
+
const statements = [iteratorValueStatement, exitNonUserCodeStatement];
|
|
96616
96613
|
const binding = createForOfBindingStatement(factory2, node.initializer, value);
|
|
96617
96614
|
statements.push(visitNode(binding, visitor, isStatement));
|
|
96618
96615
|
let bodyLocation;
|
|
@@ -96625,29 +96622,14 @@ ${lanes.join("\n")}
|
|
|
96625
96622
|
} else {
|
|
96626
96623
|
statements.push(statement);
|
|
96627
96624
|
}
|
|
96628
|
-
|
|
96629
|
-
|
|
96630
|
-
factory2.
|
|
96631
|
-
|
|
96632
|
-
|
|
96633
|
-
true
|
|
96634
|
-
),
|
|
96635
|
-
bodyLocation
|
|
96625
|
+
return setTextRange(
|
|
96626
|
+
factory2.createBlock(
|
|
96627
|
+
setTextRange(factory2.createNodeArray(statements), statementsLocation),
|
|
96628
|
+
/*multiLine*/
|
|
96629
|
+
true
|
|
96636
96630
|
),
|
|
96637
|
-
|
|
96631
|
+
bodyLocation
|
|
96638
96632
|
);
|
|
96639
|
-
return factory2.createBlock([
|
|
96640
|
-
iteratorValueStatement,
|
|
96641
|
-
exitNonUserCodeStatement,
|
|
96642
|
-
factory2.createTryStatement(
|
|
96643
|
-
body,
|
|
96644
|
-
/*catchClause*/
|
|
96645
|
-
void 0,
|
|
96646
|
-
factory2.createBlock([
|
|
96647
|
-
enterNonUserCodeStatement
|
|
96648
|
-
])
|
|
96649
|
-
)
|
|
96650
|
-
]);
|
|
96651
96633
|
}
|
|
96652
96634
|
function createDownlevelAwait(expression) {
|
|
96653
96635
|
return enclosingFunctionFlags & 1 /* Generator */ ? factory2.createYieldExpression(
|
|
@@ -96726,7 +96708,7 @@ ${lanes.join("\n")}
|
|
|
96726
96708
|
factory2.createLogicalNot(done)
|
|
96727
96709
|
]),
|
|
96728
96710
|
/*incrementor*/
|
|
96729
|
-
|
|
96711
|
+
factory2.createAssignment(nonUserCode, factory2.createTrue()),
|
|
96730
96712
|
/*statement*/
|
|
96731
96713
|
convertForOfStatementHead(node, getValue, nonUserCode)
|
|
96732
96714
|
),
|
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.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230502`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -96609,10 +96609,7 @@ ${lanes.join("\n")}
|
|
|
96609
96609
|
const exitNonUserCodeExpression = factory2.createAssignment(nonUserCode, factory2.createFalse());
|
|
96610
96610
|
const exitNonUserCodeStatement = factory2.createExpressionStatement(exitNonUserCodeExpression);
|
|
96611
96611
|
setSourceMapRange(exitNonUserCodeStatement, node.expression);
|
|
96612
|
-
const
|
|
96613
|
-
const enterNonUserCodeStatement = factory2.createExpressionStatement(enterNonUserCodeExpression);
|
|
96614
|
-
setSourceMapRange(exitNonUserCodeStatement, node.expression);
|
|
96615
|
-
const statements = [];
|
|
96612
|
+
const statements = [iteratorValueStatement, exitNonUserCodeStatement];
|
|
96616
96613
|
const binding = createForOfBindingStatement(factory2, node.initializer, value);
|
|
96617
96614
|
statements.push(visitNode(binding, visitor, isStatement));
|
|
96618
96615
|
let bodyLocation;
|
|
@@ -96625,29 +96622,14 @@ ${lanes.join("\n")}
|
|
|
96625
96622
|
} else {
|
|
96626
96623
|
statements.push(statement);
|
|
96627
96624
|
}
|
|
96628
|
-
|
|
96629
|
-
|
|
96630
|
-
factory2.
|
|
96631
|
-
|
|
96632
|
-
|
|
96633
|
-
true
|
|
96634
|
-
),
|
|
96635
|
-
bodyLocation
|
|
96625
|
+
return setTextRange(
|
|
96626
|
+
factory2.createBlock(
|
|
96627
|
+
setTextRange(factory2.createNodeArray(statements), statementsLocation),
|
|
96628
|
+
/*multiLine*/
|
|
96629
|
+
true
|
|
96636
96630
|
),
|
|
96637
|
-
|
|
96631
|
+
bodyLocation
|
|
96638
96632
|
);
|
|
96639
|
-
return factory2.createBlock([
|
|
96640
|
-
iteratorValueStatement,
|
|
96641
|
-
exitNonUserCodeStatement,
|
|
96642
|
-
factory2.createTryStatement(
|
|
96643
|
-
body,
|
|
96644
|
-
/*catchClause*/
|
|
96645
|
-
void 0,
|
|
96646
|
-
factory2.createBlock([
|
|
96647
|
-
enterNonUserCodeStatement
|
|
96648
|
-
])
|
|
96649
|
-
)
|
|
96650
|
-
]);
|
|
96651
96633
|
}
|
|
96652
96634
|
function createDownlevelAwait(expression) {
|
|
96653
96635
|
return enclosingFunctionFlags & 1 /* Generator */ ? factory2.createYieldExpression(
|
|
@@ -96726,7 +96708,7 @@ ${lanes.join("\n")}
|
|
|
96726
96708
|
factory2.createLogicalNot(done)
|
|
96727
96709
|
]),
|
|
96728
96710
|
/*incrementor*/
|
|
96729
|
-
|
|
96711
|
+
factory2.createAssignment(nonUserCode, factory2.createTrue()),
|
|
96730
96712
|
/*statement*/
|
|
96731
96713
|
convertForOfStatementHead(node, getValue, nonUserCode)
|
|
96732
96714
|
),
|
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.1";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230502`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
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.1.0-dev.
|
|
5
|
+
"version": "5.1.0-dev.20230502",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "14.21.1",
|
|
116
116
|
"npm": "8.19.3"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "cbb8dfe78441b0e07d1f5b961b68815dca45fd97"
|
|
119
119
|
}
|