Socket
Socket
Sign inDemoInstall

typescript

Package Overview
Dependencies
Maintainers
8
Versions
3208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript - npm Package Compare versions

Comparing version 4.8.3 to 5.0.4

lib/lib.decorators.d.ts

108

lib/cancellationToken.js

@@ -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 {

@@ -51,2 +53,6 @@ [Symbol.iterator](): IterableIterator<CSSRule>;

interface CanvasPath {
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {

@@ -139,2 +145,12 @@ setLineDash(segments: Iterable<number>): void;

interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
}
interface MIDIOutput {
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
}
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
}
interface MediaKeyStatusMap {

@@ -280,4 +296,4 @@ [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;

multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
}

@@ -284,0 +300,0 @@

@@ -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 {

@@ -45,3 +43,3 @@ /**

// see: lib.es2015.iterable.d.ts
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;

@@ -57,3 +55,3 @@ /**

// see: lib.es2015.iterable.d.ts
// race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
// race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;

@@ -72,3 +70,2 @@ /**

resolve(): Promise<void>;
/**

@@ -79,5 +76,11 @@ * Creates a new resolved promise for the provided value.

*/
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
resolve<T>(value: T): Promise<Awaited<T>>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
}
declare var Promise: PromiseConstructor;

@@ -17,6 +17,4 @@ /*! *****************************************************************************

/// <reference no-default-lib="true"/>
interface ProxyHandler<T extends object> {

@@ -102,3 +100,3 @@ /**

* @param receiver The object to which the assignment was originally directed.
* @returns `A `Boolean` indicating whether or not the property was set.
* @returns A `Boolean` indicating whether or not the property was set.
*/

@@ -105,0 +103,0 @@ set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;

@@ -17,6 +17,4 @@ /*! *****************************************************************************

/// <reference no-default-lib="true"/>
declare namespace Reflect {

@@ -30,2 +28,7 @@ /**

*/
function apply<T, A extends readonly any[], R>(
target: (this: T, ...args: A) => R,
thisArgument: T,
argumentsList: Readonly<A>,
): R;
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;

@@ -40,2 +43,7 @@

*/
function construct<A extends readonly any[], R>(
target: new (...args: A) => R,
argumentsList: Readonly<A>,
newTarget?: new (...args: any) => any,
): R;
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;

@@ -67,3 +75,7 @@

*/
function get(target: object, propertyKey: PropertyKey, receiver?: any): any;
function get<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
receiver?: unknown,
): P extends keyof T ? T[P] : any;

@@ -76,3 +88,6 @@ /**

*/
function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;
function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;

@@ -119,2 +134,8 @@ /**

*/
function set<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
value: P extends keyof T ? T[P] : any,
receiver?: any,
): boolean;
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;

