...**/!(*.map|*.min.js)Size
Gzip
Dependencies
Publish
Install
Publish
Install
@@ -18,7 +18,7 @@ | |||
| 18 | 18 | ||
| 19 | // src/compiler/corePublic.ts | 19 | // src/compiler/corePublic.ts |
| 20 | var versionMajorMinor = "6.0"; | 20 | var versionMajorMinor = "6.0"; |
| 21 | var version = "6.0.2"; | 21 | var version = "6.0.3"; |
| 22 | 22 | ||
| 23 | // src/compiler/core.ts | 23 | // src/compiler/core.ts |
| 24 | var emptyArray = []; | 24 | var emptyArray = []; |
@@ -45186,6 +45186,8 @@ | |||
| 45186 | return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */ | 256 /* PropagatesThisKeyword */; | 45186 | return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */ | 256 /* PropagatesThisKeyword */; |
| 45187 | case 269 /* ModuleBlock */: | 45187 | case 269 /* ModuleBlock */: |
| 45188 | return 4 /* IsControlFlowContainer */; | 45188 | return 4 /* IsControlFlowContainer */; |
| 45189 | case 173 /* PropertyDeclaration */: | ||
| 45190 | return node.initializer ? 4 /* IsControlFlowContainer */ : 0 /* None */; | ||
| 45189 | case 300 /* CatchClause */: | 45191 | case 300 /* CatchClause */: |
| 45190 | case 249 /* ForStatement */: | 45192 | case 249 /* ForStatement */: |
| 45191 | case 250 /* ForInStatement */: | 45193 | case 250 /* ForInStatement */: |
@@ -2289,7 +2289,7 @@ | |||
| 2289 | 2289 | ||
| 2290 | // src/compiler/corePublic.ts | 2290 | // src/compiler/corePublic.ts |
| 2291 | var versionMajorMinor = "6.0"; | 2291 | var versionMajorMinor = "6.0"; |
| 2292 | var version = "6.0.2"; | 2292 | var version = "6.0.3"; |
| 2293 | var Comparison = /* @__PURE__ */ ((Comparison3) => { | 2293 | var Comparison = /* @__PURE__ */ ((Comparison3) => { |
| 2294 | Comparison3[Comparison3["LessThan"] = -1] = "LessThan"; | 2294 | Comparison3[Comparison3["LessThan"] = -1] = "LessThan"; |
| 2295 | Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo"; | 2295 | Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo"; |
@@ -49721,6 +49721,8 @@ | |||
| 49721 | return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */ | 256 /* PropagatesThisKeyword */; | 49721 | return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */ | 256 /* PropagatesThisKeyword */; |
| 49722 | case 269 /* ModuleBlock */: | 49722 | case 269 /* ModuleBlock */: |
| 49723 | return 4 /* IsControlFlowContainer */; | 49723 | return 4 /* IsControlFlowContainer */; |
| 49724 | case 173 /* PropertyDeclaration */: | ||
| 49725 | return node.initializer ? 4 /* IsControlFlowContainer */ : 0 /* None */; | ||
| 49724 | case 300 /* CatchClause */: | 49726 | case 300 /* CatchClause */: |
| 49725 | case 249 /* ForStatement */: | 49727 | case 249 /* ForStatement */: |
| 49726 | case 250 /* ForInStatement */: | 49728 | case 250 /* ForInStatement */: |
@@ -139651,7 +139653,8 @@ | |||
| 139651 | NameValidationResult2[NameValidationResult2["NameTooLong"] = 2] = "NameTooLong"; | 139653 | NameValidationResult2[NameValidationResult2["NameTooLong"] = 2] = "NameTooLong"; |
| 139652 | NameValidationResult2[NameValidationResult2["NameStartsWithDot"] = 3] = "NameStartsWithDot"; | 139654 | NameValidationResult2[NameValidationResult2["NameStartsWithDot"] = 3] = "NameStartsWithDot"; |
| 139653 | NameValidationResult2[NameValidationResult2["NameStartsWithUnderscore"] = 4] = "NameStartsWithUnderscore"; | 139655 | NameValidationResult2[NameValidationResult2["NameStartsWithUnderscore"] = 4] = "NameStartsWithUnderscore"; |
| 139654 | NameValidationResult2[NameValidationResult2["NameContainsNonURISafeCharacters"] = 5] = "NameContainsNonURISafeCharacters"; | 139656 | NameValidationResult2[NameValidationResult2["NameContainsInvalidCharacters"] = 5] = "NameContainsInvalidCharacters"; |
| 139657 | NameValidationResult2[NameValidationResult2["NameContainsNonURISafeCharacters"] = 5 /* NameContainsInvalidCharacters */] = "NameContainsNonURISafeCharacters"; | ||
| 139655 | return NameValidationResult2; | 139658 | return NameValidationResult2; |
| 139656 | })(NameValidationResult || {}); | 139659 | })(NameValidationResult || {}); |
| 139657 | var maxPackageNameLength = 214; | 139660 | var maxPackageNameLength = 214; |
@@ -139697,8 +139700,8 @@ | |||
| 139697 | return 0 /* Ok */; | 139700 | return 0 /* Ok */; |
| 139698 | } | 139701 | } |
| 139699 | } | 139702 | } |
| 139700 | if (encodeURIComponent(packageName) !== packageName) { | ||
| 139701 | return 5 /* NameContainsNonURISafeCharacters */; | 139703 | if (!/^[\w.-]+$/.test(packageName)) { |
| 139704 | return 5 /* NameContainsInvalidCharacters */; | ||
| 139702 | } | 139705 | } |
| 139703 | return 0 /* Ok */; | 139706 | return 0 /* Ok */; |
| 139704 | } | 139707 | } |
@@ -139722,8 +139725,8 @@ | |||
| 139722 | return `'${typing}':: ${kind} name '${name}' cannot start with '.'`; | 139725 | return `'${typing}':: ${kind} name '${name}' cannot start with '.'`; |
| 139723 | case 4 /* NameStartsWithUnderscore */: | 139726 | case 4 /* NameStartsWithUnderscore */: |
| 139724 | return `'${typing}':: ${kind} name '${name}' cannot start with '_'`; | 139727 | return `'${typing}':: ${kind} name '${name}' cannot start with '_'`; |
| 139725 | case 5 /* NameContainsNonURISafeCharacters */: | ||
| 139726 | return `'${typing}':: ${kind} name '${name}' contains non URI safe characters`; | 139728 | case 5 /* NameContainsInvalidCharacters */: |
| 139729 | return `'${typing}':: ${kind} name '${name}' contains invalid characters`; | ||
| 139727 | case 0 /* Ok */: | 139730 | case 0 /* Ok */: |
| 139728 | return Debug.fail(); | 139731 | return Debug.fail(); |
| 139729 | // Shouldn't have called this. | 139732 | // Shouldn't have called this. |
@@ -186596,6 +186599,22 @@ | |||
| 186596 | /** @internal */ | 186599 | /** @internal */ |
| 186597 | installPackage(req) { | 186600 | installPackage(req) { |
| 186598 | const { fileName, packageName, projectName, projectRootPath, id } = req; | 186601 | const { fileName, packageName, projectName, projectRootPath, id } = req; |
| 186602 | const validationResult = ts_JsTyping_exports.validatePackageName(packageName); | ||
| 186603 | if (validationResult !== ts_JsTyping_exports.NameValidationResult.Ok) { | ||
| 186604 | const message = ts_JsTyping_exports.renderPackageNameValidationFailure(validationResult, packageName); | ||
| 186605 | if (this.log.isEnabled()) { | ||
| 186606 | this.log.writeLine(message); | ||
| 186607 | } | ||
| 186608 | const response = { | ||
| 186609 | kind: ActionPackageInstalled, | ||
| 186610 | projectName, | ||
| 186611 | id, | ||
| 186612 | success: false, | ||
| 186613 | message | ||
| 186614 | }; | ||
| 186615 | this.sendResponse(response); | ||
| 186616 | return; | ||
| 186617 | } | ||
| 186599 | const cwd = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => { | 186618 | const cwd = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => { |
| 186600 | if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) { | 186619 | if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) { |
| 186601 | return directory; | 186620 | return directory; |
@@ -2,7 +2,7 @@ | |||
| 2 | "name": "typescript", | 2 | "name": "typescript", |
| 3 | "author": "Microsoft Corp.", | 3 | "author": "Microsoft Corp.", |
| 4 | "homepage": "https://www.typescriptlang.org/", | 4 | "homepage": "https://www.typescriptlang.org/", |
| 5 | "version": "6.0.2", | 5 | "version": "6.0.3", |
| 6 | "license": "Apache-2.0", | 6 | "license": "Apache-2.0", |
| 7 | "description": "TypeScript is a language for application scale JavaScript development", | 7 | "description": "TypeScript is a language for application scale JavaScript development", |
| 8 | "keywords": [ | 8 | "keywords": [ |
@@ -114,5 +114,5 @@ | |||
| 114 | "node": "22.22.0", | 114 | "node": "22.22.0", |
| 115 | "npm": "8.19.4" | 115 | "npm": "8.19.4" |
| 116 | }, | 116 | }, |
| 117 | "gitHead": "607a22a90d1a5a1b507ce01bb8cd7ec020f954e7" | 117 | "gitHead": "050880ce59e30b356b686bd3144efe24f875ebc8" |
| 118 | } | 118 | } |
Size
Gzip
Dependencies