typescript 4.8.0-dev.20220727 → 4.8.0-dev.20220730
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/cs/diagnosticMessages.generated.json +1 -0
- package/lib/de/diagnosticMessages.generated.json +1 -0
- package/lib/es/diagnosticMessages.generated.json +1 -0
- package/lib/fr/diagnosticMessages.generated.json +1 -0
- package/lib/it/diagnosticMessages.generated.json +1 -0
- package/lib/ja/diagnosticMessages.generated.json +1 -0
- package/lib/ko/diagnosticMessages.generated.json +1 -0
- package/lib/pl/diagnosticMessages.generated.json +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +1 -0
- package/lib/ru/diagnosticMessages.generated.json +1 -0
- package/lib/tr/diagnosticMessages.generated.json +1 -0
- package/lib/tsc.js +124 -75
- package/lib/tsserver.js +180 -107
- package/lib/tsserverlibrary.js +180 -107
- package/lib/typescript.js +179 -106
- package/lib/typescriptServices.js +179 -106
- package/lib/typingsInstaller.js +152 -102
- package/lib/zh-cn/diagnosticMessages.generated.json +1 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -0
- package/package.json +4 -3
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Očekává se identifikátor. {0} je rezervované slovo, které se tady nedá použít.",
|
|
776
776
|
"Identifier_expected_1003": "Očekával se identifikátor.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Očekává se identifikátor. __esModule je při transformaci modulů ECMAScript rezervované jako označení exportu.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Očekává se identifikátor nebo řetězcový literál.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Pokud balíček ‚{0}‘ ve skutečnosti zveřejňuje tento modul, zvažte možnost poslat žádost o přijetí změn, aby se připojila adresa ‚https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}‘",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Pokud balíček {0} skutečně zpřístupňuje tento modul, zkuste přidat nový soubor deklarace (.d.ts), který obsahuje declare module {1};",
|
|
780
781
|
"Ignore_this_error_message_90019": "Ignorovat tuto chybovou zprávu",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Bezeichner erwartet. \"{0}\" ist ein reserviertes Wort, das hier nicht verwendet werden kann.",
|
|
776
776
|
"Identifier_expected_1003": "Es wurde ein Bezeichner erwartet.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Bezeichner erwartet. \"__esModule\" ist als exportierter Marker für die Umwandlung von ECMAScript-Modulen reserviert.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Bezeichner oder Zeichenfolgenliteral erwartet.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Wenn das Paket \"{0}\" dieses Modul tatsächlich verfügbar macht, erwägen Sie, einen Pull Request zum Ändern von https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1} zu senden.",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Wenn das Paket \"{0}\" dieses Modul tatsächlich verfügbar macht, versuchen Sie, eine neue Deklarationsdatei (.d.ts) hinzuzufügen, die Declare-Modul \"{1}\" enthält.",
|
|
780
781
|
"Ignore_this_error_message_90019": "Diese Fehlermeldung ignorieren",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Se esperaba un identificador. \"{0}\" es una palabra reservada que no se puede usar aquí.",
|
|
776
776
|
"Identifier_expected_1003": "Se esperaba un identificador.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificador esperado. \"__esModule\" está reservado como marcador exportado al transformar módulos ECMAScript.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Se esperaba un literal de cadena o identificador",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Si el paquete \"{0}\" expone realmente este módulo, considere la posibilidad de enviar una solicitud de incorporación de cambios para corregir \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\".",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Si el paquete '{0}' realmente expone este módulo, intente agregar un nuevo archivo de declaración (.d.ts) que contenga 'declarar módulo '{1}';`",
|
|
780
781
|
"Ignore_this_error_message_90019": "Ignorar este mensaje de error",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Identificateur attendu. '{0}' est un mot réservé qui ne peut pas être utilisé ici.",
|
|
776
776
|
"Identifier_expected_1003": "Identificateur attendu.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificateur attendu. '__esModule' est réservé en tant que marqueur exporté durant la transformation des modules ECMAScript.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Identificateur ou littéral de chaîne attendu",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Si le package '{0}' expose réellement ce module, envoyez une demande de tirage (pull request) pour modifier 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Si le package' {0} 'expose effectivement ce module, essayez d’ajouter un nouveau fichier de déclaration (. d. TS) contenant’declare module' {1} '; '",
|
|
780
781
|
"Ignore_this_error_message_90019": "Ignorer ce message d'erreur",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "È previsto un identificatore. '{0}' è una parola riservata che non può essere usata in questo punto.",
|
|
776
776
|
"Identifier_expected_1003": "È previsto l'identificatore.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "È previsto un identificatore. '__esModule' è riservato come marcatore esportato durante la trasformazione di moduli ECMAScript.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Previsto identificatore o valore letterale stringa.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Se il pacchetto '{0}' espone effettivamente questo modulo, provare a inviare una richiesta pull per modificare 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Se il pacchetto ' {0}' espone effettivamente il modulo, provare ad aggiungere un nuovo file di dichiarazione (.d.ts) contenente ' Dichiara modulo' {1}';'",
|
|
780
781
|
"Ignore_this_error_message_90019": "Ignorare questo messaggio di errore",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "識別子が予期されていました。'{0}' は、ここでは使用できない予約語です。",
|
|
776
776
|
"Identifier_expected_1003": "識別子が必要です。",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "識別子が必要です。'__esModule' は、ECMAScript モジュールを変換するときのエクスポート済みマーカーとして予約されています。",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "識別子または文字列リテラルが必要です。",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' パッケージが実際にこのモジュールを公開する場合は、pull request を送信して 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' を修正することを検討してください",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "'{0}' パッケージが実際にこのモジュールを公開する場合は、'declare module '{1}';' を含む新しい宣言 (d.ts) ファイルを追加してみてください。",
|
|
780
781
|
"Ignore_this_error_message_90019": "このエラー メッセージを無視する",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "식별자가 필요합니다. '{0}'은(는) 여기에서 사용할 수 없는 예약어입니다.",
|
|
776
776
|
"Identifier_expected_1003": "식별자가 필요합니다.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "식별자가 필요합니다. '__esModule'은 ECMAScript 모듈을 변환할 때 내보낸 표식으로 예약되어 있습니다.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "식별자 또는 문자열 리터럴이 필요합니다.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' 패키지가 이 모듈을 실제로 공개하는 경우 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' 수정을 위한 끌어오기 요청을 보내는 것이 좋습니다.",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "'{0}' 패키지가 실제로 이 모듈을 노출하는 경우 'declare module {1}';'이(가) 포함된 새 선언(.d.ts) 파일을 추가해 보세요.",
|
|
780
781
|
"Ignore_this_error_message_90019": "이 오류 메시지 무시",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Oczekiwano identyfikatora. „{0}” jest słowem zastrzeżonym, którego nie można użyć w tym miejscu.",
|
|
776
776
|
"Identifier_expected_1003": "Oczekiwano identyfikatora.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Oczekiwano identyfikatora. Ciąg „__esModule” jest zastrzeżony jako eksportowany znacznik podczas transformowania modułów ECMAScript.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Oczekiwano identyfikatora lub literału ciągu.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Jeśli pakiet \"{0}\" faktycznie udostępnia ten moduł, rozważ wysłanie żądania ściągnięcia w celu zmiany elementu \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\"",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Jeśli pakiet „{0}” rzeczywiście uwidacznia ten moduł, spróbuj dodać nowy plik deklaracji (.d.ts) zawierający „declare module”{1}';`",
|
|
780
781
|
"Ignore_this_error_message_90019": "Ignoruj ten komunikat o błędzie",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Identificador esperado. '{0}' é uma palavra reservada que não pode ser usada aqui.",
|
|
776
776
|
"Identifier_expected_1003": "Identificador esperado.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Identificador esperado. '__esModule' é reservado como um marcador exportado ao transformar os módulos ECMAScript.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Identificador ou literal de cadeia de caracteres esperado.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Se o pacote '{0}' realmente expõe este módulo, considere enviar uma solicitação de pull para corrigir 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Se o pacote '{0}' realmente expõe este módulo, tente adicionar um novo arquivo de declaração (.d.ts) contendo o módulo `declare '{1}';`",
|
|
780
781
|
"Ignore_this_error_message_90019": "Ignorar essa mensagem de erro",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Ожидается идентификатор. \"{0}\" — это зарезервированное слово, которое не может быть использовано здесь.",
|
|
776
776
|
"Identifier_expected_1003": "Ожидался идентификатор.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Ожидался идентификатор. Значение \"__esModule\" зарезервировано как экспортируемый маркер при преобразовании модулей ECMAScript.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Ожидался идентификатор или строковый литерал.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "Если пакет \"{0}\" фактически предоставляет этот модуль, рекомендуется отправить запрос на вытягивание, чтобы изменить \"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}\"",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "Если пакет \"{0}\" действительно предоставляет этот модуль, попробуйте добавить новый файл объявления (. d. TS), содержащий \"declare module\" \"{1}\";`",
|
|
780
781
|
"Ignore_this_error_message_90019": "Пропустите это сообщение об ошибке",
|
|
@@ -775,6 +775,7 @@
|
|
|
775
775
|
"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359": "Tanımlayıcı bekleniyor. '{0}', burada kullanılamayan ayrılmış bir sözcüktür.",
|
|
776
776
|
"Identifier_expected_1003": "Tanımlayıcı bekleniyor.",
|
|
777
777
|
"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216": "Tanımlayıcı bekleniyor. '__esModule', ECMAScript modülleri dönüştürülürken, dışarı aktarılan bir işaretçi olarak ayrılmış.",
|
|
778
|
+
"Identifier_or_string_literal_expected_1478": "Tanımlayıcı veya sabit değerli dize bekleniyor.",
|
|
778
779
|
"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040": "'{0}' paketi bu modülü gerçekten kullanıma sunarsa, 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}' öğesini düzeltmek için bir çekme isteği göndermeyi deneyin",
|
|
779
780
|
"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058": "‘{0}’ paketi bu modülü fiili olarak kullanıma sunuyorsa `'{1}' modülünü bildir;` ifadesini içeren yeni bir bildirim (.d.ts) dosyası eklemeyi deneyin",
|
|
780
781
|
"Ignore_this_error_message_90019": "Bu hata iletisini yoksay",
|
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.8";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220730";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -1484,6 +1484,10 @@ var ts;
|
|
|
1484
1484
|
ts.cast = cast;
|
|
1485
1485
|
function noop(_) { }
|
|
1486
1486
|
ts.noop = noop;
|
|
1487
|
+
ts.noopPush = {
|
|
1488
|
+
push: noop,
|
|
1489
|
+
length: 0
|
|
1490
|
+
};
|
|
1487
1491
|
function returnFalse() {
|
|
1488
1492
|
return false;
|
|
1489
1493
|
}
|
|
@@ -5945,6 +5949,7 @@ var ts;
|
|
|
5945
5949
|
Cannot_create_an_instance_of_an_abstract_class: diag(2511, ts.DiagnosticCategory.Error, "Cannot_create_an_instance_of_an_abstract_class_2511", "Cannot create an instance of an abstract class."),
|
|
5946
5950
|
Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, ts.DiagnosticCategory.Error, "Overload_signatures_must_all_be_abstract_or_non_abstract_2512", "Overload signatures must all be abstract or non-abstract."),
|
|
5947
5951
|
Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, ts.DiagnosticCategory.Error, "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513", "Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),
|
|
5952
|
+
A_tuple_type_cannot_be_indexed_with_a_negative_value: diag(2514, ts.DiagnosticCategory.Error, "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514", "A tuple type cannot be indexed with a negative value."),
|
|
5948
5953
|
Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, ts.DiagnosticCategory.Error, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),
|
|
5949
5954
|
All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, ts.DiagnosticCategory.Error, "All_declarations_of_an_abstract_method_must_be_consecutive_2516", "All declarations of an abstract method must be consecutive."),
|
|
5950
5955
|
Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, ts.DiagnosticCategory.Error, "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517", "Cannot assign an abstract constructor type to a non-abstract constructor type."),
|
|
@@ -19267,7 +19272,7 @@ var ts;
|
|
|
19267
19272
|
propagateChildFlags(node.expression) |
|
|
19268
19273
|
(ts.isIdentifier(node.name) ?
|
|
19269
19274
|
propagateIdentifierNameFlags(node.name) :
|
|
19270
|
-
propagateChildFlags(node.name));
|
|
19275
|
+
propagateChildFlags(node.name) | 536870912);
|
|
19271
19276
|
if (ts.isSuperKeyword(expression)) {
|
|
19272
19277
|
node.transformFlags |=
|
|
19273
19278
|
256 |
|
|
@@ -19296,7 +19301,7 @@ var ts;
|
|
|
19296
19301
|
propagateChildFlags(node.questionDotToken) |
|
|
19297
19302
|
(ts.isIdentifier(node.name) ?
|
|
19298
19303
|
propagateIdentifierNameFlags(node.name) :
|
|
19299
|
-
propagateChildFlags(node.name));
|
|
19304
|
+
propagateChildFlags(node.name) | 536870912);
|
|
19300
19305
|
return node;
|
|
19301
19306
|
}
|
|
19302
19307
|
function updatePropertyAccessChain(node, expression, questionDotToken, name) {
|
|
@@ -19655,6 +19660,9 @@ var ts;
|
|
|
19655
19660
|
else if (ts.isLogicalOrCoalescingAssignmentOperator(operatorKind)) {
|
|
19656
19661
|
node.transformFlags |= 16;
|
|
19657
19662
|
}
|
|
19663
|
+
if (operatorKind === 101 && ts.isPrivateIdentifier(node.left)) {
|
|
19664
|
+
node.transformFlags |= 536870912;
|
|
19665
|
+
}
|
|
19658
19666
|
return node;
|
|
19659
19667
|
}
|
|
19660
19668
|
function propagateAssignmentPatternFlags(node) {
|
|
@@ -22081,29 +22089,29 @@ var ts;
|
|
|
22081
22089
|
case 208:
|
|
22082
22090
|
case 209:
|
|
22083
22091
|
case 204:
|
|
22084
|
-
return
|
|
22092
|
+
return -2147450880;
|
|
22085
22093
|
case 261:
|
|
22086
|
-
return
|
|
22094
|
+
return -1941676032;
|
|
22087
22095
|
case 164:
|
|
22088
|
-
return
|
|
22096
|
+
return -2147483648;
|
|
22089
22097
|
case 214:
|
|
22090
|
-
return
|
|
22098
|
+
return -2072174592;
|
|
22091
22099
|
case 213:
|
|
22092
22100
|
case 256:
|
|
22093
|
-
return
|
|
22101
|
+
return -1937940480;
|
|
22094
22102
|
case 255:
|
|
22095
|
-
return
|
|
22103
|
+
return -2146893824;
|
|
22096
22104
|
case 257:
|
|
22097
22105
|
case 226:
|
|
22098
|
-
return
|
|
22106
|
+
return -2147344384;
|
|
22099
22107
|
case 171:
|
|
22100
|
-
return
|
|
22108
|
+
return -1937948672;
|
|
22101
22109
|
case 167:
|
|
22102
|
-
return
|
|
22110
|
+
return -2013249536;
|
|
22103
22111
|
case 169:
|
|
22104
22112
|
case 172:
|
|
22105
22113
|
case 173:
|
|
22106
|
-
return
|
|
22114
|
+
return -2005057536;
|
|
22107
22115
|
case 130:
|
|
22108
22116
|
case 147:
|
|
22109
22117
|
case 158:
|
|
@@ -22123,23 +22131,23 @@ var ts;
|
|
|
22123
22131
|
case 259:
|
|
22124
22132
|
return -2;
|
|
22125
22133
|
case 205:
|
|
22126
|
-
return
|
|
22134
|
+
return -2147278848;
|
|
22127
22135
|
case 292:
|
|
22128
|
-
return
|
|
22136
|
+
return -2147418112;
|
|
22129
22137
|
case 201:
|
|
22130
22138
|
case 202:
|
|
22131
|
-
return
|
|
22139
|
+
return -2147450880;
|
|
22132
22140
|
case 211:
|
|
22133
22141
|
case 229:
|
|
22134
22142
|
case 350:
|
|
22135
22143
|
case 212:
|
|
22136
22144
|
case 106:
|
|
22137
|
-
return
|
|
22145
|
+
return -2147483648;
|
|
22138
22146
|
case 206:
|
|
22139
22147
|
case 207:
|
|
22140
|
-
return
|
|
22148
|
+
return -2147483648;
|
|
22141
22149
|
default:
|
|
22142
|
-
return
|
|
22150
|
+
return -2147483648;
|
|
22143
22151
|
}
|
|
22144
22152
|
}
|
|
22145
22153
|
ts.getTransformFlagsSubtreeExclusions = getTransformFlagsSubtreeExclusions;
|
|
@@ -35246,18 +35254,7 @@ var ts;
|
|
|
35246
35254
|
NodeResolutionFeatures.None;
|
|
35247
35255
|
}
|
|
35248
35256
|
function resolvePackageNameToPackageJson(packageName, containingDirectory, options, host, cache) {
|
|
35249
|
-
var moduleResolutionState =
|
|
35250
|
-
compilerOptions: options,
|
|
35251
|
-
host: host,
|
|
35252
|
-
traceEnabled: isTraceEnabled(options, host),
|
|
35253
|
-
failedLookupLocations: [],
|
|
35254
|
-
affectingLocations: [],
|
|
35255
|
-
packageJsonInfoCache: cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(),
|
|
35256
|
-
conditions: ts.emptyArray,
|
|
35257
|
-
features: NodeResolutionFeatures.None,
|
|
35258
|
-
requestContainingDirectory: containingDirectory,
|
|
35259
|
-
reportDiagnostic: ts.noop
|
|
35260
|
-
};
|
|
35257
|
+
var moduleResolutionState = getTemporaryModuleResolutionState(cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(), host, options);
|
|
35261
35258
|
return ts.forEachAncestorDirectory(containingDirectory, function (ancestorDirectory) {
|
|
35262
35259
|
if (ts.getBaseFileName(ancestorDirectory) !== "node_modules") {
|
|
35263
35260
|
var nodeModulesFolder = ts.combinePaths(ancestorDirectory, "node_modules");
|
|
@@ -36057,18 +36054,9 @@ var ts;
|
|
|
36057
36054
|
var entrypoints;
|
|
36058
36055
|
var extensions = resolveJs ? Extensions.JavaScript : Extensions.TypeScript;
|
|
36059
36056
|
var features = getDefaultNodeResolutionFeatures(options);
|
|
36060
|
-
var requireState =
|
|
36061
|
-
|
|
36062
|
-
|
|
36063
|
-
traceEnabled: isTraceEnabled(options, host),
|
|
36064
|
-
failedLookupLocations: [],
|
|
36065
|
-
affectingLocations: [],
|
|
36066
|
-
packageJsonInfoCache: cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(),
|
|
36067
|
-
conditions: ["node", "require", "types"],
|
|
36068
|
-
features: features,
|
|
36069
|
-
requestContainingDirectory: packageJsonInfo.packageDirectory,
|
|
36070
|
-
reportDiagnostic: ts.noop
|
|
36071
|
-
};
|
|
36057
|
+
var requireState = getTemporaryModuleResolutionState(cache === null || cache === void 0 ? void 0 : cache.getPackageJsonInfoCache(), host, options);
|
|
36058
|
+
requireState.conditions = ["node", "require", "types"];
|
|
36059
|
+
requireState.requestContainingDirectory = packageJsonInfo.packageDirectory;
|
|
36072
36060
|
var requireResolution = loadNodeModuleFromDirectoryWorker(extensions, packageJsonInfo.packageDirectory, false, requireState, packageJsonInfo.packageJsonContent, packageJsonInfo.versionPaths);
|
|
36073
36061
|
entrypoints = ts.append(entrypoints, requireResolution === null || requireResolution === void 0 ? void 0 : requireResolution.path);
|
|
36074
36062
|
if (features & NodeResolutionFeatures.Exports && packageJsonInfo.packageJsonContent.exports) {
|
|
@@ -36138,19 +36126,22 @@ var ts;
|
|
|
36138
36126
|
}
|
|
36139
36127
|
}
|
|
36140
36128
|
}
|
|
36141
|
-
function
|
|
36142
|
-
|
|
36129
|
+
function getTemporaryModuleResolutionState(packageJsonInfoCache, host, options) {
|
|
36130
|
+
return {
|
|
36143
36131
|
host: host,
|
|
36144
36132
|
compilerOptions: options,
|
|
36145
36133
|
traceEnabled: isTraceEnabled(options, host),
|
|
36146
|
-
failedLookupLocations:
|
|
36147
|
-
affectingLocations:
|
|
36134
|
+
failedLookupLocations: ts.noopPush,
|
|
36135
|
+
affectingLocations: ts.noopPush,
|
|
36148
36136
|
packageJsonInfoCache: packageJsonInfoCache,
|
|
36149
|
-
features:
|
|
36150
|
-
conditions:
|
|
36137
|
+
features: NodeResolutionFeatures.None,
|
|
36138
|
+
conditions: ts.emptyArray,
|
|
36151
36139
|
requestContainingDirectory: undefined,
|
|
36152
36140
|
reportDiagnostic: ts.noop
|
|
36153
36141
|
};
|
|
36142
|
+
}
|
|
36143
|
+
ts.getTemporaryModuleResolutionState = getTemporaryModuleResolutionState;
|
|
36144
|
+
function getPackageScopeForPath(fileName, state) {
|
|
36154
36145
|
var parts = ts.getPathComponents(fileName);
|
|
36155
36146
|
parts.pop();
|
|
36156
36147
|
while (parts.length > 0) {
|
|
@@ -36307,7 +36298,7 @@ var ts;
|
|
|
36307
36298
|
var _a, _b;
|
|
36308
36299
|
var useCaseSensitiveFileNames = typeof state.host.useCaseSensitiveFileNames === "function" ? state.host.useCaseSensitiveFileNames() : state.host.useCaseSensitiveFileNames;
|
|
36309
36300
|
var directoryPath = ts.toPath(ts.combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a), ts.createGetCanonicalFileName(useCaseSensitiveFileNames === undefined ? true : useCaseSensitiveFileNames));
|
|
36310
|
-
var scope = getPackageScopeForPath(directoryPath, state
|
|
36301
|
+
var scope = getPackageScopeForPath(directoryPath, state);
|
|
36311
36302
|
if (!scope || !scope.packageJsonContent.exports) {
|
|
36312
36303
|
return undefined;
|
|
36313
36304
|
}
|
|
@@ -36366,7 +36357,7 @@ var ts;
|
|
|
36366
36357
|
}
|
|
36367
36358
|
var useCaseSensitiveFileNames = typeof state.host.useCaseSensitiveFileNames === "function" ? state.host.useCaseSensitiveFileNames() : state.host.useCaseSensitiveFileNames;
|
|
36368
36359
|
var directoryPath = ts.toPath(ts.combinePaths(directory, "dummy"), (_b = (_a = state.host).getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(_a), ts.createGetCanonicalFileName(useCaseSensitiveFileNames === undefined ? true : useCaseSensitiveFileNames));
|
|
36369
|
-
var scope = getPackageScopeForPath(directoryPath, state
|
|
36360
|
+
var scope = getPackageScopeForPath(directoryPath, state);
|
|
36370
36361
|
if (!scope) {
|
|
36371
36362
|
if (state.traceEnabled) {
|
|
36372
36363
|
trace(state.host, ts.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve, directoryPath);
|
|
@@ -43559,6 +43550,12 @@ var ts;
|
|
|
43559
43550
|
return context.truncating = context.approximateLength > ((context.flags & 1) ? ts.noTruncationMaximumTruncationLength : ts.defaultMaximumTruncationLength);
|
|
43560
43551
|
}
|
|
43561
43552
|
function typeToTypeNodeHelper(type, context) {
|
|
43553
|
+
var savedFlags = context.flags;
|
|
43554
|
+
var typeNode = typeToTypeNodeWorker(type, context);
|
|
43555
|
+
context.flags = savedFlags;
|
|
43556
|
+
return typeNode;
|
|
43557
|
+
}
|
|
43558
|
+
function typeToTypeNodeWorker(type, context) {
|
|
43562
43559
|
if (cancellationToken && cancellationToken.throwIfCancellationRequested) {
|
|
43563
43560
|
cancellationToken.throwIfCancellationRequested();
|
|
43564
43561
|
}
|
|
@@ -49229,7 +49226,7 @@ var ts;
|
|
|
49229
49226
|
}
|
|
49230
49227
|
}
|
|
49231
49228
|
}
|
|
49232
|
-
return getIntersectionType(constraints);
|
|
49229
|
+
return getNormalizedType(getIntersectionType(constraints), false);
|
|
49233
49230
|
}
|
|
49234
49231
|
return undefined;
|
|
49235
49232
|
}
|
|
@@ -52082,21 +52079,28 @@ var ts;
|
|
|
52082
52079
|
getFlowTypeOfReference(accessExpression, propType) :
|
|
52083
52080
|
propType;
|
|
52084
52081
|
}
|
|
52085
|
-
if (everyType(objectType, isTupleType) && ts.isNumericLiteralName(propName)
|
|
52082
|
+
if (everyType(objectType, isTupleType) && ts.isNumericLiteralName(propName)) {
|
|
52083
|
+
var index = +propName;
|
|
52086
52084
|
if (accessNode && everyType(objectType, function (t) { return !t.target.hasRestElement; }) && !(accessFlags & 16)) {
|
|
52087
52085
|
var indexNode = getIndexNodeForAccessExpression(accessNode);
|
|
52088
52086
|
if (isTupleType(objectType)) {
|
|
52087
|
+
if (index < 0) {
|
|
52088
|
+
error(indexNode, ts.Diagnostics.A_tuple_type_cannot_be_indexed_with_a_negative_value);
|
|
52089
|
+
return undefinedType;
|
|
52090
|
+
}
|
|
52089
52091
|
error(indexNode, ts.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), getTypeReferenceArity(objectType), ts.unescapeLeadingUnderscores(propName));
|
|
52090
52092
|
}
|
|
52091
52093
|
else {
|
|
52092
52094
|
error(indexNode, ts.Diagnostics.Property_0_does_not_exist_on_type_1, ts.unescapeLeadingUnderscores(propName), typeToString(objectType));
|
|
52093
52095
|
}
|
|
52094
52096
|
}
|
|
52095
|
-
|
|
52096
|
-
|
|
52097
|
-
|
|
52098
|
-
|
|
52099
|
-
|
|
52097
|
+
if (index >= 0) {
|
|
52098
|
+
errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType));
|
|
52099
|
+
return mapType(objectType, function (t) {
|
|
52100
|
+
var restType = getRestTypeOfTupleType(t) || undefinedType;
|
|
52101
|
+
return accessFlags & 1 ? getUnionType([restType, undefinedType]) : restType;
|
|
52102
|
+
});
|
|
52103
|
+
}
|
|
52100
52104
|
}
|
|
52101
52105
|
}
|
|
52102
52106
|
if (!(indexType.flags & 98304) && isTypeAssignableToKind(indexType, 402653316 | 296 | 12288)) {
|
|
@@ -67774,7 +67778,7 @@ var ts;
|
|
|
67774
67778
|
error(node.name, ts.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name);
|
|
67775
67779
|
}
|
|
67776
67780
|
}
|
|
67777
|
-
if (node.questionToken && ts.isBindingPattern(node.name) && func.body) {
|
|
67781
|
+
if ((node.questionToken || isJSDocOptionalParameter(node)) && ts.isBindingPattern(node.name) && func.body) {
|
|
67778
67782
|
error(node, ts.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature);
|
|
67779
67783
|
}
|
|
67780
67784
|
if (node.name && ts.isIdentifier(node.name) && (node.name.escapedText === "this" || node.name.escapedText === "new")) {
|
|
@@ -70968,14 +70972,19 @@ var ts;
|
|
|
70968
70972
|
}
|
|
70969
70973
|
var indexInfos = getApplicableIndexInfos(type, propNameType);
|
|
70970
70974
|
var interfaceDeclaration = ts.getObjectFlags(type) & 2 ? ts.getDeclarationOfKind(type.symbol, 258) : undefined;
|
|
70971
|
-
var
|
|
70972
|
-
name && name.kind === 162
|
|
70975
|
+
var propDeclaration = declaration && declaration.kind === 221 ||
|
|
70976
|
+
name && name.kind === 162 ? declaration : undefined;
|
|
70977
|
+
var localPropDeclaration = getParentOfSymbol(prop) === type.symbol ? declaration : undefined;
|
|
70973
70978
|
var _loop_30 = function (info) {
|
|
70974
70979
|
var localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfNode(info.declaration)) === type.symbol ? info.declaration : undefined;
|
|
70975
70980
|
var errorNode = localPropDeclaration || localIndexDeclaration ||
|
|
70976
70981
|
(interfaceDeclaration && !ts.some(getBaseTypes(type), function (base) { return !!getPropertyOfObjectType(base, prop.escapedName) && !!getIndexTypeOfType(base, info.keyType); }) ? interfaceDeclaration : undefined);
|
|
70977
70982
|
if (errorNode && !isTypeAssignableTo(propType, info.type)) {
|
|
70978
|
-
|
|
70983
|
+
var diagnostic = createError(errorNode, ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3, symbolToString(prop), typeToString(propType), typeToString(info.keyType), typeToString(info.type));
|
|
70984
|
+
if (propDeclaration && errorNode !== propDeclaration) {
|
|
70985
|
+
ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(propDeclaration, ts.Diagnostics._0_is_declared_here, symbolToString(prop)));
|
|
70986
|
+
}
|
|
70987
|
+
diagnostics.add(diagnostic);
|
|
70979
70988
|
}
|
|
70980
70989
|
};
|
|
70981
70990
|
for (var _i = 0, indexInfos_9 = indexInfos; _i < indexInfos_9.length; _i++) {
|
|
@@ -81035,23 +81044,58 @@ var ts;
|
|
|
81035
81044
|
function visitClassDeclaration(node) {
|
|
81036
81045
|
if (!(ts.classOrConstructorParameterIsDecorated(node) || ts.childIsDecorated(node)))
|
|
81037
81046
|
return ts.visitEachChild(node, visitor, context);
|
|
81038
|
-
var
|
|
81039
|
-
|
|
81040
|
-
|
|
81041
|
-
var statements = [classStatement];
|
|
81042
|
-
addClassElementDecorationStatements(statements, node, false);
|
|
81043
|
-
addClassElementDecorationStatements(statements, node, true);
|
|
81044
|
-
addConstructorDecorationStatement(statements, node);
|
|
81047
|
+
var statements = ts.hasDecorators(node) ?
|
|
81048
|
+
transformClassDeclarationWithClassDecorators(node, node.name) :
|
|
81049
|
+
transformClassDeclarationWithoutClassDecorators(node, node.name);
|
|
81045
81050
|
if (statements.length > 1) {
|
|
81046
81051
|
statements.push(factory.createEndOfDeclarationMarker(node));
|
|
81047
|
-
ts.setEmitFlags(
|
|
81052
|
+
ts.setEmitFlags(statements[0], ts.getEmitFlags(statements[0]) | 4194304);
|
|
81048
81053
|
}
|
|
81049
81054
|
return ts.singleOrMany(statements);
|
|
81050
81055
|
}
|
|
81051
|
-
function
|
|
81052
|
-
return
|
|
81056
|
+
function decoratorContainsPrivateIdentifierInExpression(decorator) {
|
|
81057
|
+
return !!(decorator.transformFlags & 536870912);
|
|
81058
|
+
}
|
|
81059
|
+
function parameterDecoratorsContainPrivateIdentifierInExpression(parameterDecorators) {
|
|
81060
|
+
return ts.some(parameterDecorators, decoratorContainsPrivateIdentifierInExpression);
|
|
81053
81061
|
}
|
|
81054
|
-
function
|
|
81062
|
+
function hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node) {
|
|
81063
|
+
for (var _i = 0, _a = node.members; _i < _a.length; _i++) {
|
|
81064
|
+
var member = _a[_i];
|
|
81065
|
+
if (!ts.canHaveDecorators(member))
|
|
81066
|
+
continue;
|
|
81067
|
+
var allDecorators = ts.getAllDecoratorsOfClassElement(member, node);
|
|
81068
|
+
if (ts.some(allDecorators === null || allDecorators === void 0 ? void 0 : allDecorators.decorators, decoratorContainsPrivateIdentifierInExpression))
|
|
81069
|
+
return true;
|
|
81070
|
+
if (ts.some(allDecorators === null || allDecorators === void 0 ? void 0 : allDecorators.parameters, parameterDecoratorsContainPrivateIdentifierInExpression))
|
|
81071
|
+
return true;
|
|
81072
|
+
}
|
|
81073
|
+
return false;
|
|
81074
|
+
}
|
|
81075
|
+
function transformDecoratorsOfClassElements(node, members) {
|
|
81076
|
+
var decorationStatements = [];
|
|
81077
|
+
addClassElementDecorationStatements(decorationStatements, node, false);
|
|
81078
|
+
addClassElementDecorationStatements(decorationStatements, node, true);
|
|
81079
|
+
if (hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node)) {
|
|
81080
|
+
members = ts.setTextRange(factory.createNodeArray(__spreadArray(__spreadArray([], members, true), [
|
|
81081
|
+
factory.createClassStaticBlockDeclaration(factory.createBlock(decorationStatements, true))
|
|
81082
|
+
], false)), members);
|
|
81083
|
+
decorationStatements = undefined;
|
|
81084
|
+
}
|
|
81085
|
+
return { decorationStatements: decorationStatements, members: members };
|
|
81086
|
+
}
|
|
81087
|
+
function transformClassDeclarationWithoutClassDecorators(node, name) {
|
|
81088
|
+
var _a;
|
|
81089
|
+
var modifiers = ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier);
|
|
81090
|
+
var heritageClauses = ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause);
|
|
81091
|
+
var members = ts.visitNodes(node.members, visitor, ts.isClassElement);
|
|
81092
|
+
var decorationStatements = [];
|
|
81093
|
+
(_a = transformDecoratorsOfClassElements(node, members), members = _a.members, decorationStatements = _a.decorationStatements);
|
|
81094
|
+
var updated = factory.updateClassDeclaration(node, modifiers, name, undefined, heritageClauses, members);
|
|
81095
|
+
return ts.addRange([updated], decorationStatements);
|
|
81096
|
+
}
|
|
81097
|
+
function transformClassDeclarationWithClassDecorators(node, name) {
|
|
81098
|
+
var _a;
|
|
81055
81099
|
var location = ts.moveRangePastModifiers(node);
|
|
81056
81100
|
var classAlias = getClassAliasIfNeeded(node);
|
|
81057
81101
|
var declName = languageVersion <= 2 ?
|
|
@@ -81059,6 +81103,8 @@ var ts;
|
|
|
81059
81103
|
factory.getLocalName(node, false, true);
|
|
81060
81104
|
var heritageClauses = ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause);
|
|
81061
81105
|
var members = ts.visitNodes(node.members, visitor, ts.isClassElement);
|
|
81106
|
+
var decorationStatements = [];
|
|
81107
|
+
(_a = transformDecoratorsOfClassElements(node, members), members = _a.members, decorationStatements = _a.decorationStatements);
|
|
81062
81108
|
var classExpression = factory.createClassExpression(undefined, name, undefined, heritageClauses, members);
|
|
81063
81109
|
ts.setOriginalNode(classExpression, node);
|
|
81064
81110
|
ts.setTextRange(classExpression, location);
|
|
@@ -81068,7 +81114,10 @@ var ts;
|
|
|
81068
81114
|
ts.setOriginalNode(statement, node);
|
|
81069
81115
|
ts.setTextRange(statement, location);
|
|
81070
81116
|
ts.setCommentRange(statement, node);
|
|
81071
|
-
|
|
81117
|
+
var statements = [statement];
|
|
81118
|
+
ts.addRange(statements, decorationStatements);
|
|
81119
|
+
addConstructorDecorationStatement(statements, node);
|
|
81120
|
+
return statements;
|
|
81072
81121
|
}
|
|
81073
81122
|
function visitClassExpression(node) {
|
|
81074
81123
|
return factory.updateClassExpression(node, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), node.name, undefined, ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause), ts.visitNodes(node.members, visitor, ts.isClassElement));
|
|
@@ -97285,7 +97334,7 @@ var ts;
|
|
|
97285
97334
|
return undefined;
|
|
97286
97335
|
}
|
|
97287
97336
|
function lookupFromPackageJson() {
|
|
97288
|
-
var scope = ts.getPackageScopeForPath(fileName, packageJsonInfoCache, host, options);
|
|
97337
|
+
var scope = ts.getPackageScopeForPath(fileName, ts.getTemporaryModuleResolutionState(packageJsonInfoCache, host, options));
|
|
97289
97338
|
return (scope === null || scope === void 0 ? void 0 : scope.packageJsonContent.type) === "module" ? ts.ModuleKind.ESNext : ts.ModuleKind.CommonJS;
|
|
97290
97339
|
}
|
|
97291
97340
|
}
|