@@ -121,0 +142,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 {

@@ -245,5 +247,5 @@ /**

/**
* Replaces first match with string or all matches with RegExp.
* @param searchValue A string or RegExp search value.
* @param replaceValue A string containing the text to replace for match.
* Passes a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
* @param searchValue An object that supports searching for and replacing matches within a string.
* @param replaceValue The replacement text.
*/

@@ -250,0 +252,0 @@ replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;

@@ -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" />

@@ -27,1 +25,2 @@ /// <reference lib="es2019.array" />

/// <reference lib="es2019.symbol" />
/// <reference lib="es2019.intl" />

@@ -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"/>
/// <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" />

@@ -107,3 +105,3 @@ declare namespace Intl {

*/
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;

@@ -110,0 +108,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"/>
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"/>
/////////////////////////////

@@ -30,2 +28,10 @@ /// Worker Iterable APIs

interface CanvasPath {
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
setLineDash(segments: Iterable<number>): void;
}
interface DOMStringList {

@@ -108,4 +114,4 @@ [Symbol.iterator](): IterableIterator<string>;

multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
}

@@ -112,0 +118,0 @@

@@ -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.8.3",
"version": "5.0.4",
"license": "Apache-2.0",

@@ -30,85 +30,72 @@ "description": "TypeScript is a language for application scale JavaScript development",

"engines": {
"node": ">=4.2.0"
"node": ">=12.20"
},
"files": [
"bin",
"lib",
"!lib/enu",
"LICENSE.txt",
"README.md",
"SECURITY.md",
"ThirdPartyNoticeText.txt",
"!**/.gitattributes"
],
"devDependencies": {
"@esfx/canceltoken": "^1.0.0",
"@octokit/rest": "latest",
"@types/chai": "latest",
"@types/convert-source-map": "latest",
"@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/minimatch": "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/node-fetch": "^2.6.2",
"@types/q": "latest",
"@types/source-map-support": "latest",
"@types/xml2js": "^0.4.11",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"@typescript-eslint/utils": "^5.28.0",
"async": "latest",
"azure-devops-node-api": "^11.1.1",
"chai": "latest",
"@types/source-map-support": "^0.5.6",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"@typescript-eslint/utils": "^5.33.1",
"azure-devops-node-api": "^11.2.0",
"chai": "^4.3.7",
"chalk": "^4.1.2",
"convert-source-map": "latest",
"del": "6.1.1",
"chokidar": "^3.5.3",
"del": "^6.1.1",
"diff": "^5.1.0",
"eslint": "8.17.0",
"eslint-formatter-autolinkable-stylish": "1.2.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsdoc": "39.3.2",
"eslint-plugin-no-null": "1.0.2",
"fancy-log": "latest",
"esbuild": "^0.17.2",
"eslint": "^8.22.0",
"eslint-formatter-autolinkable-stylish": "^1.2.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-local": "^1.0.0",
"eslint-plugin-no-null": "^1.0.2",
"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": "^2.6.7",
"prex": "^0.4.7",
"q": "latest",
"source-map-support": "latest",
"typescript": "^4.5.5",
"vinyl": "latest",
"vinyl-sourcemaps-apply": "latest",
"xml2js": "^0.4.23"
"node-fetch": "^3.2.10",
"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": {
"prepare": "gulp build-eslint-rules",
"pretest": "gulp tests",
"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",
"lint:ci": "gulp lint --ci",
"lint:compiler": "gulp lint-compiler",
"lint:scripts": "gulp lint-scripts",
"setup-hooks": "node scripts/link-hooks.js"
"clean": "hereby clean",
"gulp": "hereby",
"lint": "hereby lint",
"setup-hooks": "node scripts/link-hooks.mjs"
},

@@ -125,7 +112,7 @@ "browser": {

},
"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)).

@@ -50,57 +48,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see

## Building
In order to build the TypeScript compiler, ensure that you have [Git](https://git-scm.com/downloads) and [Node.js](https://nodejs.org/) installed.
Clone a copy of the repo:
```bash
git clone https://github.com/microsoft/TypeScript.git
```
Change to the TypeScript directory:
```bash
cd TypeScript
```
Install [Gulp](https://gulpjs.com/) tools and dev dependencies:
```bash
npm install -g gulp
npm ci
```
Use one of the following to build and test:
```
gulp local # Build the compiler into built/local.
gulp clean # Delete the built compiler.
gulp LKG # Replace the last known good with the built one.
# Bootstrapping step to be executed when the built compiler reaches a stable state.
gulp tests # Build the test infrastructure using the built compiler.
gulp runtests # Run tests using the built compiler and test infrastructure.
# You can override the specific suite runner used or specify a test for this command.
# Use --tests=<testPath> for a specific test and/or --runner=<runnerName> for a specific suite.
# Valid runners include conformance, compiler, fourslash, project, user, and docker
# The user and docker runners are extended test suite runners - the user runner
# works on disk in the tests/cases/user directory, while the docker runner works in containers.
# You'll need to have the docker executable in your system path for the docker runner to work.
gulp runtests-parallel # Like runtests, but split across multiple threads. Uses a number of threads equal to the system
# core count by default. Use --workers=<number> to adjust this.
gulp baseline-accept # This replaces the baseline test results with the results obtained from gulp runtests.
gulp lint # Runs eslint on the TypeScript source.
gulp help # List the above commands.
```
## Usage
```bash
node built/local/tsc.js hello.ts
```
## Roadmap
For details on our planned features and future direction please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap).

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc