typescript 4.6.0-dev.20211213 → 4.6.0-dev.20211214
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 +3 -3
- package/lib/tsserver.js +6 -5
- package/lib/tsserverlibrary.js +6 -5
- package/lib/typescript.js +6 -5
- package/lib/typescriptServices.js +6 -5
- package/lib/typingsInstaller.js +3 -3
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.6";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211214";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
function tryGetNativeMap() {
|
|
@@ -54776,7 +54776,7 @@ var ts;
|
|
|
54776
54776
|
return result;
|
|
54777
54777
|
}
|
|
54778
54778
|
function getFalsyFlags(type) {
|
|
54779
|
-
return type.flags &
|
|
54779
|
+
return type.flags & 1048576 ? getFalsyFlagsOfTypes(type.types) :
|
|
54780
54780
|
type.flags & 128 ? type.value === "" ? 128 : 0 :
|
|
54781
54781
|
type.flags & 256 ? type.value === 0 ? 256 : 0 :
|
|
54782
54782
|
type.flags & 2048 ? isZeroBigInt(type) ? 2048 : 0 :
|
|
@@ -69124,7 +69124,7 @@ var ts;
|
|
|
69124
69124
|
if (memberSymbol) {
|
|
69125
69125
|
var declaration = memberSymbol.valueDeclaration;
|
|
69126
69126
|
if (declaration !== member) {
|
|
69127
|
-
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member)) {
|
|
69127
|
+
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member) && ts.isEnumDeclaration(declaration.parent)) {
|
|
69128
69128
|
return getEnumMemberValue(declaration);
|
|
69129
69129
|
}
|
|
69130
69130
|
error(expr, ts.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211214";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -65702,7 +65702,7 @@ var ts;
|
|
|
65702
65702
|
// flags for the string, number, boolean, "", 0, false, void, undefined, or null types respectively. Returns
|
|
65703
65703
|
// no flags for all other types (including non-falsy literal types).
|
|
65704
65704
|
function getFalsyFlags(type) {
|
|
65705
|
-
return type.flags &
|
|
65705
|
+
return type.flags & 1048576 /* Union */ ? getFalsyFlagsOfTypes(type.types) :
|
|
65706
65706
|
type.flags & 128 /* StringLiteral */ ? type.value === "" ? 128 /* StringLiteral */ : 0 :
|
|
65707
65707
|
type.flags & 256 /* NumberLiteral */ ? type.value === 0 ? 256 /* NumberLiteral */ : 0 :
|
|
65708
65708
|
type.flags & 2048 /* BigIntLiteral */ ? isZeroBigInt(type) ? 2048 /* BigIntLiteral */ : 0 :
|
|
@@ -82525,7 +82525,7 @@ var ts;
|
|
|
82525
82525
|
if (memberSymbol) {
|
|
82526
82526
|
var declaration = memberSymbol.valueDeclaration;
|
|
82527
82527
|
if (declaration !== member) {
|
|
82528
|
-
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member)) {
|
|
82528
|
+
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member) && ts.isEnumDeclaration(declaration.parent)) {
|
|
82529
82529
|
return getEnumMemberValue(declaration);
|
|
82530
82530
|
}
|
|
82531
82531
|
error(expr, ts.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);
|
|
@@ -157101,11 +157101,12 @@ var ts;
|
|
|
157101
157101
|
var result = [];
|
|
157102
157102
|
return visitor(selection) ? undefined : result;
|
|
157103
157103
|
function visitor(node) {
|
|
157104
|
+
var _a;
|
|
157104
157105
|
if (ts.isTypeReferenceNode(node)) {
|
|
157105
157106
|
if (ts.isIdentifier(node.typeName)) {
|
|
157106
157107
|
var symbol = checker.resolveName(node.typeName.text, node.typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
|
|
157107
|
-
|
|
157108
|
-
|
|
157108
|
+
var declaration = ts.tryCast((_a = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _a === void 0 ? void 0 : _a[0], ts.isTypeParameterDeclaration);
|
|
157109
|
+
if (declaration) {
|
|
157109
157110
|
if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {
|
|
157110
157111
|
ts.pushIfUnique(result, declaration);
|
|
157111
157112
|
}
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211214";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -65896,7 +65896,7 @@ var ts;
|
|
|
65896
65896
|
// flags for the string, number, boolean, "", 0, false, void, undefined, or null types respectively. Returns
|
|
65897
65897
|
// no flags for all other types (including non-falsy literal types).
|
|
65898
65898
|
function getFalsyFlags(type) {
|
|
65899
|
-
return type.flags &
|
|
65899
|
+
return type.flags & 1048576 /* Union */ ? getFalsyFlagsOfTypes(type.types) :
|
|
65900
65900
|
type.flags & 128 /* StringLiteral */ ? type.value === "" ? 128 /* StringLiteral */ : 0 :
|
|
65901
65901
|
type.flags & 256 /* NumberLiteral */ ? type.value === 0 ? 256 /* NumberLiteral */ : 0 :
|
|
65902
65902
|
type.flags & 2048 /* BigIntLiteral */ ? isZeroBigInt(type) ? 2048 /* BigIntLiteral */ : 0 :
|
|
@@ -82719,7 +82719,7 @@ var ts;
|
|
|
82719
82719
|
if (memberSymbol) {
|
|
82720
82720
|
var declaration = memberSymbol.valueDeclaration;
|
|
82721
82721
|
if (declaration !== member) {
|
|
82722
|
-
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member)) {
|
|
82722
|
+
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member) && ts.isEnumDeclaration(declaration.parent)) {
|
|
82723
82723
|
return getEnumMemberValue(declaration);
|
|
82724
82724
|
}
|
|
82725
82725
|
error(expr, ts.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);
|
|
@@ -157683,11 +157683,12 @@ var ts;
|
|
|
157683
157683
|
var result = [];
|
|
157684
157684
|
return visitor(selection) ? undefined : result;
|
|
157685
157685
|
function visitor(node) {
|
|
157686
|
+
var _a;
|
|
157686
157687
|
if (ts.isTypeReferenceNode(node)) {
|
|
157687
157688
|
if (ts.isIdentifier(node.typeName)) {
|
|
157688
157689
|
var symbol = checker.resolveName(node.typeName.text, node.typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
|
|
157689
|
-
|
|
157690
|
-
|
|
157690
|
+
var declaration = ts.tryCast((_a = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _a === void 0 ? void 0 : _a[0], ts.isTypeParameterDeclaration);
|
|
157691
|
+
if (declaration) {
|
|
157691
157692
|
if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {
|
|
157692
157693
|
ts.pushIfUnique(result, declaration);
|
|
157693
157694
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211214";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -65896,7 +65896,7 @@ var ts;
|
|
|
65896
65896
|
// flags for the string, number, boolean, "", 0, false, void, undefined, or null types respectively. Returns
|
|
65897
65897
|
// no flags for all other types (including non-falsy literal types).
|
|
65898
65898
|
function getFalsyFlags(type) {
|
|
65899
|
-
return type.flags &
|
|
65899
|
+
return type.flags & 1048576 /* Union */ ? getFalsyFlagsOfTypes(type.types) :
|
|
65900
65900
|
type.flags & 128 /* StringLiteral */ ? type.value === "" ? 128 /* StringLiteral */ : 0 :
|
|
65901
65901
|
type.flags & 256 /* NumberLiteral */ ? type.value === 0 ? 256 /* NumberLiteral */ : 0 :
|
|
65902
65902
|
type.flags & 2048 /* BigIntLiteral */ ? isZeroBigInt(type) ? 2048 /* BigIntLiteral */ : 0 :
|
|
@@ -82719,7 +82719,7 @@ var ts;
|
|
|
82719
82719
|
if (memberSymbol) {
|
|
82720
82720
|
var declaration = memberSymbol.valueDeclaration;
|
|
82721
82721
|
if (declaration !== member) {
|
|
82722
|
-
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member)) {
|
|
82722
|
+
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member) && ts.isEnumDeclaration(declaration.parent)) {
|
|
82723
82723
|
return getEnumMemberValue(declaration);
|
|
82724
82724
|
}
|
|
82725
82725
|
error(expr, ts.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);
|
|
@@ -157683,11 +157683,12 @@ var ts;
|
|
|
157683
157683
|
var result = [];
|
|
157684
157684
|
return visitor(selection) ? undefined : result;
|
|
157685
157685
|
function visitor(node) {
|
|
157686
|
+
var _a;
|
|
157686
157687
|
if (ts.isTypeReferenceNode(node)) {
|
|
157687
157688
|
if (ts.isIdentifier(node.typeName)) {
|
|
157688
157689
|
var symbol = checker.resolveName(node.typeName.text, node.typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
|
|
157689
|
-
|
|
157690
|
-
|
|
157690
|
+
var declaration = ts.tryCast((_a = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _a === void 0 ? void 0 : _a[0], ts.isTypeParameterDeclaration);
|
|
157691
|
+
if (declaration) {
|
|
157691
157692
|
if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {
|
|
157692
157693
|
ts.pushIfUnique(result, declaration);
|
|
157693
157694
|
}
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211214";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -65896,7 +65896,7 @@ var ts;
|
|
|
65896
65896
|
// flags for the string, number, boolean, "", 0, false, void, undefined, or null types respectively. Returns
|
|
65897
65897
|
// no flags for all other types (including non-falsy literal types).
|
|
65898
65898
|
function getFalsyFlags(type) {
|
|
65899
|
-
return type.flags &
|
|
65899
|
+
return type.flags & 1048576 /* Union */ ? getFalsyFlagsOfTypes(type.types) :
|
|
65900
65900
|
type.flags & 128 /* StringLiteral */ ? type.value === "" ? 128 /* StringLiteral */ : 0 :
|
|
65901
65901
|
type.flags & 256 /* NumberLiteral */ ? type.value === 0 ? 256 /* NumberLiteral */ : 0 :
|
|
65902
65902
|
type.flags & 2048 /* BigIntLiteral */ ? isZeroBigInt(type) ? 2048 /* BigIntLiteral */ : 0 :
|
|
@@ -82719,7 +82719,7 @@ var ts;
|
|
|
82719
82719
|
if (memberSymbol) {
|
|
82720
82720
|
var declaration = memberSymbol.valueDeclaration;
|
|
82721
82721
|
if (declaration !== member) {
|
|
82722
|
-
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member)) {
|
|
82722
|
+
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member) && ts.isEnumDeclaration(declaration.parent)) {
|
|
82723
82723
|
return getEnumMemberValue(declaration);
|
|
82724
82724
|
}
|
|
82725
82725
|
error(expr, ts.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);
|
|
@@ -157683,11 +157683,12 @@ var ts;
|
|
|
157683
157683
|
var result = [];
|
|
157684
157684
|
return visitor(selection) ? undefined : result;
|
|
157685
157685
|
function visitor(node) {
|
|
157686
|
+
var _a;
|
|
157686
157687
|
if (ts.isTypeReferenceNode(node)) {
|
|
157687
157688
|
if (ts.isIdentifier(node.typeName)) {
|
|
157688
157689
|
var symbol = checker.resolveName(node.typeName.text, node.typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);
|
|
157689
|
-
|
|
157690
|
-
|
|
157690
|
+
var declaration = ts.tryCast((_a = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _a === void 0 ? void 0 : _a[0], ts.isTypeParameterDeclaration);
|
|
157691
|
+
if (declaration) {
|
|
157691
157692
|
if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {
|
|
157692
157693
|
ts.pushIfUnique(result, declaration);
|
|
157693
157694
|
}
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211214";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -65691,7 +65691,7 @@ var ts;
|
|
|
65691
65691
|
// flags for the string, number, boolean, "", 0, false, void, undefined, or null types respectively. Returns
|
|
65692
65692
|
// no flags for all other types (including non-falsy literal types).
|
|
65693
65693
|
function getFalsyFlags(type) {
|
|
65694
|
-
return type.flags &
|
|
65694
|
+
return type.flags & 1048576 /* Union */ ? getFalsyFlagsOfTypes(type.types) :
|
|
65695
65695
|
type.flags & 128 /* StringLiteral */ ? type.value === "" ? 128 /* StringLiteral */ : 0 :
|
|
65696
65696
|
type.flags & 256 /* NumberLiteral */ ? type.value === 0 ? 256 /* NumberLiteral */ : 0 :
|
|
65697
65697
|
type.flags & 2048 /* BigIntLiteral */ ? isZeroBigInt(type) ? 2048 /* BigIntLiteral */ : 0 :
|
|
@@ -82514,7 +82514,7 @@ var ts;
|
|
|
82514
82514
|
if (memberSymbol) {
|
|
82515
82515
|
var declaration = memberSymbol.valueDeclaration;
|
|
82516
82516
|
if (declaration !== member) {
|
|
82517
|
-
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member)) {
|
|
82517
|
+
if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member) && ts.isEnumDeclaration(declaration.parent)) {
|
|
82518
82518
|
return getEnumMemberValue(declaration);
|
|
82519
82519
|
}
|
|
82520
82520
|
error(expr, ts.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);
|
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": "4.6.0-dev.
|
|
5
|
+
"version": "4.6.0-dev.20211214",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|