typescript 4.8.0-dev.20220721 → 4.8.0-dev.20220722
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 +1 -1
- package/lib/tsserver.js +10 -4
- package/lib/tsserverlibrary.js +10 -4
- package/lib/typescript.js +10 -4
- package/lib/typescriptServices.js +10 -4
- package/lib/typingsInstaller.js +1 -1
- 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.8";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220722";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
112
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220722";
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -141759,8 +141759,12 @@ var ts;
|
|
|
141759
141759
|
return undefined;
|
|
141760
141760
|
}
|
|
141761
141761
|
var commentOwner = commentOwnerInfo.commentOwner, parameters = commentOwnerInfo.parameters, hasReturn = commentOwnerInfo.hasReturn;
|
|
141762
|
-
var
|
|
141763
|
-
|
|
141762
|
+
var commentOwnerJsDoc = ts.hasJSDocNodes(commentOwner) && commentOwner.jsDoc ? commentOwner.jsDoc : undefined;
|
|
141763
|
+
var lastJsDoc = ts.lastOrUndefined(commentOwnerJsDoc);
|
|
141764
|
+
if (commentOwner.getStart(sourceFile) < position
|
|
141765
|
+
|| lastJsDoc
|
|
141766
|
+
&& existingDocComment
|
|
141767
|
+
&& lastJsDoc !== existingDocComment) {
|
|
141764
141768
|
return undefined;
|
|
141765
141769
|
}
|
|
141766
141770
|
var indentationStr = getIndentationStringAtPosition(sourceFile, position);
|
|
@@ -141777,7 +141781,9 @@ var ts;
|
|
|
141777
141781
|
// * if the caret was directly in front of the object, then we add an extra line and indentation.
|
|
141778
141782
|
var openComment = "/**";
|
|
141779
141783
|
var closeComment = " */";
|
|
141780
|
-
|
|
141784
|
+
// If any of the existing jsDoc has tags, ignore adding new ones.
|
|
141785
|
+
var hasTag = (commentOwnerJsDoc || []).some(function (jsDoc) { return !!jsDoc.tags; });
|
|
141786
|
+
if (tags && !hasTag) {
|
|
141781
141787
|
var preamble = openComment + newLine + indentationStr + " * ";
|
|
141782
141788
|
var endLine = tokenStart === position ? newLine + indentationStr : "";
|
|
141783
141789
|
var result = preamble + newLine + tags + indentationStr + closeComment + endLine;
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -303,7 +303,7 @@ var ts;
|
|
|
303
303
|
// The following is baselined as a literal template type without intervention
|
|
304
304
|
/** The version of the TypeScript compiler release */
|
|
305
305
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
306
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
306
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220722";
|
|
307
307
|
/* @internal */
|
|
308
308
|
var Comparison;
|
|
309
309
|
(function (Comparison) {
|
|
@@ -142372,8 +142372,12 @@ var ts;
|
|
|
142372
142372
|
return undefined;
|
|
142373
142373
|
}
|
|
142374
142374
|
var commentOwner = commentOwnerInfo.commentOwner, parameters = commentOwnerInfo.parameters, hasReturn = commentOwnerInfo.hasReturn;
|
|
142375
|
-
var
|
|
142376
|
-
|
|
142375
|
+
var commentOwnerJsDoc = ts.hasJSDocNodes(commentOwner) && commentOwner.jsDoc ? commentOwner.jsDoc : undefined;
|
|
142376
|
+
var lastJsDoc = ts.lastOrUndefined(commentOwnerJsDoc);
|
|
142377
|
+
if (commentOwner.getStart(sourceFile) < position
|
|
142378
|
+
|| lastJsDoc
|
|
142379
|
+
&& existingDocComment
|
|
142380
|
+
&& lastJsDoc !== existingDocComment) {
|
|
142377
142381
|
return undefined;
|
|
142378
142382
|
}
|
|
142379
142383
|
var indentationStr = getIndentationStringAtPosition(sourceFile, position);
|
|
@@ -142390,7 +142394,9 @@ var ts;
|
|
|
142390
142394
|
// * if the caret was directly in front of the object, then we add an extra line and indentation.
|
|
142391
142395
|
var openComment = "/**";
|
|
142392
142396
|
var closeComment = " */";
|
|
142393
|
-
|
|
142397
|
+
// If any of the existing jsDoc has tags, ignore adding new ones.
|
|
142398
|
+
var hasTag = (commentOwnerJsDoc || []).some(function (jsDoc) { return !!jsDoc.tags; });
|
|
142399
|
+
if (tags && !hasTag) {
|
|
142394
142400
|
var preamble = openComment + newLine + indentationStr + " * ";
|
|
142395
142401
|
var endLine = tokenStart === position ? newLine + indentationStr : "";
|
|
142396
142402
|
var result = preamble + newLine + tags + indentationStr + closeComment + endLine;
|
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.20220722";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -142363,8 +142363,12 @@ var ts;
|
|
|
142363
142363
|
return undefined;
|
|
142364
142364
|
}
|
|
142365
142365
|
var commentOwner = commentOwnerInfo.commentOwner, parameters = commentOwnerInfo.parameters, hasReturn = commentOwnerInfo.hasReturn;
|
|
142366
|
-
var
|
|
142367
|
-
|
|
142366
|
+
var commentOwnerJsDoc = ts.hasJSDocNodes(commentOwner) && commentOwner.jsDoc ? commentOwner.jsDoc : undefined;
|
|
142367
|
+
var lastJsDoc = ts.lastOrUndefined(commentOwnerJsDoc);
|
|
142368
|
+
if (commentOwner.getStart(sourceFile) < position
|
|
142369
|
+
|| lastJsDoc
|
|
142370
|
+
&& existingDocComment
|
|
142371
|
+
&& lastJsDoc !== existingDocComment) {
|
|
142368
142372
|
return undefined;
|
|
142369
142373
|
}
|
|
142370
142374
|
var indentationStr = getIndentationStringAtPosition(sourceFile, position);
|
|
@@ -142381,7 +142385,9 @@ var ts;
|
|
|
142381
142385
|
// * if the caret was directly in front of the object, then we add an extra line and indentation.
|
|
142382
142386
|
var openComment = "/**";
|
|
142383
142387
|
var closeComment = " */";
|
|
142384
|
-
|
|
142388
|
+
// If any of the existing jsDoc has tags, ignore adding new ones.
|
|
142389
|
+
var hasTag = (commentOwnerJsDoc || []).some(function (jsDoc) { return !!jsDoc.tags; });
|
|
142390
|
+
if (tags && !hasTag) {
|
|
142385
142391
|
var preamble = openComment + newLine + indentationStr + " * ";
|
|
142386
142392
|
var endLine = tokenStart === position ? newLine + indentationStr : "";
|
|
142387
142393
|
var result = preamble + newLine + tags + indentationStr + closeComment + endLine;
|
|
@@ -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.20220722";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -142363,8 +142363,12 @@ var ts;
|
|
|
142363
142363
|
return undefined;
|
|
142364
142364
|
}
|
|
142365
142365
|
var commentOwner = commentOwnerInfo.commentOwner, parameters = commentOwnerInfo.parameters, hasReturn = commentOwnerInfo.hasReturn;
|
|
142366
|
-
var
|
|
142367
|
-
|
|
142366
|
+
var commentOwnerJsDoc = ts.hasJSDocNodes(commentOwner) && commentOwner.jsDoc ? commentOwner.jsDoc : undefined;
|
|
142367
|
+
var lastJsDoc = ts.lastOrUndefined(commentOwnerJsDoc);
|
|
142368
|
+
if (commentOwner.getStart(sourceFile) < position
|
|
142369
|
+
|| lastJsDoc
|
|
142370
|
+
&& existingDocComment
|
|
142371
|
+
&& lastJsDoc !== existingDocComment) {
|
|
142368
142372
|
return undefined;
|
|
142369
142373
|
}
|
|
142370
142374
|
var indentationStr = getIndentationStringAtPosition(sourceFile, position);
|
|
@@ -142381,7 +142385,9 @@ var ts;
|
|
|
142381
142385
|
// * if the caret was directly in front of the object, then we add an extra line and indentation.
|
|
142382
142386
|
var openComment = "/**";
|
|
142383
142387
|
var closeComment = " */";
|
|
142384
|
-
|
|
142388
|
+
// If any of the existing jsDoc has tags, ignore adding new ones.
|
|
142389
|
+
var hasTag = (commentOwnerJsDoc || []).some(function (jsDoc) { return !!jsDoc.tags; });
|
|
142390
|
+
if (tags && !hasTag) {
|
|
142385
142391
|
var preamble = openComment + newLine + indentationStr + " * ";
|
|
142386
142392
|
var endLine = tokenStart === position ? newLine + indentationStr : "";
|
|
142387
142393
|
var result = preamble + newLine + tags + indentationStr + closeComment + endLine;
|
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.20220722";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
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.8.0-dev.
|
|
5
|
+
"version": "4.8.0-dev.20220722",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|