@rushstack/node-core-library
Advanced tools
Comparing version 3.63.0 to 3.64.0
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.37.1" | ||
"packageVersion": "7.39.1" | ||
} | ||
] | ||
} |
@@ -8,4 +8,5 @@ "use strict"; | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } | ||
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]); } } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
@@ -12,0 +13,0 @@ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } |
@@ -17,3 +17,3 @@ "use strict"; | ||
FileConstants["PackageJson"] = "package.json"; | ||
})(FileConstants = exports.FileConstants || (exports.FileConstants = {})); | ||
})(FileConstants || (exports.FileConstants = FileConstants = {})); | ||
/** | ||
@@ -34,3 +34,3 @@ * String constants for common folder names. | ||
FolderConstants["NodeModules"] = "node_modules"; | ||
})(FolderConstants = exports.FolderConstants || (exports.FolderConstants = {})); | ||
})(FolderConstants || (exports.FolderConstants = FolderConstants = {})); | ||
//# sourceMappingURL=Constants.js.map |
@@ -49,16 +49,11 @@ "use strict"; | ||
try { | ||
for (var _d = true, _e = __asyncValues(Text_1.Text.readLinesFromIterableAsync(stream, { ignoreEmptyLines: true })), _f; _f = await _e.next(), _a = _f.done, !_a;) { | ||
for (var _d = true, _e = __asyncValues(Text_1.Text.readLinesFromIterableAsync(stream, { ignoreEmptyLines: true })), _f; _f = await _e.next(), _a = _f.done, !_a; _d = true) { | ||
_c = _f.value; | ||
_d = false; | ||
try { | ||
const line = _c; | ||
if (!seenHeaders) { | ||
seenHeaders = true; | ||
} | ||
else { | ||
parseProcessInfoEntry(line, processInfoById); | ||
} | ||
const line = _c; | ||
if (!seenHeaders) { | ||
seenHeaders = true; | ||
} | ||
finally { | ||
_d = true; | ||
else { | ||
parseProcessInfoEntry(line, processInfoById); | ||
} | ||
@@ -65,0 +60,0 @@ } |
@@ -104,2 +104,3 @@ "use strict"; | ||
} | ||
exports.FileError = FileError; | ||
/** @internal */ | ||
@@ -112,4 +113,3 @@ FileError._environmentVariableIsAbsolutePath = false; | ||
]); | ||
exports.FileError = FileError; | ||
TypeUuid_1.TypeUuid.registerClass(FileError, uuidFileError); | ||
//# sourceMappingURL=FileError.js.map |
@@ -71,3 +71,3 @@ "use strict"; | ||
AlreadyExistsBehavior["Ignore"] = "ignore"; | ||
})(AlreadyExistsBehavior = exports.AlreadyExistsBehavior || (exports.AlreadyExistsBehavior = {})); | ||
})(AlreadyExistsBehavior || (exports.AlreadyExistsBehavior = AlreadyExistsBehavior = {})); | ||
const MOVE_DEFAULT_OPTIONS = { | ||
@@ -74,0 +74,0 @@ overwrite: true, |
@@ -15,3 +15,3 @@ /** | ||
export { IFileErrorOptions, IFileErrorFormattingOptions, FileError } from './FileError'; | ||
export { INodePackageJson, IPackageJson, IPackageJsonDependencyTable, IPackageJsonScriptTable, IPackageJsonRepository, IPeerDependenciesMetaTable } from './IPackageJson'; | ||
export { INodePackageJson, IPackageJson, IPackageJsonDependencyTable, IPackageJsonScriptTable, IPackageJsonRepository, IPeerDependenciesMetaTable, IDependenciesMetaTable } from './IPackageJson'; | ||
export { Import, IImportResolveOptions, IImportResolveAsyncOptions, IImportResolveModuleOptions, IImportResolveModuleAsyncOptions, IImportResolvePackageOptions, IImportResolvePackageAsyncOptions } from './Import'; | ||
@@ -18,0 +18,0 @@ export { InternalError } from './InternalError'; |
@@ -45,2 +45,3 @@ "use strict"; | ||
} | ||
exports.InternalError = InternalError; | ||
/** | ||
@@ -55,3 +56,2 @@ * If true, a JavScript `debugger;` statement will be invoked whenever the `InternalError` constructor is called. | ||
InternalError.breakInDebugger = true; | ||
exports.InternalError = InternalError; | ||
//# sourceMappingURL=InternalError.js.map |
@@ -55,2 +55,12 @@ /** | ||
/** | ||
* This interface is part of the {@link IPackageJson} file format. It is used for the | ||
* "dependenciesMeta" field. | ||
* @public | ||
*/ | ||
export interface IDependenciesMetaTable { | ||
[dependencyName: string]: { | ||
injected?: boolean; | ||
}; | ||
} | ||
/** | ||
* An interface for accessing common fields from a package.json file whose version field may be missing. | ||
@@ -146,2 +156,7 @@ * | ||
/** | ||
* An array of metadata for dependencies declared inside dependencies, optionalDependencies, and devDependencies. | ||
* https://pnpm.io/package_json#dependenciesmeta | ||
*/ | ||
dependenciesMeta?: IDependenciesMetaTable; | ||
/** | ||
* An array of metadata about peer dependencies. | ||
@@ -148,0 +163,0 @@ */ |
@@ -91,3 +91,3 @@ "use strict"; | ||
JsonSyntax["Json5"] = "json5"; | ||
})(JsonSyntax = exports.JsonSyntax || (exports.JsonSyntax = {})); | ||
})(JsonSyntax || (exports.JsonSyntax = JsonSyntax = {})); | ||
const DEFAULT_ENCODING = 'utf8'; | ||
@@ -410,2 +410,3 @@ /** | ||
} | ||
exports.JsonFile = JsonFile; | ||
/** | ||
@@ -415,3 +416,2 @@ * @internal | ||
JsonFile._formatPathForError = (path) => path; | ||
exports.JsonFile = JsonFile; | ||
//# sourceMappingURL=JsonFile.js.map |
@@ -422,4 +422,4 @@ "use strict"; | ||
} | ||
exports.LockFile = LockFile; | ||
LockFile._getStartTime = getProcessStartTime; | ||
exports.LockFile = LockFile; | ||
//# sourceMappingURL=LockFile.js.map |
@@ -167,6 +167,6 @@ "use strict"; | ||
} | ||
exports.PackageNameParser = PackageNameParser; | ||
// encodeURIComponent() escapes all characters except: A-Z a-z 0-9 - _ . ! ~ * ' ( ) | ||
// However, these are disallowed because they are shell characters: ! ~ * ' ( ) | ||
PackageNameParser._invalidNameCharactersRegExp = /[^A-Za-z0-9\-_\.]/; | ||
exports.PackageNameParser = PackageNameParser; | ||
/** | ||
@@ -212,4 +212,4 @@ * Provides basic operations for validating and manipulating NPM package names such as `my-package` | ||
} | ||
exports.PackageName = PackageName; | ||
PackageName._parser = new PackageNameParser(); | ||
exports.PackageName = PackageName; | ||
//# sourceMappingURL=PackageName.js.map |
@@ -207,2 +207,3 @@ "use strict"; | ||
} | ||
exports.Path = Path; | ||
// Matches a relative path consisting entirely of periods and slashes | ||
@@ -214,3 +215,2 @@ // Example: ".", "..", "../..", etc | ||
Path._upwardPathSegmentRegex = /([\/\\]|^)\.\.([\/\\]|$)/; | ||
exports.Path = Path; | ||
//# sourceMappingURL=Path.js.map |
@@ -82,3 +82,3 @@ "use strict"; | ||
PosixModeBits[PosixModeBits["AllExecute"] = 73] = "AllExecute"; | ||
})(PosixModeBits = exports.PosixModeBits || (exports.PosixModeBits = {})); | ||
})(PosixModeBits || (exports.PosixModeBits = PosixModeBits = {})); | ||
//# sourceMappingURL=PosixModeBits.js.map |
@@ -78,4 +78,4 @@ "use strict"; | ||
const result = Executable_1.Executable.spawnSync('TaskKill.exe', [ | ||
'/T', | ||
'/F', | ||
'/T', // "Terminates the specified process and any child processes which were started by it." | ||
'/F', // Without this, TaskKill will try to use WM_CLOSE which doesn't work with CLI tools | ||
'/PID', | ||
@@ -174,2 +174,3 @@ pid.toString() | ||
} | ||
exports.SubprocessTerminator = SubprocessTerminator; | ||
/** | ||
@@ -191,3 +192,2 @@ * Whether the hooks are installed | ||
}; | ||
exports.SubprocessTerminator = SubprocessTerminator; | ||
//# sourceMappingURL=SubprocessTerminator.js.map |
@@ -124,2 +124,3 @@ "use strict"; | ||
} | ||
exports.AnsiEscape = AnsiEscape; | ||
// For now, we only care about the Control Sequence Introducer (CSI) commands which always start with "[". | ||
@@ -133,3 +134,2 @@ // eslint-disable-next-line no-control-regex | ||
AnsiEscape._backslashRRegExp = /\r/g; | ||
exports.AnsiEscape = AnsiEscape; | ||
//# sourceMappingURL=AnsiEscape.js.map |
@@ -24,3 +24,3 @@ "use strict"; | ||
ColorValue[ColorValue["Gray"] = 8] = "Gray"; | ||
})(ColorValue = exports.ColorValue || (exports.ColorValue = {})); | ||
})(ColorValue || (exports.ColorValue = ColorValue = {})); | ||
/** | ||
@@ -38,3 +38,3 @@ * Text styles used with {@link IColorableSequence}. | ||
TextAttribute[TextAttribute["Hidden"] = 5] = "Hidden"; | ||
})(TextAttribute = exports.TextAttribute || (exports.TextAttribute = {})); | ||
})(TextAttribute || (exports.TextAttribute = TextAttribute = {})); | ||
var ConsoleColorCodes; | ||
@@ -77,3 +77,3 @@ (function (ConsoleColorCodes) { | ||
ConsoleColorCodes[ConsoleColorCodes["HiddenOff"] = 28] = "HiddenOff"; | ||
})(ConsoleColorCodes = exports.ConsoleColorCodes || (exports.ConsoleColorCodes = {})); | ||
})(ConsoleColorCodes || (exports.ConsoleColorCodes = ConsoleColorCodes = {})); | ||
/** | ||
@@ -80,0 +80,0 @@ * The static functions on this class are used to produce colored text |
@@ -31,3 +31,3 @@ "use strict"; | ||
TerminalProviderSeverity[TerminalProviderSeverity["debug"] = 4] = "debug"; | ||
})(TerminalProviderSeverity = exports.TerminalProviderSeverity || (exports.TerminalProviderSeverity = {})); | ||
})(TerminalProviderSeverity || (exports.TerminalProviderSeverity = TerminalProviderSeverity = {})); | ||
//# sourceMappingURL=ITerminalProvider.js.map |
@@ -43,4 +43,5 @@ "use strict"; | ||
var g = generator.apply(thisArg, _arguments || []), i, q = []; | ||
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } | ||
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; | ||
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } | ||
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]); } } | ||
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } | ||
@@ -62,3 +63,3 @@ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } | ||
Encoding["Utf8"] = "utf8"; | ||
})(Encoding = exports.Encoding || (exports.Encoding = {})); | ||
})(Encoding || (exports.Encoding = Encoding = {})); | ||
/** | ||
@@ -85,3 +86,3 @@ * Enumeration controlling conversion of newline characters. | ||
NewlineKind["OsDefault"] = "os"; | ||
})(NewlineKind = exports.NewlineKind || (exports.NewlineKind = {})); | ||
})(NewlineKind || (exports.NewlineKind = NewlineKind = {})); | ||
const NEWLINE_REGEX = /\r\n|\n\r|\r|\n/g; | ||
@@ -248,12 +249,7 @@ const NEWLINE_AT_END_REGEX = /(\r\n|\n\r|\r|\n)$/; | ||
try { | ||
for (var _d = true, iterable_1 = __asyncValues(iterable), iterable_1_1; iterable_1_1 = yield __await(iterable_1.next()), _a = iterable_1_1.done, !_a;) { | ||
for (var _d = true, iterable_1 = __asyncValues(iterable), iterable_1_1; iterable_1_1 = yield __await(iterable_1.next()), _a = iterable_1_1.done, !_a; _d = true) { | ||
_c = iterable_1_1.value; | ||
_d = false; | ||
try { | ||
const chunk = _c; | ||
yield __await(yield* __asyncDelegator(__asyncValues(readLinesFromChunk(chunk, encoding, ignoreEmptyLines, state)))); | ||
} | ||
finally { | ||
_d = true; | ||
} | ||
const chunk = _c; | ||
yield __await(yield* __asyncDelegator(__asyncValues(readLinesFromChunk(chunk, encoding, ignoreEmptyLines, state)))); | ||
} | ||
@@ -295,5 +291,5 @@ } | ||
} | ||
exports.Text = Text; | ||
Text._newLineRegEx = NEWLINE_REGEX; | ||
Text._newLineAtEndRegEx = NEWLINE_AT_END_REGEX; | ||
exports.Text = Text; | ||
//# sourceMappingURL=Text.js.map |
@@ -85,4 +85,4 @@ "use strict"; | ||
} | ||
exports.TypeUuid = TypeUuid; | ||
TypeUuid._uuidRegExp = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; | ||
exports.TypeUuid = TypeUuid; | ||
//# sourceMappingURL=TypeUuid.js.map |
{ | ||
"name": "@rushstack/node-core-library", | ||
"version": "3.63.0", | ||
"version": "3.64.0", | ||
"description": "Core libraries that every NodeJS toolchain project should use", | ||
@@ -23,4 +23,4 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@rushstack/heft": "0.62.0", | ||
"@rushstack/heft-node-rig": "2.3.2", | ||
"@rushstack/heft": "0.64.0", | ||
"@rushstack/heft-node-rig": "2.4.0", | ||
"@types/fs-extra": "7.0.0", | ||
@@ -27,0 +27,0 @@ "@types/heft-jest": "1.0.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1172833
15193