typescript 5.5.2 → 5.5.3
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/typescript.js +3 -3
- 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.5";
|
|
21
|
-
var version = "5.5.
|
|
21
|
+
var version = "5.5.3";
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -48048,7 +48048,7 @@ function createTypeChecker(host) {
|
|
|
48048
48048
|
}
|
|
48049
48049
|
if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) {
|
|
48050
48050
|
const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
|
|
48051
|
-
const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l));
|
|
48051
|
+
const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l));
|
|
48052
48052
|
if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) {
|
|
48053
48053
|
if (findAncestor(location, isImportEqualsDeclaration)) {
|
|
48054
48054
|
error(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference);
|
|
@@ -118604,7 +118604,7 @@ function getModeForUsageLocation(file, usage, compilerOptions) {
|
|
|
118604
118604
|
}
|
|
118605
118605
|
function getModeForUsageLocationWorker(file, usage, compilerOptions) {
|
|
118606
118606
|
var _a;
|
|
118607
|
-
if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent)) {
|
|
118607
|
+
if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent) || isJSDocImportTag(usage.parent)) {
|
|
118608
118608
|
const isTypeOnly = isExclusivelyTypeOnlyImportOrExport(usage.parent);
|
|
118609
118609
|
if (isTypeOnly) {
|
|
118610
118610
|
const override = getResolutionModeOverride(usage.parent.attributes);
|
package/lib/typescript.js
CHANGED
|
@@ -2366,7 +2366,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2366
2366
|
|
|
2367
2367
|
// src/compiler/corePublic.ts
|
|
2368
2368
|
var versionMajorMinor = "5.5";
|
|
2369
|
-
var version = "5.5.
|
|
2369
|
+
var version = "5.5.3";
|
|
2370
2370
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2371
2371
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2372
2372
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -52812,7 +52812,7 @@ function createTypeChecker(host) {
|
|
|
52812
52812
|
}
|
|
52813
52813
|
if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) {
|
|
52814
52814
|
const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
|
|
52815
|
-
const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l));
|
|
52815
|
+
const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l));
|
|
52816
52816
|
if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) {
|
|
52817
52817
|
if (findAncestor(location, isImportEqualsDeclaration)) {
|
|
52818
52818
|
error2(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference);
|
|
@@ -123600,7 +123600,7 @@ function getModeForUsageLocation(file, usage, compilerOptions) {
|
|
|
123600
123600
|
}
|
|
123601
123601
|
function getModeForUsageLocationWorker(file, usage, compilerOptions) {
|
|
123602
123602
|
var _a;
|
|
123603
|
-
if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent)) {
|
|
123603
|
+
if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent) || isJSDocImportTag(usage.parent)) {
|
|
123604
123604
|
const isTypeOnly = isExclusivelyTypeOnlyImportOrExport(usage.parent);
|
|
123605
123605
|
if (isTypeOnly) {
|
|
123606
123606
|
const override = getResolutionModeOverride(usage.parent.attributes);
|
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.5.
|
|
5
|
+
"version": "5.5.3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"node": "20.1.0",
|
|
113
113
|
"npm": "8.19.4"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "f0e992167440686f948965e5441a918b34251886"
|
|
116
116
|
}
|