@rushstack/package-extractor 0.10.20 → 0.10.22
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/CHANGELOG.json +36 -0
- package/CHANGELOG.md +11 -1
- package/dist/scripts/create-links.js +131 -154
- package/dist/scripts/create-links.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +5 -5
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/package-extractor",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.10.22",
|
|
6
|
+
"tag": "@rushstack/package-extractor_v0.10.22",
|
|
7
|
+
"date": "Wed, 09 Apr 2025 00:11:03 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"dependency": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `0.11.26`"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.72.0`"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.95`"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"version": "0.10.21",
|
|
24
|
+
"tag": "@rushstack/package-extractor_v0.10.21",
|
|
25
|
+
"date": "Fri, 04 Apr 2025 18:34:35 GMT",
|
|
26
|
+
"comments": {
|
|
27
|
+
"dependency": [
|
|
28
|
+
{
|
|
29
|
+
"comment": "Updating dependency \"@rushstack/heft-webpack5-plugin\" to `0.11.25`"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"comment": "Updating dependency \"@rushstack/heft\" to `0.71.2`"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"comment": "Updating dependency \"@rushstack/webpack-preserve-dynamic-require-plugin\" to `0.11.94`"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
4
40
|
{
|
|
5
41
|
"version": "0.10.20",
|
|
6
42
|
"tag": "@rushstack/package-extractor_v0.10.20",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log - @rushstack/package-extractor
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 09 Apr 2025 00:11:03 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.10.22
|
|
6
|
+
Wed, 09 Apr 2025 00:11:03 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 0.10.21
|
|
11
|
+
Fri, 04 Apr 2025 18:34:35 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 0.10.20
|
|
6
16
|
Tue, 25 Mar 2025 15:11:16 GMT
|
|
@@ -173,7 +173,7 @@ exports.PackageName = exports.PackageNameParser = void 0;
|
|
|
173
173
|
*/
|
|
174
174
|
class PackageNameParser {
|
|
175
175
|
constructor(options = {}) {
|
|
176
|
-
this._options =
|
|
176
|
+
this._options = { ...options };
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
179
|
* This attempts to parse a package name that may include a scope component.
|
|
@@ -4466,17 +4466,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
4466
4466
|
return result;
|
|
4467
4467
|
};
|
|
4468
4468
|
})();
|
|
4469
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
4470
|
-
var t = {};
|
|
4471
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4472
|
-
t[p] = s[p];
|
|
4473
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
4474
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
4475
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
4476
|
-
t[p[i]] = s[p[i]];
|
|
4477
|
-
}
|
|
4478
|
-
return t;
|
|
4479
|
-
};
|
|
4480
4469
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4481
4470
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4482
4471
|
};
|
|
@@ -4652,7 +4641,7 @@ class JsonSchema {
|
|
|
4652
4641
|
(0, ajv_formats_1.default)(validator);
|
|
4653
4642
|
if (this._customFormats) {
|
|
4654
4643
|
for (const [name, format] of Object.entries(this._customFormats)) {
|
|
4655
|
-
validator.addFormat(name,
|
|
4644
|
+
validator.addFormat(name, { ...format, async: false });
|
|
4656
4645
|
}
|
|
4657
4646
|
}
|
|
4658
4647
|
const collectedSchemas = [];
|
|
@@ -4697,7 +4686,7 @@ class JsonSchema {
|
|
|
4697
4686
|
if (options === null || options === void 0 ? void 0 : options.ignoreSchemaField) {
|
|
4698
4687
|
const {
|
|
4699
4688
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4700
|
-
$schema
|
|
4689
|
+
$schema, ...remainder } = jsonObject;
|
|
4701
4690
|
jsonObject = remainder;
|
|
4702
4691
|
}
|
|
4703
4692
|
if (this._validator && !this._validator(jsonObject)) {
|
|
@@ -25114,7 +25103,10 @@ class StringBufferTerminalProvider {
|
|
|
25114
25103
|
return this._normalizeOutput(this._warningBuffer.toString(), options);
|
|
25115
25104
|
}
|
|
25116
25105
|
_normalizeOutput(s, options) {
|
|
25117
|
-
options =
|
|
25106
|
+
options = {
|
|
25107
|
+
normalizeSpecialCharacters: true,
|
|
25108
|
+
...(options || {})
|
|
25109
|
+
};
|
|
25118
25110
|
s = node_core_library_1.Text.convertToLf(s);
|
|
25119
25111
|
if (options.normalizeSpecialCharacters) {
|
|
25120
25112
|
return AnsiEscape_1.AnsiEscape.formatForTests(s, { encodeNewlines: true });
|
|
@@ -29693,31 +29685,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
29693
29685
|
return result;
|
|
29694
29686
|
};
|
|
29695
29687
|
})();
|
|
29696
|
-
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
29697
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
29698
|
-
var m = o[Symbol.asyncIterator], i;
|
|
29699
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
29700
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
29701
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
29702
|
-
};
|
|
29703
|
-
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
29704
|
-
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
|
|
29705
|
-
var i, p;
|
|
29706
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
29707
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
29708
|
-
};
|
|
29709
|
-
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
29710
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
29711
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
29712
|
-
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
29713
|
-
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
29714
|
-
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]); } }
|
|
29715
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
29716
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
29717
|
-
function fulfill(value) { resume("next", value); }
|
|
29718
|
-
function reject(value) { resume("throw", value); }
|
|
29719
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
29720
|
-
};
|
|
29721
29688
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
29722
29689
|
exports.Text = exports.NewlineKind = exports.Encoding = void 0;
|
|
29723
29690
|
const os = __importStar(__webpack_require__(/*! os */ 370857));
|
|
@@ -29906,31 +29873,16 @@ class Text {
|
|
|
29906
29873
|
* @param iterable - An iterable object that returns strings or buffers
|
|
29907
29874
|
* @param options - Options used when reading the lines from the provided iterable
|
|
29908
29875
|
*/
|
|
29909
|
-
static readLinesFromIterableAsync(
|
|
29910
|
-
|
|
29911
|
-
|
|
29912
|
-
|
|
29913
|
-
|
|
29914
|
-
|
|
29915
|
-
|
|
29916
|
-
|
|
29917
|
-
|
|
29918
|
-
|
|
29919
|
-
yield __await(yield* __asyncDelegator(__asyncValues(readLinesFromChunk(chunk, encoding, ignoreEmptyLines, state))));
|
|
29920
|
-
}
|
|
29921
|
-
}
|
|
29922
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
29923
|
-
finally {
|
|
29924
|
-
try {
|
|
29925
|
-
if (!_d && !_a && (_b = iterable_2.return)) yield __await(_b.call(iterable_2));
|
|
29926
|
-
}
|
|
29927
|
-
finally { if (e_1) throw e_1.error; }
|
|
29928
|
-
}
|
|
29929
|
-
const remaining = state.remaining;
|
|
29930
|
-
if (remaining.length) {
|
|
29931
|
-
yield yield __await(remaining);
|
|
29932
|
-
}
|
|
29933
|
-
});
|
|
29876
|
+
static async *readLinesFromIterableAsync(iterable, options = {}) {
|
|
29877
|
+
const { encoding = Encoding.Utf8, ignoreEmptyLines = false } = options;
|
|
29878
|
+
const state = { remaining: '' };
|
|
29879
|
+
for await (const chunk of iterable) {
|
|
29880
|
+
yield* readLinesFromChunk(chunk, encoding, ignoreEmptyLines, state);
|
|
29881
|
+
}
|
|
29882
|
+
const remaining = state.remaining;
|
|
29883
|
+
if (remaining.length) {
|
|
29884
|
+
yield remaining;
|
|
29885
|
+
}
|
|
29934
29886
|
}
|
|
29935
29887
|
/**
|
|
29936
29888
|
* Read lines from an iterable object that returns strings or buffers, and return a generator that
|
|
@@ -42758,7 +42710,9 @@ const WRITE_FILE_DEFAULT_OPTIONS = {
|
|
|
42758
42710
|
convertLineEndings: undefined,
|
|
42759
42711
|
encoding: Text_1.Encoding.Utf8
|
|
42760
42712
|
};
|
|
42761
|
-
const APPEND_TO_FILE_DEFAULT_OPTIONS =
|
|
42713
|
+
const APPEND_TO_FILE_DEFAULT_OPTIONS = {
|
|
42714
|
+
...WRITE_FILE_DEFAULT_OPTIONS
|
|
42715
|
+
};
|
|
42762
42716
|
const READ_FILE_DEFAULT_OPTIONS = {
|
|
42763
42717
|
encoding: Text_1.Encoding.Utf8,
|
|
42764
42718
|
convertLineEndings: undefined
|
|
@@ -42927,7 +42881,10 @@ class FileSystem {
|
|
|
42927
42881
|
*/
|
|
42928
42882
|
static move(options) {
|
|
42929
42883
|
FileSystem._wrapException(() => {
|
|
42930
|
-
options =
|
|
42884
|
+
options = {
|
|
42885
|
+
...MOVE_DEFAULT_OPTIONS,
|
|
42886
|
+
...options
|
|
42887
|
+
};
|
|
42931
42888
|
try {
|
|
42932
42889
|
fsx.moveSync(options.sourcePath, options.destinationPath, { overwrite: options.overwrite });
|
|
42933
42890
|
}
|
|
@@ -42951,7 +42908,10 @@ class FileSystem {
|
|
|
42951
42908
|
*/
|
|
42952
42909
|
static async moveAsync(options) {
|
|
42953
42910
|
await FileSystem._wrapExceptionAsync(async () => {
|
|
42954
|
-
options =
|
|
42911
|
+
options = {
|
|
42912
|
+
...MOVE_DEFAULT_OPTIONS,
|
|
42913
|
+
...options
|
|
42914
|
+
};
|
|
42955
42915
|
try {
|
|
42956
42916
|
await fsx.move(options.sourcePath, options.destinationPath, { overwrite: options.overwrite });
|
|
42957
42917
|
}
|
|
@@ -43001,7 +42961,10 @@ class FileSystem {
|
|
|
43001
42961
|
*/
|
|
43002
42962
|
static readFolderItemNames(folderPath, options) {
|
|
43003
42963
|
return FileSystem._wrapException(() => {
|
|
43004
|
-
options =
|
|
42964
|
+
options = {
|
|
42965
|
+
...READ_FOLDER_DEFAULT_OPTIONS,
|
|
42966
|
+
...options
|
|
42967
|
+
};
|
|
43005
42968
|
const fileNames = fsx.readdirSync(folderPath);
|
|
43006
42969
|
if (options.absolutePaths) {
|
|
43007
42970
|
return fileNames.map((fileName) => nodeJsPath.resolve(folderPath, fileName));
|
|
@@ -43016,7 +42979,10 @@ class FileSystem {
|
|
|
43016
42979
|
*/
|
|
43017
42980
|
static async readFolderItemNamesAsync(folderPath, options) {
|
|
43018
42981
|
return await FileSystem._wrapExceptionAsync(async () => {
|
|
43019
|
-
options =
|
|
42982
|
+
options = {
|
|
42983
|
+
...READ_FOLDER_DEFAULT_OPTIONS,
|
|
42984
|
+
...options
|
|
42985
|
+
};
|
|
43020
42986
|
const fileNames = await fsx.readdir(folderPath);
|
|
43021
42987
|
if (options.absolutePaths) {
|
|
43022
42988
|
return fileNames.map((fileName) => nodeJsPath.resolve(folderPath, fileName));
|
|
@@ -43035,7 +43001,10 @@ class FileSystem {
|
|
|
43035
43001
|
*/
|
|
43036
43002
|
static readFolderItems(folderPath, options) {
|
|
43037
43003
|
return FileSystem._wrapException(() => {
|
|
43038
|
-
options =
|
|
43004
|
+
options = {
|
|
43005
|
+
...READ_FOLDER_DEFAULT_OPTIONS,
|
|
43006
|
+
...options
|
|
43007
|
+
};
|
|
43039
43008
|
const folderEntries = fsx.readdirSync(folderPath, { withFileTypes: true });
|
|
43040
43009
|
if (options.absolutePaths) {
|
|
43041
43010
|
return folderEntries.map((folderEntry) => {
|
|
@@ -43053,7 +43022,10 @@ class FileSystem {
|
|
|
43053
43022
|
*/
|
|
43054
43023
|
static async readFolderItemsAsync(folderPath, options) {
|
|
43055
43024
|
return await FileSystem._wrapExceptionAsync(async () => {
|
|
43056
|
-
options =
|
|
43025
|
+
options = {
|
|
43026
|
+
...READ_FOLDER_DEFAULT_OPTIONS,
|
|
43027
|
+
...options
|
|
43028
|
+
};
|
|
43057
43029
|
const folderEntries = await fsPromises.readdir(folderPath, { withFileTypes: true });
|
|
43058
43030
|
if (options.absolutePaths) {
|
|
43059
43031
|
return folderEntries.map((folderEntry) => {
|
|
@@ -43121,7 +43093,10 @@ class FileSystem {
|
|
|
43121
43093
|
*/
|
|
43122
43094
|
static writeFile(filePath, contents, options) {
|
|
43123
43095
|
FileSystem._wrapException(() => {
|
|
43124
|
-
options =
|
|
43096
|
+
options = {
|
|
43097
|
+
...WRITE_FILE_DEFAULT_OPTIONS,
|
|
43098
|
+
...options
|
|
43099
|
+
};
|
|
43125
43100
|
if (options.convertLineEndings) {
|
|
43126
43101
|
contents = Text_1.Text.convertTo(contents.toString(), options.convertLineEndings);
|
|
43127
43102
|
}
|
|
@@ -43206,7 +43181,10 @@ class FileSystem {
|
|
|
43206
43181
|
*/
|
|
43207
43182
|
static async writeFileAsync(filePath, contents, options) {
|
|
43208
43183
|
await FileSystem._wrapExceptionAsync(async () => {
|
|
43209
|
-
options =
|
|
43184
|
+
options = {
|
|
43185
|
+
...WRITE_FILE_DEFAULT_OPTIONS,
|
|
43186
|
+
...options
|
|
43187
|
+
};
|
|
43210
43188
|
if (options.convertLineEndings) {
|
|
43211
43189
|
contents = Text_1.Text.convertTo(contents.toString(), options.convertLineEndings);
|
|
43212
43190
|
}
|
|
@@ -43287,7 +43265,10 @@ class FileSystem {
|
|
|
43287
43265
|
*/
|
|
43288
43266
|
static appendToFile(filePath, contents, options) {
|
|
43289
43267
|
FileSystem._wrapException(() => {
|
|
43290
|
-
options =
|
|
43268
|
+
options = {
|
|
43269
|
+
...APPEND_TO_FILE_DEFAULT_OPTIONS,
|
|
43270
|
+
...options
|
|
43271
|
+
};
|
|
43291
43272
|
if (options.convertLineEndings) {
|
|
43292
43273
|
contents = Text_1.Text.convertTo(contents.toString(), options.convertLineEndings);
|
|
43293
43274
|
}
|
|
@@ -43314,7 +43295,10 @@ class FileSystem {
|
|
|
43314
43295
|
*/
|
|
43315
43296
|
static async appendToFileAsync(filePath, contents, options) {
|
|
43316
43297
|
await FileSystem._wrapExceptionAsync(async () => {
|
|
43317
|
-
options =
|
|
43298
|
+
options = {
|
|
43299
|
+
...APPEND_TO_FILE_DEFAULT_OPTIONS,
|
|
43300
|
+
...options
|
|
43301
|
+
};
|
|
43318
43302
|
if (options.convertLineEndings) {
|
|
43319
43303
|
contents = Text_1.Text.convertTo(contents.toString(), options.convertLineEndings);
|
|
43320
43304
|
}
|
|
@@ -43344,7 +43328,10 @@ class FileSystem {
|
|
|
43344
43328
|
*/
|
|
43345
43329
|
static readFile(filePath, options) {
|
|
43346
43330
|
return FileSystem._wrapException(() => {
|
|
43347
|
-
options =
|
|
43331
|
+
options = {
|
|
43332
|
+
...READ_FILE_DEFAULT_OPTIONS,
|
|
43333
|
+
...options
|
|
43334
|
+
};
|
|
43348
43335
|
let contents = FileSystem.readFileToBuffer(filePath).toString(options.encoding);
|
|
43349
43336
|
if (options.convertLineEndings) {
|
|
43350
43337
|
contents = Text_1.Text.convertTo(contents, options.convertLineEndings);
|
|
@@ -43357,7 +43344,10 @@ class FileSystem {
|
|
|
43357
43344
|
*/
|
|
43358
43345
|
static async readFileAsync(filePath, options) {
|
|
43359
43346
|
return await FileSystem._wrapExceptionAsync(async () => {
|
|
43360
|
-
options =
|
|
43347
|
+
options = {
|
|
43348
|
+
...READ_FILE_DEFAULT_OPTIONS,
|
|
43349
|
+
...options
|
|
43350
|
+
};
|
|
43361
43351
|
let contents = (await FileSystem.readFileToBufferAsync(filePath)).toString(options.encoding);
|
|
43362
43352
|
if (options.convertLineEndings) {
|
|
43363
43353
|
contents = Text_1.Text.convertTo(contents, options.convertLineEndings);
|
|
@@ -43394,7 +43384,10 @@ class FileSystem {
|
|
|
43394
43384
|
* The implementation is based on `copySync()` from the `fs-extra` package.
|
|
43395
43385
|
*/
|
|
43396
43386
|
static copyFile(options) {
|
|
43397
|
-
options =
|
|
43387
|
+
options = {
|
|
43388
|
+
...COPY_FILE_DEFAULT_OPTIONS,
|
|
43389
|
+
...options
|
|
43390
|
+
};
|
|
43398
43391
|
if (FileSystem.getStatistics(options.sourcePath).isDirectory()) {
|
|
43399
43392
|
throw new Error('The specified path refers to a folder; this operation expects a file object:\n' + options.sourcePath);
|
|
43400
43393
|
}
|
|
@@ -43409,7 +43402,10 @@ class FileSystem {
|
|
|
43409
43402
|
* An async version of {@link FileSystem.copyFile}.
|
|
43410
43403
|
*/
|
|
43411
43404
|
static async copyFileAsync(options) {
|
|
43412
|
-
options =
|
|
43405
|
+
options = {
|
|
43406
|
+
...COPY_FILE_DEFAULT_OPTIONS,
|
|
43407
|
+
...options
|
|
43408
|
+
};
|
|
43413
43409
|
if ((await FileSystem.getStatisticsAsync(options.sourcePath)).isDirectory()) {
|
|
43414
43410
|
throw new Error('The specified path refers to a folder; this operation expects a file object:\n' + options.sourcePath);
|
|
43415
43411
|
}
|
|
@@ -43431,7 +43427,10 @@ class FileSystem {
|
|
|
43431
43427
|
* The implementation is based on `copySync()` from the `fs-extra` package.
|
|
43432
43428
|
*/
|
|
43433
43429
|
static copyFiles(options) {
|
|
43434
|
-
options =
|
|
43430
|
+
options = {
|
|
43431
|
+
...COPY_FILES_DEFAULT_OPTIONS,
|
|
43432
|
+
...options
|
|
43433
|
+
};
|
|
43435
43434
|
FileSystem._wrapException(() => {
|
|
43436
43435
|
fsx.copySync(options.sourcePath, options.destinationPath, {
|
|
43437
43436
|
dereference: !!options.dereferenceSymlinks,
|
|
@@ -43446,7 +43445,10 @@ class FileSystem {
|
|
|
43446
43445
|
* An async version of {@link FileSystem.copyFiles}.
|
|
43447
43446
|
*/
|
|
43448
43447
|
static async copyFilesAsync(options) {
|
|
43449
|
-
options =
|
|
43448
|
+
options = {
|
|
43449
|
+
...COPY_FILES_DEFAULT_OPTIONS,
|
|
43450
|
+
...options
|
|
43451
|
+
};
|
|
43450
43452
|
await FileSystem._wrapExceptionAsync(async () => {
|
|
43451
43453
|
await fsx.copy(options.sourcePath, options.destinationPath, {
|
|
43452
43454
|
dereference: !!options.dereferenceSymlinks,
|
|
@@ -43465,7 +43467,10 @@ class FileSystem {
|
|
|
43465
43467
|
*/
|
|
43466
43468
|
static deleteFile(filePath, options) {
|
|
43467
43469
|
FileSystem._wrapException(() => {
|
|
43468
|
-
options =
|
|
43470
|
+
options = {
|
|
43471
|
+
...DELETE_FILE_DEFAULT_OPTIONS,
|
|
43472
|
+
...options
|
|
43473
|
+
};
|
|
43469
43474
|
try {
|
|
43470
43475
|
fsx.unlinkSync(filePath);
|
|
43471
43476
|
}
|
|
@@ -43481,7 +43486,10 @@ class FileSystem {
|
|
|
43481
43486
|
*/
|
|
43482
43487
|
static async deleteFileAsync(filePath, options) {
|
|
43483
43488
|
await FileSystem._wrapExceptionAsync(async () => {
|
|
43484
|
-
options =
|
|
43489
|
+
options = {
|
|
43490
|
+
...DELETE_FILE_DEFAULT_OPTIONS,
|
|
43491
|
+
...options
|
|
43492
|
+
};
|
|
43485
43493
|
try {
|
|
43486
43494
|
await fsx.unlink(filePath);
|
|
43487
43495
|
}
|
|
@@ -43653,7 +43661,7 @@ class FileSystem {
|
|
|
43653
43661
|
FileSystem._wrapException(() => {
|
|
43654
43662
|
return FileSystem._handleLink(() => {
|
|
43655
43663
|
return fsx.linkSync(options.linkTargetPath, options.newLinkPath);
|
|
43656
|
-
},
|
|
43664
|
+
}, { ...options, linkTargetMustExist: true });
|
|
43657
43665
|
});
|
|
43658
43666
|
}
|
|
43659
43667
|
/**
|
|
@@ -43663,7 +43671,7 @@ class FileSystem {
|
|
|
43663
43671
|
await FileSystem._wrapExceptionAsync(() => {
|
|
43664
43672
|
return FileSystem._handleLinkAsync(() => {
|
|
43665
43673
|
return fsx.link(options.linkTargetPath, options.newLinkPath);
|
|
43666
|
-
},
|
|
43674
|
+
}, { ...options, linkTargetMustExist: true });
|
|
43667
43675
|
});
|
|
43668
43676
|
}
|
|
43669
43677
|
/**
|
|
@@ -48593,13 +48601,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
48593
48601
|
return result;
|
|
48594
48602
|
};
|
|
48595
48603
|
})();
|
|
48596
|
-
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
48597
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
48598
|
-
var m = o[Symbol.asyncIterator], i;
|
|
48599
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
48600
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
48601
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
48602
|
-
};
|
|
48603
48604
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
48604
48605
|
exports.Executable = void 0;
|
|
48605
48606
|
exports.parseProcessListOutputAsync = parseProcessListOutputAsync;
|
|
@@ -48614,28 +48615,15 @@ const Text_1 = __webpack_require__(/*! ./Text */ 426989);
|
|
|
48614
48615
|
const InternalError_1 = __webpack_require__(/*! ./InternalError */ 576869);
|
|
48615
48616
|
const OS_PLATFORM = os.platform();
|
|
48616
48617
|
async function parseProcessListOutputAsync(stream, platform = OS_PLATFORM) {
|
|
48617
|
-
var _a, e_1, _b, _c;
|
|
48618
48618
|
const processInfoById = new Map();
|
|
48619
48619
|
let seenHeaders = false;
|
|
48620
|
-
|
|
48621
|
-
|
|
48622
|
-
|
|
48623
|
-
_d = false;
|
|
48624
|
-
const line = _c;
|
|
48625
|
-
if (!seenHeaders) {
|
|
48626
|
-
seenHeaders = true;
|
|
48627
|
-
}
|
|
48628
|
-
else {
|
|
48629
|
-
parseProcessInfoEntry(line, processInfoById, platform);
|
|
48630
|
-
}
|
|
48620
|
+
for await (const line of Text_1.Text.readLinesFromIterableAsync(stream, { ignoreEmptyLines: true })) {
|
|
48621
|
+
if (!seenHeaders) {
|
|
48622
|
+
seenHeaders = true;
|
|
48631
48623
|
}
|
|
48632
|
-
|
|
48633
|
-
|
|
48634
|
-
finally {
|
|
48635
|
-
try {
|
|
48636
|
-
if (!_d && !_a && (_b = _e.return)) await _b.call(_e);
|
|
48624
|
+
else {
|
|
48625
|
+
parseProcessInfoEntry(line, processInfoById, platform);
|
|
48637
48626
|
}
|
|
48638
|
-
finally { if (e_1) throw e_1.error; }
|
|
48639
48627
|
}
|
|
48640
48628
|
return processInfoById;
|
|
48641
48629
|
}
|
|
@@ -61225,7 +61213,7 @@ class MockWritable extends TerminalWritable_1.TerminalWritable {
|
|
|
61225
61213
|
return AnsiEscape_1.AnsiEscape.formatForTests(this.chunks.map((x) => x.text).join(''));
|
|
61226
61214
|
}
|
|
61227
61215
|
getFormattedChunks() {
|
|
61228
|
-
return this.chunks.map((x) => (
|
|
61216
|
+
return this.chunks.map((x) => ({ ...x, text: AnsiEscape_1.AnsiEscape.formatForTests(x.text) }));
|
|
61229
61217
|
}
|
|
61230
61218
|
}
|
|
61231
61219
|
exports.MockWritable = MockWritable;
|
|
@@ -67525,25 +67513,12 @@ var splitEvery =
|
|
|
67525
67513
|
/*!*****************************************!*\
|
|
67526
67514
|
!*** ../node-core-library/lib/Async.js ***!
|
|
67527
67515
|
\*****************************************/
|
|
67528
|
-
/***/ (
|
|
67516
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
67529
67517
|
|
|
67530
67518
|
"use strict";
|
|
67531
67519
|
|
|
67532
67520
|
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
67533
67521
|
// See LICENSE in the project root for license information.
|
|
67534
|
-
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
67535
|
-
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
67536
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
67537
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
67538
|
-
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
67539
|
-
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
67540
|
-
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]); } }
|
|
67541
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
67542
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
67543
|
-
function fulfill(value) { resume("next", value); }
|
|
67544
|
-
function reject(value) { resume("throw", value); }
|
|
67545
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
67546
|
-
};
|
|
67547
67522
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
67548
67523
|
exports.AsyncQueue = exports.Async = void 0;
|
|
67549
67524
|
function toWeightedIterator(iterable, useWeights) {
|
|
@@ -67720,34 +67695,32 @@ class AsyncQueue {
|
|
|
67720
67695
|
this._onPushSignal = promise;
|
|
67721
67696
|
this._onPushResolve = resolver;
|
|
67722
67697
|
}
|
|
67723
|
-
[Symbol.asyncIterator]() {
|
|
67724
|
-
|
|
67725
|
-
|
|
67726
|
-
|
|
67727
|
-
|
|
67728
|
-
|
|
67729
|
-
|
|
67730
|
-
|
|
67731
|
-
|
|
67732
|
-
|
|
67733
|
-
callbackResolve = newCallbackResolve;
|
|
67734
|
-
}
|
|
67735
|
-
};
|
|
67736
|
-
let position = 0;
|
|
67737
|
-
while (this._queue.length > position || activeIterations > 0) {
|
|
67738
|
-
if (this._queue.length > position) {
|
|
67739
|
-
activeIterations++;
|
|
67740
|
-
yield yield __await([this._queue[position++], callback]);
|
|
67741
|
-
}
|
|
67742
|
-
else {
|
|
67743
|
-
// On push, the item will be added to the queue and the onPushSignal will be resolved.
|
|
67744
|
-
// On calling the callback, active iterations will be decremented by the callback and the
|
|
67745
|
-
// callbackSignal will be resolved. This means that the loop will continue if there are
|
|
67746
|
-
// active iterations or if there are items in the queue that haven't been yielded yet.
|
|
67747
|
-
yield __await(Promise.race([this._onPushSignal, callbackSignal]));
|
|
67748
|
-
}
|
|
67698
|
+
async *[Symbol.asyncIterator]() {
|
|
67699
|
+
let activeIterations = 0;
|
|
67700
|
+
let [callbackSignal, callbackResolve] = getSignal();
|
|
67701
|
+
const callback = () => {
|
|
67702
|
+
if (--activeIterations === 0) {
|
|
67703
|
+
// Resolve whatever the latest callback promise is and create a new one
|
|
67704
|
+
callbackResolve();
|
|
67705
|
+
const [newCallbackSignal, newCallbackResolve] = getSignal();
|
|
67706
|
+
callbackSignal = newCallbackSignal;
|
|
67707
|
+
callbackResolve = newCallbackResolve;
|
|
67749
67708
|
}
|
|
67750
|
-
}
|
|
67709
|
+
};
|
|
67710
|
+
let position = 0;
|
|
67711
|
+
while (this._queue.length > position || activeIterations > 0) {
|
|
67712
|
+
if (this._queue.length > position) {
|
|
67713
|
+
activeIterations++;
|
|
67714
|
+
yield [this._queue[position++], callback];
|
|
67715
|
+
}
|
|
67716
|
+
else {
|
|
67717
|
+
// On push, the item will be added to the queue and the onPushSignal will be resolved.
|
|
67718
|
+
// On calling the callback, active iterations will be decremented by the callback and the
|
|
67719
|
+
// callbackSignal will be resolved. This means that the loop will continue if there are
|
|
67720
|
+
// active iterations or if there are items in the queue that haven't been yielded yet.
|
|
67721
|
+
await Promise.race([this._onPushSignal, callbackSignal]);
|
|
67722
|
+
}
|
|
67723
|
+
}
|
|
67751
67724
|
}
|
|
67752
67725
|
/**
|
|
67753
67726
|
* Adds an item to the queue.
|
|
@@ -69301,7 +69274,11 @@ class FileWriter {
|
|
|
69301
69274
|
* @param flags - The flags that should be converted.
|
|
69302
69275
|
*/
|
|
69303
69276
|
static _convertFlagsForNode(flags) {
|
|
69304
|
-
flags =
|
|
69277
|
+
flags = {
|
|
69278
|
+
append: false,
|
|
69279
|
+
exclusive: false,
|
|
69280
|
+
...flags
|
|
69281
|
+
};
|
|
69305
69282
|
return [flags.append ? 'a' : 'w', flags.exclusive ? 'x' : ''].join('');
|
|
69306
69283
|
}
|
|
69307
69284
|
/**
|