typescript
Advanced tools
Comparing version 4.9.5 to 5.0.4
@@ -18,51 +18,75 @@ /*! ***************************************************************************** | ||
"use strict"; | ||
var fs = require("fs"); | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
// src/cancellationToken/cancellationToken.ts | ||
var fs = __toESM(require("fs")); | ||
function pipeExists(name) { | ||
return fs.existsSync(name); | ||
return fs.existsSync(name); | ||
} | ||
function createCancellationToken(args) { | ||
var cancellationPipeName; | ||
for (var i = 0; i < args.length - 1; i++) { | ||
if (args[i] === "--cancellationPipeName") { | ||
cancellationPipeName = args[i + 1]; | ||
break; | ||
} | ||
let cancellationPipeName; | ||
for (let i = 0; i < args.length - 1; i++) { | ||
if (args[i] === "--cancellationPipeName") { | ||
cancellationPipeName = args[i + 1]; | ||
break; | ||
} | ||
if (!cancellationPipeName) { | ||
return { | ||
isCancellationRequested: function () { return false; }, | ||
setRequest: function (_requestId) { return void 0; }, | ||
resetRequest: function (_requestId) { return void 0; } | ||
}; | ||
} | ||
if (!cancellationPipeName) { | ||
return { | ||
isCancellationRequested: () => false, | ||
setRequest: (_requestId) => void 0, | ||
resetRequest: (_requestId) => void 0 | ||
}; | ||
} | ||
if (cancellationPipeName.charAt(cancellationPipeName.length - 1) === "*") { | ||
const namePrefix = cancellationPipeName.slice(0, -1); | ||
if (namePrefix.length === 0 || namePrefix.indexOf("*") >= 0) { | ||
throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'."); | ||
} | ||
if (cancellationPipeName.charAt(cancellationPipeName.length - 1) === "*") { | ||
var namePrefix_1 = cancellationPipeName.slice(0, -1); | ||
if (namePrefix_1.length === 0 || namePrefix_1.indexOf("*") >= 0) { | ||
throw new Error("Invalid name for template cancellation pipe: it should have length greater than 2 characters and contain only one '*'."); | ||
let perRequestPipeName; | ||
let currentRequestId; | ||
return { | ||
isCancellationRequested: () => perRequestPipeName !== void 0 && pipeExists(perRequestPipeName), | ||
setRequest(requestId) { | ||
currentRequestId = requestId; | ||
perRequestPipeName = namePrefix + requestId; | ||
}, | ||
resetRequest(requestId) { | ||
if (currentRequestId !== requestId) { | ||
throw new Error(`Mismatched request id, expected ${currentRequestId}, actual ${requestId}`); | ||
} | ||
var perRequestPipeName_1; | ||
var currentRequestId_1; | ||
return { | ||
isCancellationRequested: function () { return perRequestPipeName_1 !== undefined && pipeExists(perRequestPipeName_1); }, | ||
setRequest: function (requestId) { | ||
currentRequestId_1 = requestId; | ||
perRequestPipeName_1 = namePrefix_1 + requestId; | ||
}, | ||
resetRequest: function (requestId) { | ||
if (currentRequestId_1 !== requestId) { | ||
throw new Error("Mismatched request id, expected ".concat(currentRequestId_1, ", actual ").concat(requestId)); | ||
} | ||
perRequestPipeName_1 = undefined; | ||
} | ||
}; | ||
} | ||
else { | ||
return { | ||
isCancellationRequested: function () { return pipeExists(cancellationPipeName); }, | ||
setRequest: function (_requestId) { return void 0; }, | ||
resetRequest: function (_requestId) { return void 0; } | ||
}; | ||
} | ||
perRequestPipeName = void 0; | ||
} | ||
}; | ||
} else { | ||
return { | ||
isCancellationRequested: () => pipeExists(cancellationPipeName), | ||
// TODO: GH#18217 | ||
setRequest: (_requestId) => void 0, | ||
resetRequest: (_requestId) => void 0 | ||
}; | ||
} | ||
} | ||
module.exports = createCancellationToken; | ||
//# sourceMappingURL=cancellationToken.js.map | ||
//# sourceMappingURL=cancellationToken.js.map |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es5" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
///////////////////////////// | ||
@@ -38,2 +36,6 @@ /// Window Iterable APIs | ||
interface CSSKeyframesRule { | ||
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>; | ||
} | ||
interface CSSRuleList { | ||
@@ -142,2 +144,12 @@ [Symbol.iterator](): IterableIterator<CSSRule>; | ||
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> { | ||
} | ||
interface MIDIOutput { | ||
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void; | ||
} | ||
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> { | ||
} | ||
interface MediaKeyStatusMap { | ||
@@ -144,0 +156,0 @@ [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Map<K, V> { | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Array<T> { | ||
@@ -32,3 +30,3 @@ /** | ||
*/ | ||
find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined; | ||
find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined; | ||
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined; | ||
@@ -354,3 +352,3 @@ | ||
*/ | ||
find<S extends T>(predicate: (this: void, value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined; | ||
find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined; | ||
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined; | ||
@@ -357,0 +355,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es5" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2015.core" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.iterable" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.symbol" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface PromiseConstructor { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface ProxyHandler<T extends object> { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Reflect { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface SymbolConstructor { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.symbol" /> | ||
@@ -80,3 +78,3 @@ | ||
/** | ||
* An Object whose own property names are property names that are excluded from the 'with' | ||
* An Object whose truthy properties are properties that are excluded from the 'with' | ||
* environment bindings of the associated objects. | ||
@@ -98,16 +96,20 @@ */ | ||
/** | ||
* Returns an object whose properties have the value 'true' | ||
* Is an object whose properties have the value 'true' | ||
* when they will be absent when used in a 'with' statement. | ||
*/ | ||
[Symbol.unscopables](): { | ||
copyWithin: boolean; | ||
entries: boolean; | ||
fill: boolean; | ||
find: boolean; | ||
findIndex: boolean; | ||
keys: boolean; | ||
values: boolean; | ||
readonly [Symbol.unscopables]: { | ||
[K in keyof any[]]?: boolean; | ||
}; | ||
} | ||
interface ReadonlyArray<T> { | ||
/** | ||
* Is an object whose properties have the value 'true' | ||
* when they will be absent when used in a 'with' statement. | ||
*/ | ||
readonly [Symbol.unscopables]: { | ||
[K in keyof readonly any[]]?: boolean; | ||
}; | ||
} | ||
interface Date { | ||
@@ -114,0 +116,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Array<T> { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,7 +17,5 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015" /> | ||
/// <reference lib="es2016.array.include" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2016" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2016" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2017.object" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2017" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface ObjectConstructor { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.symbol" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2015.symbol.wellknown" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface String { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Int8ArrayConstructor { | ||
@@ -23,0 +21,0 @@ new (): Int8Array; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2018.asynciterable" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.symbol" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2015.iterable" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2017" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2018.asynciterable" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2018" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/** | ||
@@ -23,0 +21,0 @@ * Represents the completion of an asynchronous operation |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface RegExpMatchArray { | ||
@@ -23,0 +21,0 @@ groups?: { |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
type FlatArray<Arr, Depth extends number> = { | ||
@@ -23,0 +21,0 @@ "done": Arr, |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2018" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2019.array" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2019" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
@@ -23,0 +21,0 @@ interface DateTimeFormatPartTypesRegistry { |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.iterable" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface String { | ||
@@ -23,0 +21,0 @@ /** Removes the trailing white space and line terminator characters from a string. */ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Symbol { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2020.intl" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2019" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2020.bigint" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2020.intl" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2020" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2018.intl" /> | ||
@@ -23,0 +21,0 @@ declare namespace Intl { |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2020.intl" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface PromiseFulfilledResult<T> { | ||
@@ -23,0 +21,0 @@ status: "fulfilled"; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Atomics { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.iterable" /> | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015.iterable" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2015.symbol" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2020" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="es2021.promise" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2021" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
@@ -89,2 +87,8 @@ | ||
interface ResolvedListFormatOptions { | ||
locale: string; | ||
style: ListFormatStyle; | ||
type: ListFormatType; | ||
} | ||
interface ListFormat { | ||
@@ -116,2 +120,11 @@ /** | ||
formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[]; | ||
/** | ||
* Returns a new object with properties reflecting the locale and style | ||
* formatting options computed during the construction of the current | ||
* `Intl.ListFormat` object. | ||
* | ||
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions). | ||
*/ | ||
resolvedOptions(): ResolvedListFormatOptions; | ||
} | ||
@@ -118,0 +131,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface AggregateError extends Error { | ||
@@ -23,0 +21,0 @@ errors: any[] |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface String { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface WeakRef<T extends object> { | ||
@@ -23,0 +21,0 @@ readonly [Symbol.toStringTag]: "WeakRef"; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Array<T> { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2021" /> | ||
@@ -29,1 +27,2 @@ /// <reference lib="es2022.array" /> | ||
/// <reference lib="es2022.string" /> | ||
/// <reference lib="es2022.regexp" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface ErrorOptions { | ||
@@ -23,0 +21,0 @@ cause?: unknown; |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2022" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
@@ -23,0 +21,0 @@ |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface ObjectConstructor { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface Atomics { | ||
@@ -26,4 +24,18 @@ /** | ||
* Waits asynchronously on a shared memory location and returns a Promise | ||
* @param typedArray A shared Int32Array or BigInt64Array. | ||
* @param index The position in the typedArray to wait on. | ||
* @param value The expected value to test. | ||
* @param [timeout] The expected value to test. | ||
*/ | ||
waitAsync(typedArray: BigInt64Array | Int32Array, index: number, value: bigint, timeout?: number): { async: false, value: "ok" | "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "not-equal" | "timed-out"> }; | ||
waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> }; | ||
/** | ||
* A non-blocking, asynchronous version of wait which is usable on the main thread. | ||
* Waits asynchronously on a shared memory location and returns a Promise | ||
* @param typedArray A shared Int32Array or BigInt64Array. | ||
* @param index The position in the typedArray to wait on. | ||
* @param value The expected value to test. | ||
* @param [timeout] The expected value to test. | ||
*/ | ||
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> }; | ||
} |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
interface String { | ||
@@ -23,0 +21,0 @@ /** |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2015" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,7 +17,5 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="es2022" /> | ||
/// <reference lib="es2023" /> | ||
/// <reference lib="esnext.intl" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
/// <reference lib="esnext" /> | ||
@@ -23,0 +21,0 @@ /// <reference lib="dom" /> |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
declare namespace Intl { | ||
@@ -23,0 +21,0 @@ interface NumberRangeFormatPart extends NumberFormatPart { |
@@ -17,3 +17,2 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
@@ -23,3 +22,2 @@ | ||
///////////////////////////// | ||
@@ -26,0 +24,0 @@ /// Windows Script Host APIS |
@@ -17,7 +17,5 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
///////////////////////////// | ||
@@ -24,0 +22,0 @@ /// WorkerGlobalScope APIs |
@@ -17,6 +17,4 @@ /*! ***************************************************************************** | ||
/// <reference no-default-lib="true"/> | ||
///////////////////////////// | ||
@@ -23,0 +21,0 @@ /// Worker Iterable APIs |
@@ -5,2 +5,2 @@ # Read This! | ||
If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory. | ||
Running `gulp LKG` will then appropriately update the files in this directory. | ||
Running `hereby LKG` will then appropriately update the files in this directory. |
@@ -18,13 +18,37 @@ /*! ***************************************************************************** | ||
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
// src/watchGuard/watchGuard.ts | ||
var fs = __toESM(require("fs")); | ||
if (process.argv.length < 3) { | ||
process.exit(1); | ||
process.exit(1); | ||
} | ||
var directoryName = process.argv[2]; | ||
var fs = require("fs"); | ||
try { | ||
var watcher = fs.watch(directoryName, { recursive: true }, function () { return ({}); }); | ||
watcher.close(); | ||
const watcher = fs.watch(directoryName, { recursive: true }, () => ({})); | ||
watcher.close(); | ||
} catch (e) { | ||
} | ||
catch (_a) { } | ||
process.exit(0); | ||
//# sourceMappingURL=watchGuard.js.map | ||
//# sourceMappingURL=watchGuard.js.map |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://www.typescriptlang.org/", | ||
"version": "4.9.5", | ||
"version": "5.0.4", | ||
"license": "Apache-2.0", | ||
@@ -30,3 +30,3 @@ "description": "TypeScript is a language for application scale JavaScript development", | ||
"engines": { | ||
"node": ">=4.2.0" | ||
"node": ">=12.20" | ||
}, | ||
@@ -44,22 +44,14 @@ "files": [ | ||
"devDependencies": { | ||
"@esfx/canceltoken": "^1.0.0", | ||
"@octokit/rest": "latest", | ||
"@types/chai": "latest", | ||
"@types/fancy-log": "^2.0.0", | ||
"@types/chai": "^4.3.4", | ||
"@types/fs-extra": "^9.0.13", | ||
"@types/glob": "latest", | ||
"@types/gulp": "^4.0.9", | ||
"@types/gulp-concat": "latest", | ||
"@types/gulp-newer": "latest", | ||
"@types/gulp-rename": "latest", | ||
"@types/gulp-sourcemaps": "latest", | ||
"@types/merge2": "latest", | ||
"@types/microsoft__typescript-etw": "latest", | ||
"@types/minimist": "latest", | ||
"@types/mkdirp": "latest", | ||
"@types/mocha": "latest", | ||
"@types/ms": "latest", | ||
"@types/glob": "^8.1.0", | ||
"@types/microsoft__typescript-etw": "^0.1.1", | ||
"@types/minimist": "^1.2.2", | ||
"@types/mocha": "^10.0.1", | ||
"@types/ms": "^0.7.31", | ||
"@types/node": "latest", | ||
"@types/source-map-support": "latest", | ||
"@types/source-map-support": "^0.5.6", | ||
"@types/which": "^2.0.1", | ||
"@types/xml2js": "^0.4.11", | ||
"@typescript-eslint/eslint-plugin": "^5.33.1", | ||
@@ -69,47 +61,42 @@ "@typescript-eslint/parser": "^5.33.1", | ||
"azure-devops-node-api": "^11.2.0", | ||
"chai": "latest", | ||
"chai": "^4.3.7", | ||
"chalk": "^4.1.2", | ||
"chokidar": "^3.5.3", | ||
"del": "^6.1.1", | ||
"diff": "^5.1.0", | ||
"esbuild": "^0.17.2", | ||
"eslint": "^8.22.0", | ||
"eslint-formatter-autolinkable-stylish": "^1.2.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsdoc": "^39.3.6", | ||
"eslint-plugin-local": "^1.0.0", | ||
"eslint-plugin-no-null": "^1.0.2", | ||
"fancy-log": "latest", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"fast-xml-parser": "^4.0.11", | ||
"fs-extra": "^9.1.0", | ||
"glob": "latest", | ||
"gulp": "^4.0.2", | ||
"gulp-concat": "latest", | ||
"gulp-insert": "latest", | ||
"gulp-newer": "latest", | ||
"gulp-rename": "latest", | ||
"gulp-sourcemaps": "latest", | ||
"merge2": "latest", | ||
"minimist": "latest", | ||
"mkdirp": "latest", | ||
"mocha": "latest", | ||
"mocha-fivemat-progress-reporter": "latest", | ||
"glob": "^8.1.0", | ||
"hereby": "^1.6.4", | ||
"jsonc-parser": "^3.2.0", | ||
"minimist": "^1.2.8", | ||
"mocha": "^10.2.0", | ||
"mocha-fivemat-progress-reporter": "^0.1.0", | ||
"ms": "^2.1.3", | ||
"node-fetch": "^3.2.10", | ||
"source-map-support": "latest", | ||
"typescript": "^4.8.4", | ||
"vinyl": "latest", | ||
"which": "^2.0.2", | ||
"xml2js": "^0.4.23" | ||
"source-map-support": "^0.5.21", | ||
"typescript": "5.0.0-dev.20230112", | ||
"which": "^2.0.2" | ||
}, | ||
"overrides": { | ||
"es5-ext": "0.10.53" | ||
"typescript@*": "$typescript" | ||
}, | ||
"scripts": { | ||
"test": "gulp runtests-parallel --light=false", | ||
"test:eslint-rules": "gulp run-eslint-rules-tests", | ||
"test": "hereby runtests-parallel --light=false", | ||
"test:eslint-rules": "hereby run-eslint-rules-tests", | ||
"build": "npm run build:compiler && npm run build:tests", | ||
"build:compiler": "gulp local", | ||
"build:tests": "gulp tests", | ||
"build:compiler": "hereby local", | ||
"build:tests": "hereby tests", | ||
"build:tests:notypecheck": "hereby tests --no-typecheck", | ||
"start": "node lib/tsc", | ||
"clean": "gulp clean", | ||
"gulp": "gulp", | ||
"lint": "gulp lint", | ||
"clean": "hereby clean", | ||
"gulp": "hereby", | ||
"lint": "hereby lint", | ||
"setup-hooks": "node scripts/link-hooks.mjs" | ||
@@ -127,7 +114,7 @@ }, | ||
}, | ||
"packageManager": "npm@8.15.0", | ||
"packageManager": "npm@8.19.3", | ||
"volta": { | ||
"node": "14.20.0", | ||
"npm": "8.15.0" | ||
"node": "14.21.1", | ||
"npm": "8.19.3" | ||
} | ||
} | ||
} |
@@ -36,4 +36,2 @@ | ||
* [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md). | ||
* Read the archived language specification ([docx](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.docx?raw=true), | ||
[pdf](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.pdf?raw=true), [md](https://github.com/microsoft/TypeScript/blob/main/doc/spec-ARCHIVED.md)). | ||
@@ -40,0 +38,0 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41
118469
39203145
107
50
4