@typescript-deploys/pr-build 5.6.0-pr-59316-5 → 5.6.0-pr-59467-2
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 +9 -8
- package/lib/typescript.js +12 -12
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -21271,7 +21271,11 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
21271
21271
|
node.modifiers = asNodeArray(modifiers);
|
|
21272
21272
|
node.parameters = createNodeArray(parameters);
|
|
21273
21273
|
node.body = body;
|
|
21274
|
-
|
|
21274
|
+
if (!node.body) {
|
|
21275
|
+
node.transformFlags = 1 /* ContainsTypeScript */;
|
|
21276
|
+
} else {
|
|
21277
|
+
node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | 1024 /* ContainsES2015 */;
|
|
21278
|
+
}
|
|
21275
21279
|
node.typeParameters = void 0;
|
|
21276
21280
|
node.type = void 0;
|
|
21277
21281
|
node.typeArguments = void 0;
|
|
@@ -25405,7 +25409,7 @@ var asyncGeneratorHelper = {
|
|
|
25405
25409
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
25406
25410
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
25407
25411
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
25408
|
-
return i =
|
|
25412
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
25409
25413
|
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
25410
25414
|
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
25411
25415
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
@@ -25587,8 +25591,8 @@ var generatorHelper = {
|
|
|
25587
25591
|
priority: 6,
|
|
25588
25592
|
text: `
|
|
25589
25593
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
25590
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
25591
|
-
return g =
|
|
25594
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
25595
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25592
25596
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25593
25597
|
function step(op) {
|
|
25594
25598
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -91222,7 +91226,6 @@ function transformTypeScript(context) {
|
|
|
91222
91226
|
let currentNamespaceContainerName;
|
|
91223
91227
|
let currentLexicalScope;
|
|
91224
91228
|
let currentScopeFirstDeclarationsOfName;
|
|
91225
|
-
let currentClassHasParameterProperties;
|
|
91226
91229
|
let enabledSubstitutions;
|
|
91227
91230
|
let applicableSubstitutions;
|
|
91228
91231
|
return transformSourceFileOrBundle;
|
|
@@ -91250,14 +91253,12 @@ function transformTypeScript(context) {
|
|
|
91250
91253
|
function saveStateAndInvoke(node, f) {
|
|
91251
91254
|
const savedCurrentScope = currentLexicalScope;
|
|
91252
91255
|
const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName;
|
|
91253
|
-
const savedCurrentClassHasParameterProperties = currentClassHasParameterProperties;
|
|
91254
91256
|
onBeforeVisitNode(node);
|
|
91255
91257
|
const visited = f(node);
|
|
91256
91258
|
if (currentLexicalScope !== savedCurrentScope) {
|
|
91257
91259
|
currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName;
|
|
91258
91260
|
}
|
|
91259
91261
|
currentLexicalScope = savedCurrentScope;
|
|
91260
|
-
currentClassHasParameterProperties = savedCurrentClassHasParameterProperties;
|
|
91261
91262
|
return visited;
|
|
91262
91263
|
}
|
|
91263
91264
|
function onBeforeVisitNode(node) {
|
|
@@ -91890,7 +91891,7 @@ function transformTypeScript(context) {
|
|
|
91890
91891
|
}
|
|
91891
91892
|
function visitPropertyNameOfClassElement(member) {
|
|
91892
91893
|
const name = member.name;
|
|
91893
|
-
if (
|
|
91894
|
+
if (legacyDecorators && isComputedPropertyName(name) && hasDecorators(member)) {
|
|
91894
91895
|
const expression = visitNode(name.expression, visitor, isExpression);
|
|
91895
91896
|
Debug.assert(expression);
|
|
91896
91897
|
const innerExpression = skipPartiallyEmittedExpressions(expression);
|
package/lib/typescript.js
CHANGED
|
@@ -25386,7 +25386,11 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
25386
25386
|
node.modifiers = asNodeArray(modifiers);
|
|
25387
25387
|
node.parameters = createNodeArray(parameters);
|
|
25388
25388
|
node.body = body;
|
|
25389
|
-
|
|
25389
|
+
if (!node.body) {
|
|
25390
|
+
node.transformFlags = 1 /* ContainsTypeScript */;
|
|
25391
|
+
} else {
|
|
25392
|
+
node.transformFlags = propagateChildrenFlags(node.modifiers) | propagateChildrenFlags(node.parameters) | propagateChildFlags(node.body) & ~67108864 /* ContainsPossibleTopLevelAwait */ | 1024 /* ContainsES2015 */;
|
|
25393
|
+
}
|
|
25390
25394
|
node.typeParameters = void 0;
|
|
25391
25395
|
node.type = void 0;
|
|
25392
25396
|
node.typeArguments = void 0;
|
|
@@ -29555,7 +29559,7 @@ var asyncGeneratorHelper = {
|
|
|
29555
29559
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
29556
29560
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
29557
29561
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
29558
|
-
return i =
|
|
29562
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
29559
29563
|
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
29560
29564
|
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
29561
29565
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
@@ -29737,8 +29741,8 @@ var generatorHelper = {
|
|
|
29737
29741
|
priority: 6,
|
|
29738
29742
|
text: `
|
|
29739
29743
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
29740
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
29741
|
-
return g =
|
|
29744
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
29745
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29742
29746
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29743
29747
|
function step(op) {
|
|
29744
29748
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -96024,7 +96028,6 @@ function transformTypeScript(context) {
|
|
|
96024
96028
|
let currentNamespaceContainerName;
|
|
96025
96029
|
let currentLexicalScope;
|
|
96026
96030
|
let currentScopeFirstDeclarationsOfName;
|
|
96027
|
-
let currentClassHasParameterProperties;
|
|
96028
96031
|
let enabledSubstitutions;
|
|
96029
96032
|
let applicableSubstitutions;
|
|
96030
96033
|
return transformSourceFileOrBundle;
|
|
@@ -96052,14 +96055,12 @@ function transformTypeScript(context) {
|
|
|
96052
96055
|
function saveStateAndInvoke(node, f) {
|
|
96053
96056
|
const savedCurrentScope = currentLexicalScope;
|
|
96054
96057
|
const savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName;
|
|
96055
|
-
const savedCurrentClassHasParameterProperties = currentClassHasParameterProperties;
|
|
96056
96058
|
onBeforeVisitNode(node);
|
|
96057
96059
|
const visited = f(node);
|
|
96058
96060
|
if (currentLexicalScope !== savedCurrentScope) {
|
|
96059
96061
|
currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName;
|
|
96060
96062
|
}
|
|
96061
96063
|
currentLexicalScope = savedCurrentScope;
|
|
96062
|
-
currentClassHasParameterProperties = savedCurrentClassHasParameterProperties;
|
|
96063
96064
|
return visited;
|
|
96064
96065
|
}
|
|
96065
96066
|
function onBeforeVisitNode(node) {
|
|
@@ -96692,7 +96693,7 @@ function transformTypeScript(context) {
|
|
|
96692
96693
|
}
|
|
96693
96694
|
function visitPropertyNameOfClassElement(member) {
|
|
96694
96695
|
const name = member.name;
|
|
96695
|
-
if (
|
|
96696
|
+
if (legacyDecorators && isComputedPropertyName(name) && hasDecorators(member)) {
|
|
96696
96697
|
const expression = visitNode(name.expression, visitor, isExpression);
|
|
96697
96698
|
Debug.assert(expression);
|
|
96698
96699
|
const innerExpression = skipPartiallyEmittedExpressions(expression);
|
|
@@ -144166,7 +144167,7 @@ function updateImportsInOtherFiles(changes, program, host, oldFile, movedSymbols
|
|
|
144166
144167
|
deleteUnusedImports(sourceFile, importNode, changes, shouldMove);
|
|
144167
144168
|
const pathToTargetFileWithExtension = resolvePath(getDirectoryPath(getNormalizedAbsolutePath(oldFile.fileName, program.getCurrentDirectory())), targetFileName);
|
|
144168
144169
|
if (getStringComparer(!program.useCaseSensitiveFileNames())(pathToTargetFileWithExtension, sourceFile.fileName) === 0 /* EqualTo */) return;
|
|
144169
|
-
const newModuleSpecifier = getModuleSpecifier(program.getCompilerOptions(), sourceFile, sourceFile.fileName, pathToTargetFileWithExtension, createModuleSpecifierResolutionHost(program, host));
|
|
144170
|
+
const newModuleSpecifier = ts_moduleSpecifiers_exports.getModuleSpecifier(program.getCompilerOptions(), sourceFile, sourceFile.fileName, pathToTargetFileWithExtension, createModuleSpecifierResolutionHost(program, host));
|
|
144170
144171
|
const newImportDeclaration = filterImport(importNode, makeStringLiteral(newModuleSpecifier, quotePreference), shouldMove);
|
|
144171
144172
|
if (newImportDeclaration) changes.insertNodeAfter(sourceFile, statement, newImportDeclaration);
|
|
144172
144173
|
const ns = getNamespaceLikeImport(importNode);
|
|
@@ -166788,8 +166789,7 @@ function getJsDocTagAtPosition(node, position) {
|
|
|
166788
166789
|
}
|
|
166789
166790
|
function getPropertiesForObjectExpression(contextualType, completionsType, obj, checker) {
|
|
166790
166791
|
const hasCompletionsType = completionsType && completionsType !== contextualType;
|
|
166791
|
-
const
|
|
166792
|
-
const type = hasCompletionsType && !(completionsType.flags & 3 /* AnyOrUnknown */) ? checker.getUnionType([promiseFilteredContextualType, completionsType]) : promiseFilteredContextualType;
|
|
166792
|
+
const type = hasCompletionsType && !(completionsType.flags & 3 /* AnyOrUnknown */) ? checker.getUnionType([contextualType, completionsType]) : contextualType;
|
|
166793
166793
|
const properties = getApparentProperties(type, obj, checker);
|
|
166794
166794
|
return type.isClass() && containsNonPublicProperties(properties) ? [] : hasCompletionsType ? filter(properties, hasDeclarationOtherThanSelf) : properties;
|
|
166795
166795
|
function hasDeclarationOtherThanSelf(member) {
|
|
@@ -167660,7 +167660,7 @@ function getFilenameWithExtensionOption(name, program, extensionOptions, isExpor
|
|
|
167660
167660
|
if (extensionOptions.referenceKind === 0 /* Filename */) {
|
|
167661
167661
|
return { name, extension: tryGetExtensionFromPath2(name) };
|
|
167662
167662
|
}
|
|
167663
|
-
let allowedEndings = getModuleSpecifierPreferences(
|
|
167663
|
+
let allowedEndings = ts_moduleSpecifiers_exports.getModuleSpecifierPreferences(
|
|
167664
167664
|
{ importModuleSpecifierEnding: extensionOptions.endingPreference },
|
|
167665
167665
|
program,
|
|
167666
167666
|
program.getCompilerOptions(),
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.6.0-pr-
|
|
5
|
+
"version": "5.6.0-pr-59467-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|