@typescript-deploys/pr-build 5.1.0-pr-53134-21 → 5.1.0-pr-53192-9
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/ThirdPartyNoticeText.txt +13 -13
- package/lib/lib.dom.d.ts +743 -16
- package/lib/lib.dom.iterable.d.ts +28 -0
- package/lib/lib.es5.d.ts +0 -6
- package/lib/lib.webworker.d.ts +577 -4
- package/lib/lib.webworker.iterable.d.ts +28 -0
- package/lib/tsc.js +32 -32
- package/lib/tsserver.js +36 -39
- package/lib/tsserverlibrary.d.ts +0 -1
- package/lib/tsserverlibrary.js +34 -35
- package/lib/typescript.d.ts +0 -1
- package/lib/typescript.js +34 -34
- package/lib/typingsInstaller.js +3 -19
- package/package.json +3 -3
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230310`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -4472,7 +4472,7 @@ ${lanes.join("\n")}
|
|
|
4472
4472
|
TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard";
|
|
4473
4473
|
TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject";
|
|
4474
4474
|
TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable";
|
|
4475
|
-
TypeFlags2[TypeFlags2["NotPrimitiveUnion"] =
|
|
4475
|
+
TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion";
|
|
4476
4476
|
return TypeFlags2;
|
|
4477
4477
|
})(TypeFlags || {});
|
|
4478
4478
|
ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => {
|
|
@@ -6098,20 +6098,6 @@ ${lanes.join("\n")}
|
|
|
6098
6098
|
(path2) => sys2.directoryExists(path2)
|
|
6099
6099
|
);
|
|
6100
6100
|
}
|
|
6101
|
-
function getNodeMajorVersion() {
|
|
6102
|
-
if (typeof process === "undefined") {
|
|
6103
|
-
return void 0;
|
|
6104
|
-
}
|
|
6105
|
-
const version2 = process.version;
|
|
6106
|
-
if (!version2) {
|
|
6107
|
-
return void 0;
|
|
6108
|
-
}
|
|
6109
|
-
const dot = version2.indexOf(".");
|
|
6110
|
-
if (dot === -1) {
|
|
6111
|
-
return void 0;
|
|
6112
|
-
}
|
|
6113
|
-
return parseInt(version2.substring(1, dot));
|
|
6114
|
-
}
|
|
6115
6101
|
function setSys(s) {
|
|
6116
6102
|
sys = s;
|
|
6117
6103
|
}
|
|
@@ -6159,14 +6145,12 @@ ${lanes.join("\n")}
|
|
|
6159
6145
|
let activeSession;
|
|
6160
6146
|
let profilePath = "./profile.cpuprofile";
|
|
6161
6147
|
const Buffer2 = require("buffer").Buffer;
|
|
6162
|
-
const nodeVersion = getNodeMajorVersion();
|
|
6163
|
-
const isNode4OrLater = nodeVersion >= 4;
|
|
6164
6148
|
const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
|
|
6165
6149
|
const platform = _os.platform();
|
|
6166
6150
|
const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
|
|
6167
6151
|
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
|
6168
6152
|
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
|
6169
|
-
const fsSupportsRecursiveFsWatch =
|
|
6153
|
+
const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
|
|
6170
6154
|
const getCurrentDirectory = memoize(() => process.cwd());
|
|
6171
6155
|
const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
|
|
6172
6156
|
pollingWatchFileWorker: fsWatchFileWorker,
|
|
@@ -55080,10 +55064,9 @@ ${lanes.join("\n")}
|
|
|
55080
55064
|
return [sig.parameters];
|
|
55081
55065
|
function expandSignatureParametersWithTupleMembers(restType, restIndex) {
|
|
55082
55066
|
const elementTypes = getTypeArguments(restType);
|
|
55083
|
-
const associatedNames = restType
|
|
55067
|
+
const associatedNames = getUniqAssociatedNamesFromTupleType(restType);
|
|
55084
55068
|
const restParams = map(elementTypes, (t, i) => {
|
|
55085
|
-
const
|
|
55086
|
-
const name = tupleLabelName || getParameterNameAtPosition(sig, restIndex + i, restType);
|
|
55069
|
+
const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType);
|
|
55087
55070
|
const flags = restType.target.elementFlags[i];
|
|
55088
55071
|
const checkFlags = flags & 12 /* Variable */ ? 32768 /* RestParameter */ : flags & 2 /* Optional */ ? 16384 /* OptionalParameter */ : 0;
|
|
55089
55072
|
const symbol = createSymbol(1 /* FunctionScopedVariable */, name, checkFlags);
|
|
@@ -55092,6 +55075,20 @@ ${lanes.join("\n")}
|
|
|
55092
55075
|
});
|
|
55093
55076
|
return concatenate(sig.parameters.slice(0, restIndex), restParams);
|
|
55094
55077
|
}
|
|
55078
|
+
function getUniqAssociatedNamesFromTupleType(type) {
|
|
55079
|
+
const associatedNamesMap = /* @__PURE__ */ new Map();
|
|
55080
|
+
return map(type.target.labeledElementDeclarations, (labeledElement) => {
|
|
55081
|
+
const name = getTupleElementLabel(labeledElement);
|
|
55082
|
+
const prevCounter = associatedNamesMap.get(name);
|
|
55083
|
+
if (prevCounter === void 0) {
|
|
55084
|
+
associatedNamesMap.set(name, 1);
|
|
55085
|
+
return name;
|
|
55086
|
+
} else {
|
|
55087
|
+
associatedNamesMap.set(name, prevCounter + 1);
|
|
55088
|
+
return `${name}_${prevCounter}`;
|
|
55089
|
+
}
|
|
55090
|
+
});
|
|
55091
|
+
}
|
|
55095
55092
|
}
|
|
55096
55093
|
function getDefaultConstructSignatures(classType) {
|
|
55097
55094
|
const baseConstructorType = getBaseConstructorTypeOfClass(classType);
|
|
@@ -57789,7 +57786,7 @@ ${lanes.join("\n")}
|
|
|
57789
57786
|
}
|
|
57790
57787
|
function getGlobalOmitSymbol() {
|
|
57791
57788
|
deferredGlobalOmitSymbol || (deferredGlobalOmitSymbol = getGlobalTypeAliasSymbol(
|
|
57792
|
-
"
|
|
57789
|
+
"Omit",
|
|
57793
57790
|
/*arity*/
|
|
57794
57791
|
2,
|
|
57795
57792
|
/*reportErrors*/
|
|
@@ -58399,7 +58396,7 @@ ${lanes.join("\n")}
|
|
|
58399
58396
|
origin = createOriginUnionOrIntersectionType(1048576 /* Union */, reducedTypes);
|
|
58400
58397
|
}
|
|
58401
58398
|
}
|
|
58402
|
-
const objectFlags = (includes &
|
|
58399
|
+
const objectFlags = (includes & 36323331 /* NotPrimitiveUnion */ ? 0 : 32768 /* PrimitiveUnion */) | (includes & 2097152 /* Intersection */ ? 16777216 /* ContainsIntersections */ : 0);
|
|
58403
58400
|
return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);
|
|
58404
58401
|
}
|
|
58405
58402
|
function getUnionOrIntersectionTypePredicate(signatures, kind) {
|
|
@@ -58524,7 +58521,7 @@ ${lanes.join("\n")}
|
|
|
58524
58521
|
function eachUnionContains(unionTypes2, type) {
|
|
58525
58522
|
for (const u of unionTypes2) {
|
|
58526
58523
|
if (!containsType(u.types, type)) {
|
|
58527
|
-
const primitive = type.flags & 128 /* StringLiteral */ ? stringType : type.flags & 256 /* NumberLiteral */ ? numberType : type.flags & 2048 /* BigIntLiteral */ ? bigintType : type.flags & 8192 /* UniqueESSymbol */ ? esSymbolType : void 0;
|
|
58524
|
+
const primitive = type.flags & 128 /* StringLiteral */ ? stringType : type.flags & (32 /* Enum */ | 256 /* NumberLiteral */) ? numberType : type.flags & 2048 /* BigIntLiteral */ ? bigintType : type.flags & 8192 /* UniqueESSymbol */ ? esSymbolType : void 0;
|
|
58528
58525
|
if (!primitive || !containsType(u.types, primitive)) {
|
|
58529
58526
|
return false;
|
|
58530
58527
|
}
|
|
@@ -58551,9 +58548,6 @@ ${lanes.join("\n")}
|
|
|
58551
58548
|
}
|
|
58552
58549
|
return false;
|
|
58553
58550
|
}
|
|
58554
|
-
function eachIsUnionContaining(types, flag) {
|
|
58555
|
-
return every(types, (t) => !!(t.flags & 1048576 /* Union */) && some(t.types, (tt) => !!(tt.flags & flag)));
|
|
58556
|
-
}
|
|
58557
58551
|
function removeFromEach(types, flag) {
|
|
58558
58552
|
for (let i = 0; i < types.length; i++) {
|
|
58559
58553
|
types[i] = filterType(types[i], (t) => !(t.flags & flag));
|
|
@@ -58642,11 +58636,11 @@ ${lanes.join("\n")}
|
|
|
58642
58636
|
if (includes & 1048576 /* Union */) {
|
|
58643
58637
|
if (intersectUnionsOfPrimitiveTypes(typeSet)) {
|
|
58644
58638
|
result = getIntersectionType(typeSet, aliasSymbol, aliasTypeArguments);
|
|
58645
|
-
} else if (
|
|
58639
|
+
} else if (every(typeSet, (t) => !!(t.flags & 1048576 /* Union */ && t.types[0].flags & 32768 /* Undefined */))) {
|
|
58646
58640
|
const containedUndefinedType = some(typeSet, containsMissingType) ? missingType : undefinedType;
|
|
58647
58641
|
removeFromEach(typeSet, 32768 /* Undefined */);
|
|
58648
58642
|
result = getUnionType([getIntersectionType(typeSet), containedUndefinedType], 1 /* Literal */, aliasSymbol, aliasTypeArguments);
|
|
58649
|
-
} else if (
|
|
58643
|
+
} else if (every(typeSet, (t) => !!(t.flags & 1048576 /* Union */ && (t.types[0].flags & 65536 /* Null */ || t.types[1].flags & 65536 /* Null */)))) {
|
|
58650
58644
|
removeFromEach(typeSet, 65536 /* Null */);
|
|
58651
58645
|
result = getUnionType([getIntersectionType(typeSet), nullType], 1 /* Literal */, aliasSymbol, aliasTypeArguments);
|
|
58652
58646
|
} else {
|
|
@@ -62186,6 +62180,11 @@ ${lanes.join("\n")}
|
|
|
62186
62180
|
if (containsType(targetTypes, source2)) {
|
|
62187
62181
|
return -1 /* True */;
|
|
62188
62182
|
}
|
|
62183
|
+
if (getObjectFlags(target2) & 32768 /* PrimitiveUnion */ && !(source2.flags & 1024 /* EnumLiteral */) && (source2.flags & (128 /* StringLiteral */ | 512 /* BooleanLiteral */ | 2048 /* BigIntLiteral */) || (relation === subtypeRelation || relation === strictSubtypeRelation) && source2.flags & 256 /* NumberLiteral */)) {
|
|
62184
|
+
const alternateForm = source2 === source2.regularType ? source2.freshType : source2.regularType;
|
|
62185
|
+
const primitive = source2.flags & 128 /* StringLiteral */ ? stringType : source2.flags & 256 /* NumberLiteral */ ? numberType : source2.flags & 2048 /* BigIntLiteral */ ? bigintType : void 0;
|
|
62186
|
+
return primitive && containsType(targetTypes, primitive) || alternateForm && containsType(targetTypes, alternateForm) ? -1 /* True */ : 0 /* False */;
|
|
62187
|
+
}
|
|
62189
62188
|
const match = getMatchingUnionConstituentForType(target2, source2);
|
|
62190
62189
|
if (match) {
|
|
62191
62190
|
const related = isRelatedTo(
|
|
@@ -69671,13 +69670,14 @@ ${lanes.join("\n")}
|
|
|
69671
69670
|
const elementFlags = [];
|
|
69672
69671
|
pushCachedContextualType(node);
|
|
69673
69672
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
69674
|
-
const
|
|
69673
|
+
const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent);
|
|
69674
|
+
const inConstContext = isSpreadIntoCallOrNew || isConstContext(node);
|
|
69675
69675
|
const contextualType = getApparentTypeOfContextualType(
|
|
69676
69676
|
node,
|
|
69677
69677
|
/*contextFlags*/
|
|
69678
69678
|
void 0
|
|
69679
69679
|
);
|
|
69680
|
-
const inTupleContext = !!contextualType && someType(contextualType, isTupleLikeType);
|
|
69680
|
+
const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType);
|
|
69681
69681
|
let hasOmittedExpression = false;
|
|
69682
69682
|
for (let i = 0; i < elementCount; i++) {
|
|
69683
69683
|
const e = elements[i];
|
|
@@ -142589,9 +142589,10 @@ ${lanes.join("\n")}
|
|
|
142589
142589
|
if (!isMemberName(token))
|
|
142590
142590
|
return void 0;
|
|
142591
142591
|
if (isIdentifier(token) && hasInitializer(parent2) && parent2.initializer && isObjectLiteralExpression(parent2.initializer)) {
|
|
142592
|
+
const targetType = checker.getContextualType(token) || checker.getTypeAtLocation(token);
|
|
142592
142593
|
const properties = arrayFrom(checker.getUnmatchedProperties(
|
|
142593
142594
|
checker.getTypeAtLocation(parent2.initializer),
|
|
142594
|
-
|
|
142595
|
+
targetType,
|
|
142595
142596
|
/* requireOptionalProperties */
|
|
142596
142597
|
false,
|
|
142597
142598
|
/* matchDiscriminantProperties */
|
|
@@ -168643,7 +168644,6 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
168643
168644
|
getNodeForGeneratedName: () => getNodeForGeneratedName,
|
|
168644
168645
|
getNodeId: () => getNodeId,
|
|
168645
168646
|
getNodeKind: () => getNodeKind,
|
|
168646
|
-
getNodeMajorVersion: () => getNodeMajorVersion,
|
|
168647
168647
|
getNodeModifiers: () => getNodeModifiers,
|
|
168648
168648
|
getNodeModulePathParts: () => getNodeModulePathParts,
|
|
168649
168649
|
getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.1";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230310`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -3149,7 +3149,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
|
|
|
3149
3149
|
TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard";
|
|
3150
3150
|
TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject";
|
|
3151
3151
|
TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable";
|
|
3152
|
-
TypeFlags2[TypeFlags2["NotPrimitiveUnion"] =
|
|
3152
|
+
TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion";
|
|
3153
3153
|
return TypeFlags2;
|
|
3154
3154
|
})(TypeFlags || {});
|
|
3155
3155
|
var ObjectFlags = /* @__PURE__ */ ((ObjectFlags3) => {
|
|
@@ -4264,20 +4264,6 @@ function patchWriteFileEnsuringDirectory(sys2) {
|
|
|
4264
4264
|
(path3) => sys2.directoryExists(path3)
|
|
4265
4265
|
);
|
|
4266
4266
|
}
|
|
4267
|
-
function getNodeMajorVersion() {
|
|
4268
|
-
if (typeof process === "undefined") {
|
|
4269
|
-
return void 0;
|
|
4270
|
-
}
|
|
4271
|
-
const version2 = process.version;
|
|
4272
|
-
if (!version2) {
|
|
4273
|
-
return void 0;
|
|
4274
|
-
}
|
|
4275
|
-
const dot = version2.indexOf(".");
|
|
4276
|
-
if (dot === -1) {
|
|
4277
|
-
return void 0;
|
|
4278
|
-
}
|
|
4279
|
-
return parseInt(version2.substring(1, dot));
|
|
4280
|
-
}
|
|
4281
4267
|
var sys = (() => {
|
|
4282
4268
|
const byteOrderMarkIndicator = "\uFEFF";
|
|
4283
4269
|
function getNodeSystem() {
|
|
@@ -4294,14 +4280,12 @@ var sys = (() => {
|
|
|
4294
4280
|
let activeSession;
|
|
4295
4281
|
let profilePath = "./profile.cpuprofile";
|
|
4296
4282
|
const Buffer2 = require("buffer").Buffer;
|
|
4297
|
-
const nodeVersion = getNodeMajorVersion();
|
|
4298
|
-
const isNode4OrLater = nodeVersion >= 4;
|
|
4299
4283
|
const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
|
|
4300
4284
|
const platform = _os.platform();
|
|
4301
4285
|
const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
|
|
4302
4286
|
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
|
4303
4287
|
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
|
4304
|
-
const fsSupportsRecursiveFsWatch =
|
|
4288
|
+
const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
|
|
4305
4289
|
const getCurrentDirectory = memoize(() => process.cwd());
|
|
4306
4290
|
const { watchFile, watchDirectory } = createSystemWatchFunctions({
|
|
4307
4291
|
pollingWatchFileWorker: fsWatchFileWorker,
|
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.1.0-pr-
|
|
5
|
+
"version": "5.1.0-pr-53192-9",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"tsserver": "./bin/tsserver"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=
|
|
29
|
+
"node": ">=12.20"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"bin",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "14.21.1",
|
|
114
114
|
"npm": "8.19.3"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "0aeae60830e61c442b1d57d6e20a04a92fa1bf60"
|
|
117
117
|
}
|