@rushstack/rush-http-build-cache-plugin 5.92.0 → 5.97.1
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/.heft/build-cache/jest-cache/haste-map-bae913f9b9aa720eb4deeae0a60a4b27-22ae7f4ce9de4306889d8c05e5cc39b9-f6b1af01a3130057bdfe3d86807211f9 +0 -0
- package/.heft/build-cache/jest-cache/jest-transform-cache-bae913f9b9aa720eb4deeae0a60a4b27-474488b31a4a940a3990e9eaf06f1647/{42/Import_42731f0220476b7d949a2d8f3a6f3333 → 12/Import_12af6d2ca109ffba883fc5079062e0e8} +157 -14
- package/.heft/build-cache/jest-cache/jest-transform-cache-bae913f9b9aa720eb4deeae0a60a4b27-474488b31a4a940a3990e9eaf06f1647/{62/package_62ad16cf4b73e547a38b9be0e0826b2e → 2f/package_2f923ac6ad9bbd4966f8472750ef7770} +2 -2
- package/.heft/build-cache/jest-cache/jest-transform-cache-bae913f9b9aa720eb4deeae0a60a4b27-474488b31a4a940a3990e9eaf06f1647/{58/index_58c57a8f2a96bf6fdf5db35a2e44baa7 → 53/index_53d9d5a344c3984994c801733764f503} +3 -2
- package/.heft/build-cache/jest-cache/jest-transform-cache-bae913f9b9aa720eb4deeae0a60a4b27-474488b31a4a940a3990e9eaf06f1647/{fa/rushlib_fa830331d24a41292b5cb91040384188 → 68/rushlib_68c59fa059ba441c9c6883bcfed4a8d2} +12 -34
- package/.heft/build-cache/jest-cache/jest-transform-cache-bae913f9b9aa720eb4deeae0a60a4b27-474488b31a4a940a3990e9eaf06f1647/{e2/commons_e2ab730ac4f4b46b65b2b8f85c8616c5 → 9d/commons_9d513d1d600f9112f73547da918dcbb7} +113 -45
- package/.heft/build-cache/jest-cache/jest-transform-cache-bae913f9b9aa720eb4deeae0a60a4b27-474488b31a4a940a3990e9eaf06f1647/{c2/Async_c2ea5cc2edc0a460dcf394ef8277e88e → b4/Async_b43c9d64ab6a035dbce65b9f1a28e166} +78 -2
- package/.heft/build-cache/jest-cache/perf-cache-bae913f9b9aa720eb4deeae0a60a4b27-da39a3ee5e6b4b0d3255bfef95601890 +1 -1
- package/.rush/temp/operation/_phase_build/state.json +1 -1
- package/.rush/temp/operation/_phase_test/all.log +3 -3
- package/.rush/temp/operation/_phase_test/state.json +1 -1
- package/.rush/temp/package-deps__phase_build.json +1 -1
- package/.rush/temp/package-deps__phase_test.json +1 -1
- package/.rush/temp/{rushstack+rush-http-build-cache-plugin-_phase_build-b4c5586f0288094c9a07eba9c3a86a35d8839a48.log → rushstack+rush-http-build-cache-plugin-_phase_build-646439b80a2010050f5b4b8a916e50afae04c3ab.log} +2 -2
- package/package.json +4 -4
- package/rush-logs/rush-http-build-cache-plugin._phase_test.log +3 -3
- package/temp/coverage/clover.xml +2 -2
- package/temp/coverage/lcov-report/HttpBuildCacheProvider.ts.html +1 -1
- package/temp/coverage/lcov-report/RushHttpBuildCachePlugin.ts.html +1 -1
- package/temp/coverage/lcov-report/index.html +1 -1
- package/temp/coverage/lcov-report/index.ts.html +1 -1
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
17c8f45b5493500142a3994514f4c6eb
|
|
2
2
|
"use strict";
|
|
3
3
|
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
4
4
|
// See LICENSE in the project root for license information.
|
|
@@ -145,32 +145,105 @@ class Import {
|
|
|
145
145
|
* and a system module is found, then its name is returned without any file path.
|
|
146
146
|
*/
|
|
147
147
|
static resolveModule(options) {
|
|
148
|
-
const { modulePath, baseFolderPath, includeSystemModules, allowSelfReference } = options;
|
|
148
|
+
const { modulePath, baseFolderPath, includeSystemModules, allowSelfReference, getRealPath } = options;
|
|
149
149
|
if (path.isAbsolute(modulePath)) {
|
|
150
150
|
return modulePath;
|
|
151
151
|
}
|
|
152
|
-
const normalizedRootPath = FileSystem_1.FileSystem.getRealPath(baseFolderPath);
|
|
152
|
+
const normalizedRootPath = (getRealPath || FileSystem_1.FileSystem.getRealPath)(baseFolderPath);
|
|
153
153
|
if (modulePath.startsWith('.')) {
|
|
154
154
|
// This looks like a conventional relative path
|
|
155
155
|
return path.resolve(normalizedRootPath, modulePath);
|
|
156
156
|
}
|
|
157
|
-
if
|
|
158
|
-
|
|
157
|
+
// Built-in modules do not have a scope, so if there is a slash, then we need to check
|
|
158
|
+
// against the first path segment
|
|
159
|
+
const slashIndex = modulePath.indexOf('/');
|
|
160
|
+
const moduleName = slashIndex === -1 ? modulePath : modulePath.slice(0, slashIndex);
|
|
161
|
+
if (!includeSystemModules && Import._builtInModules.has(moduleName)) {
|
|
162
|
+
throw new Error(`Cannot find module "${modulePath}" from "${options.baseFolderPath}".`);
|
|
159
163
|
}
|
|
160
164
|
if (allowSelfReference === true) {
|
|
161
165
|
const ownPackage = Import._getPackageName(baseFolderPath);
|
|
162
|
-
if (ownPackage &&
|
|
163
|
-
|
|
166
|
+
if (ownPackage &&
|
|
167
|
+
(modulePath === ownPackage.packageName || modulePath.startsWith(`${ownPackage.packageName}/`))) {
|
|
168
|
+
const packagePath = modulePath.slice(ownPackage.packageName.length + 1);
|
|
164
169
|
return path.resolve(ownPackage.packageRootPath, packagePath);
|
|
165
170
|
}
|
|
166
171
|
}
|
|
167
172
|
try {
|
|
168
|
-
return Resolve.sync(
|
|
169
|
-
// Append a slash to the package name to ensure `resolve.sync` doesn't attempt to return a system package
|
|
170
|
-
includeSystemModules !== true && modulePath.indexOf('/') === -1 ? `${modulePath}/` : modulePath, {
|
|
173
|
+
return Resolve.sync(modulePath, {
|
|
171
174
|
basedir: normalizedRootPath,
|
|
172
|
-
preserveSymlinks: false
|
|
175
|
+
preserveSymlinks: false,
|
|
176
|
+
realpathSync: getRealPath
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
catch (e) {
|
|
180
|
+
throw new Error(`Cannot find module "${modulePath}" from "${options.baseFolderPath}".`);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Async version of {@link Import.resolveModule}.
|
|
185
|
+
*/
|
|
186
|
+
static async resolveModuleAsync(options) {
|
|
187
|
+
const { modulePath, baseFolderPath, includeSystemModules, allowSelfReference, getRealPath, getRealPathAsync } = options;
|
|
188
|
+
if (path.isAbsolute(modulePath)) {
|
|
189
|
+
return modulePath;
|
|
190
|
+
}
|
|
191
|
+
const normalizedRootPath = await (getRealPathAsync || getRealPath || FileSystem_1.FileSystem.getRealPathAsync)(baseFolderPath);
|
|
192
|
+
if (modulePath.startsWith('.')) {
|
|
193
|
+
// This looks like a conventional relative path
|
|
194
|
+
return path.resolve(normalizedRootPath, modulePath);
|
|
195
|
+
}
|
|
196
|
+
// Built-in modules do not have a scope, so if there is a slash, then we need to check
|
|
197
|
+
// against the first path segment
|
|
198
|
+
const slashIndex = modulePath.indexOf('/');
|
|
199
|
+
const moduleName = slashIndex === -1 ? modulePath : modulePath.slice(0, slashIndex);
|
|
200
|
+
if (!includeSystemModules && Import._builtInModules.has(moduleName)) {
|
|
201
|
+
throw new Error(`Cannot find module "${modulePath}" from "${options.baseFolderPath}".`);
|
|
202
|
+
}
|
|
203
|
+
if (allowSelfReference === true) {
|
|
204
|
+
const ownPackage = Import._getPackageName(baseFolderPath);
|
|
205
|
+
if (ownPackage &&
|
|
206
|
+
(modulePath === ownPackage.packageName || modulePath.startsWith(`${ownPackage.packageName}/`))) {
|
|
207
|
+
const packagePath = modulePath.slice(ownPackage.packageName.length + 1);
|
|
208
|
+
return path.resolve(ownPackage.packageRootPath, packagePath);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
try {
|
|
212
|
+
const resolvePromise = new Promise((resolve, reject) => {
|
|
213
|
+
const realPathFn = getRealPathAsync || getRealPath
|
|
214
|
+
? (filePath, callback) => {
|
|
215
|
+
if (getRealPathAsync) {
|
|
216
|
+
getRealPathAsync(filePath)
|
|
217
|
+
.then((resolvedPath) => callback(null, resolvedPath))
|
|
218
|
+
.catch((error) => callback(error));
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
try {
|
|
222
|
+
const resolvedPath = getRealPath(filePath);
|
|
223
|
+
callback(null, resolvedPath);
|
|
224
|
+
}
|
|
225
|
+
catch (error) {
|
|
226
|
+
callback(error);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
: undefined;
|
|
231
|
+
Resolve.default(modulePath, {
|
|
232
|
+
basedir: normalizedRootPath,
|
|
233
|
+
preserveSymlinks: false,
|
|
234
|
+
realpath: realPathFn
|
|
235
|
+
}, (error, resolvedPath) => {
|
|
236
|
+
if (error) {
|
|
237
|
+
reject(error);
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
// Resolve docs state that either an error will be returned, or the resolved path.
|
|
241
|
+
// In this case, the resolved path should always be populated.
|
|
242
|
+
resolve(resolvedPath);
|
|
243
|
+
}
|
|
244
|
+
});
|
|
173
245
|
});
|
|
246
|
+
return await resolvePromise;
|
|
174
247
|
}
|
|
175
248
|
catch (e) {
|
|
176
249
|
throw new Error(`Cannot find module "${modulePath}" from "${options.baseFolderPath}".`);
|
|
@@ -197,11 +270,11 @@ class Import {
|
|
|
197
270
|
* and a system module is found, then its name is returned without any file path.
|
|
198
271
|
*/
|
|
199
272
|
static resolvePackage(options) {
|
|
200
|
-
const { packageName, includeSystemModules, baseFolderPath, allowSelfReference } = options;
|
|
273
|
+
const { packageName, includeSystemModules, baseFolderPath, allowSelfReference, getRealPath } = options;
|
|
201
274
|
if (includeSystemModules && Import._builtInModules.has(packageName)) {
|
|
202
275
|
return packageName;
|
|
203
276
|
}
|
|
204
|
-
const normalizedRootPath = FileSystem_1.FileSystem.getRealPath(baseFolderPath);
|
|
277
|
+
const normalizedRootPath = (getRealPath || FileSystem_1.FileSystem.getRealPath)(baseFolderPath);
|
|
205
278
|
if (allowSelfReference) {
|
|
206
279
|
const ownPackage = Import._getPackageName(baseFolderPath);
|
|
207
280
|
if (ownPackage && ownPackage.packageName === packageName) {
|
|
@@ -221,8 +294,78 @@ class Import {
|
|
|
221
294
|
// even if the real entry point was in an subfolder with arbitrary nesting.
|
|
222
295
|
pkg.main = 'package.json';
|
|
223
296
|
return pkg;
|
|
224
|
-
}
|
|
297
|
+
},
|
|
298
|
+
realpathSync: getRealPath
|
|
299
|
+
});
|
|
300
|
+
const packagePath = path.dirname(resolvedPath);
|
|
301
|
+
return packagePath;
|
|
302
|
+
}
|
|
303
|
+
catch (_a) {
|
|
304
|
+
throw new Error(`Cannot find package "${packageName}" from "${baseFolderPath}".`);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Async version of {@link Import.resolvePackage}.
|
|
309
|
+
*/
|
|
310
|
+
static async resolvePackageAsync(options) {
|
|
311
|
+
const { packageName, includeSystemModules, baseFolderPath, allowSelfReference, getRealPath, getRealPathAsync } = options;
|
|
312
|
+
if (includeSystemModules && Import._builtInModules.has(packageName)) {
|
|
313
|
+
return packageName;
|
|
314
|
+
}
|
|
315
|
+
const normalizedRootPath = await (getRealPathAsync || getRealPath || FileSystem_1.FileSystem.getRealPathAsync)(baseFolderPath);
|
|
316
|
+
if (allowSelfReference) {
|
|
317
|
+
const ownPackage = Import._getPackageName(baseFolderPath);
|
|
318
|
+
if (ownPackage && ownPackage.packageName === packageName) {
|
|
319
|
+
return ownPackage.packageRootPath;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
PackageName_1.PackageName.parse(packageName); // Ensure the package name is valid and doesn't contain a path
|
|
323
|
+
try {
|
|
324
|
+
const resolvePromise = new Promise((resolve, reject) => {
|
|
325
|
+
const realPathFn = getRealPathAsync || getRealPath
|
|
326
|
+
? (filePath, callback) => {
|
|
327
|
+
if (getRealPathAsync) {
|
|
328
|
+
getRealPathAsync(filePath)
|
|
329
|
+
.then((resolvedPath) => callback(null, resolvedPath))
|
|
330
|
+
.catch((error) => callback(error));
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
try {
|
|
334
|
+
const resolvedPath = getRealPath(filePath);
|
|
335
|
+
callback(null, resolvedPath);
|
|
336
|
+
}
|
|
337
|
+
catch (error) {
|
|
338
|
+
callback(error);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
: undefined;
|
|
343
|
+
Resolve.default(
|
|
344
|
+
// Append a slash to the package name to ensure `resolve` doesn't attempt to return a system package
|
|
345
|
+
`${packageName}/`, {
|
|
346
|
+
basedir: normalizedRootPath,
|
|
347
|
+
preserveSymlinks: false,
|
|
348
|
+
packageFilter: (pkg, pkgFile, dir) => {
|
|
349
|
+
// Hardwire "main" to point to a file that is guaranteed to exist.
|
|
350
|
+
// This helps resolve packages such as @types/node that have no entry point.
|
|
351
|
+
// And then we can use path.dirname() below to locate the package folder,
|
|
352
|
+
// even if the real entry point was in an subfolder with arbitrary nesting.
|
|
353
|
+
pkg.main = 'package.json';
|
|
354
|
+
return pkg;
|
|
355
|
+
},
|
|
356
|
+
realpath: realPathFn
|
|
357
|
+
}, (error, resolvedPath) => {
|
|
358
|
+
if (error) {
|
|
359
|
+
reject(error);
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
// Resolve docs state that either an error will be returned, or the resolved path.
|
|
363
|
+
// In this case, the resolved path should always be populated.
|
|
364
|
+
resolve(resolvedPath);
|
|
365
|
+
}
|
|
366
|
+
});
|
|
225
367
|
});
|
|
368
|
+
const resolvedPath = await resolvePromise;
|
|
226
369
|
const packagePath = path.dirname(resolvedPath);
|
|
227
370
|
return packagePath;
|
|
228
371
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
d7ca309fcdee7a342a3c0286b2254732
|
|
2
2
|
{
|
|
3
3
|
"name": "@rushstack/rush-http-build-cache-plugin",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.97.1",
|
|
5
5
|
"description": "Rush plugin for generic HTTP cloud build cache",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
adb811159db27c5599c1a613d0999adf
|
|
2
2
|
"use strict";
|
|
3
3
|
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
4
4
|
// See LICENSE in the project root for license information.
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TypeUuid = exports.StringBufferTerminalProvider = exports.ConsoleTerminalProvider = exports.TerminalProviderSeverity = exports.TextAttribute = exports.ColorValue = exports.Colors = exports.Terminal = exports.SubprocessTerminator = exports.StringBuilder = exports.LegacyAdapters = exports.FileWriter = exports.FileSystem = exports.AlreadyExistsBehavior = exports.Sort = exports.NewlineKind = exports.Text = exports.Encoding = exports.Path = exports.PackageNameParser = exports.PackageName = exports.PackageJsonLookup = exports.ProtectableMap = exports.PosixModeBits = exports.MapExtensions = exports.LockFile = exports.JsonSchema = exports.JsonFile = exports.JsonSyntax = exports.InternalError = exports.Import = exports.FileError = exports.Executable = exports.EnvironmentMap = exports.Enum = exports.FolderConstants = exports.FileConstants = exports.Async = exports.AnsiEscape = exports.AlreadyReportedError = void 0;
|
|
6
|
+
exports.TypeUuid = exports.StringBufferTerminalProvider = exports.ConsoleTerminalProvider = exports.TerminalProviderSeverity = exports.TextAttribute = exports.ColorValue = exports.Colors = exports.Terminal = exports.SubprocessTerminator = exports.StringBuilder = exports.LegacyAdapters = exports.FileWriter = exports.FileSystem = exports.AlreadyExistsBehavior = exports.Sort = exports.NewlineKind = exports.Text = exports.Encoding = exports.Path = exports.PackageNameParser = exports.PackageName = exports.PackageJsonLookup = exports.ProtectableMap = exports.PosixModeBits = exports.MapExtensions = exports.LockFile = exports.JsonSchema = exports.JsonFile = exports.JsonSyntax = exports.InternalError = exports.Import = exports.FileError = exports.Executable = exports.EnvironmentMap = exports.Enum = exports.FolderConstants = exports.FileConstants = exports.AsyncQueue = exports.Async = exports.AnsiEscape = exports.AlreadyReportedError = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* Core libraries that every NodeJS toolchain project should use.
|
|
9
9
|
*
|
|
@@ -15,6 +15,7 @@ var AnsiEscape_1 = require("./Terminal/AnsiEscape");
|
|
|
15
15
|
Object.defineProperty(exports, "AnsiEscape", { enumerable: true, get: function () { return AnsiEscape_1.AnsiEscape; } });
|
|
16
16
|
var Async_1 = require("./Async");
|
|
17
17
|
Object.defineProperty(exports, "Async", { enumerable: true, get: function () { return Async_1.Async; } });
|
|
18
|
+
Object.defineProperty(exports, "AsyncQueue", { enumerable: true, get: function () { return Async_1.AsyncQueue; } });
|
|
18
19
|
var Constants_1 = require("./Constants");
|
|
19
20
|
Object.defineProperty(exports, "FileConstants", { enumerable: true, get: function () { return Constants_1.FileConstants; } });
|
|
20
21
|
Object.defineProperty(exports, "FolderConstants", { enumerable: true, get: function () { return Constants_1.FolderConstants; } });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
a6ae40f8d161627615c097829cdb31c8
|
|
2
2
|
/******/ (() => { // webpackBootstrap
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
@@ -56,6 +56,17 @@ module.exports = require("@rushstack/package-deps-hash");
|
|
|
56
56
|
|
|
57
57
|
/***/ }),
|
|
58
58
|
|
|
59
|
+
/***/ 484344:
|
|
60
|
+
/*!********************************************************************!*\
|
|
61
|
+
!*** external "@rushstack/package-extractor/lib/PackageExtractor" ***!
|
|
62
|
+
\********************************************************************/
|
|
63
|
+
/***/ ((module) => {
|
|
64
|
+
|
|
65
|
+
"use strict";
|
|
66
|
+
module.exports = require("@rushstack/package-extractor/lib/PackageExtractor");
|
|
67
|
+
|
|
68
|
+
/***/ }),
|
|
69
|
+
|
|
59
70
|
/***/ 192492:
|
|
60
71
|
/*!*****************************************!*\
|
|
61
72
|
!*** external "@rushstack/rig-package" ***!
|
|
@@ -254,17 +265,6 @@ module.exports = require("inquirer/lib/utils/paginator");
|
|
|
254
265
|
|
|
255
266
|
/***/ }),
|
|
256
267
|
|
|
257
|
-
/***/ 609227:
|
|
258
|
-
/*!************************!*\
|
|
259
|
-
!*** external "jszip" ***!
|
|
260
|
-
\************************/
|
|
261
|
-
/***/ ((module) => {
|
|
262
|
-
|
|
263
|
-
"use strict";
|
|
264
|
-
module.exports = require("jszip");
|
|
265
|
-
|
|
266
|
-
/***/ }),
|
|
267
|
-
|
|
268
268
|
/***/ 374809:
|
|
269
269
|
/*!*****************************!*\
|
|
270
270
|
!*** external "node-fetch" ***!
|
|
@@ -298,17 +298,6 @@ module.exports = require("npm-package-arg");
|
|
|
298
298
|
|
|
299
299
|
/***/ }),
|
|
300
300
|
|
|
301
|
-
/***/ 172644:
|
|
302
|
-
/*!*******************************!*\
|
|
303
|
-
!*** external "npm-packlist" ***!
|
|
304
|
-
\*******************************/
|
|
305
|
-
/***/ ((module) => {
|
|
306
|
-
|
|
307
|
-
"use strict";
|
|
308
|
-
module.exports = require("npm-packlist");
|
|
309
|
-
|
|
310
|
-
/***/ }),
|
|
311
|
-
|
|
312
301
|
/***/ 5745:
|
|
313
302
|
/*!************************************!*\
|
|
314
303
|
!*** external "read-package-tree" ***!
|
|
@@ -320,17 +309,6 @@ module.exports = require("read-package-tree");
|
|
|
320
309
|
|
|
321
310
|
/***/ }),
|
|
322
311
|
|
|
323
|
-
/***/ 288048:
|
|
324
|
-
/*!**************************!*\
|
|
325
|
-
!*** external "resolve" ***!
|
|
326
|
-
\**************************/
|
|
327
|
-
/***/ ((module) => {
|
|
328
|
-
|
|
329
|
-
"use strict";
|
|
330
|
-
module.exports = require("resolve");
|
|
331
|
-
|
|
332
|
-
/***/ }),
|
|
333
|
-
|
|
334
312
|
/***/ 315863:
|
|
335
313
|
/*!*********************************!*\
|
|
336
314
|
!*** external "rxjs/operators" ***!
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
6d75f3ef970a9c06c0cdc6c33cb8954c
|
|
2
2
|
"use strict";
|
|
3
3
|
exports.id = "commons";
|
|
4
4
|
exports.ids = ["commons"];
|
|
@@ -6787,11 +6787,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6787
6787
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6788
6788
|
/* harmony export */ "DeployAction": () => (/* binding */ DeployAction)
|
|
6789
6789
|
/* harmony export */ });
|
|
6790
|
-
/* harmony import */ var
|
|
6790
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ 371017);
|
|
6791
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
|
|
6792
|
+
/* harmony import */ var _BaseRushAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BaseRushAction */ 164546);
|
|
6793
|
+
/* harmony import */ var _logic_pnpm_PnpmfileConfiguration__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../logic/pnpm/PnpmfileConfiguration */ 238032);
|
|
6791
6794
|
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
6792
6795
|
// See LICENSE in the project root for license information.
|
|
6793
6796
|
|
|
6794
|
-
|
|
6797
|
+
|
|
6798
|
+
|
|
6799
|
+
class DeployAction extends _BaseRushAction__WEBPACK_IMPORTED_MODULE_1__.BaseRushAction {
|
|
6795
6800
|
constructor(parser) {
|
|
6796
6801
|
super({
|
|
6797
6802
|
actionName: 'deploy',
|
|
@@ -6806,6 +6811,7 @@ class DeployAction extends _BaseRushAction__WEBPACK_IMPORTED_MODULE_0__.BaseRush
|
|
|
6806
6811
|
// to different target folders.
|
|
6807
6812
|
safeForSimultaneousRushProcesses: true
|
|
6808
6813
|
});
|
|
6814
|
+
this._logger = this.rushSession.getLogger('deploy');
|
|
6809
6815
|
this._project = this.defineStringParameter({
|
|
6810
6816
|
parameterLongName: '--project',
|
|
6811
6817
|
parameterShortName: '-p',
|
|
@@ -6843,11 +6849,81 @@ class DeployAction extends _BaseRushAction__WEBPACK_IMPORTED_MODULE_0__.BaseRush
|
|
|
6843
6849
|
' The newly created archive file will be placed according to the designated path, relative' +
|
|
6844
6850
|
' to the target folder. Supported file extensions: .zip'
|
|
6845
6851
|
});
|
|
6852
|
+
this._createArchiveOnly = this.defineFlagParameter({
|
|
6853
|
+
parameterLongName: '--create-archive-only',
|
|
6854
|
+
description: 'If specified, "rush deploy" will only create an archive containing the contents of the target folder.' +
|
|
6855
|
+
' The target folder will not be modified other than to create the archive file.'
|
|
6856
|
+
});
|
|
6846
6857
|
}
|
|
6847
6858
|
async runAsync() {
|
|
6848
|
-
const
|
|
6849
|
-
const
|
|
6850
|
-
|
|
6859
|
+
const scenarioName = this._scenario.value;
|
|
6860
|
+
const { DeployScenarioConfiguration } = await Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! ../../logic/deploy/DeployScenarioConfiguration */ 544987));
|
|
6861
|
+
const scenarioFilePath = DeployScenarioConfiguration.getConfigFilePath(scenarioName, this.rushConfiguration);
|
|
6862
|
+
const scenarioConfiguration = DeployScenarioConfiguration.loadFromFile(this._logger.terminal, scenarioFilePath, this.rushConfiguration);
|
|
6863
|
+
let mainProjectName = this._project.value;
|
|
6864
|
+
if (!mainProjectName) {
|
|
6865
|
+
if (scenarioConfiguration.json.deploymentProjectNames.length === 1) {
|
|
6866
|
+
// If there is only one project, then "--project" is optional
|
|
6867
|
+
mainProjectName = scenarioConfiguration.json.deploymentProjectNames[0];
|
|
6868
|
+
}
|
|
6869
|
+
else {
|
|
6870
|
+
throw new Error(`The ${path__WEBPACK_IMPORTED_MODULE_0__.basename(scenarioFilePath)} configuration specifies multiple items for` +
|
|
6871
|
+
` "deploymentProjectNames". Use the "--project" parameter to indicate the project to be deployed.`);
|
|
6872
|
+
}
|
|
6873
|
+
}
|
|
6874
|
+
else {
|
|
6875
|
+
if (scenarioConfiguration.json.deploymentProjectNames.indexOf(mainProjectName) < 0) {
|
|
6876
|
+
throw new Error(`The project "${mainProjectName}" does not appear in the list of "deploymentProjectNames"` +
|
|
6877
|
+
` from ${path__WEBPACK_IMPORTED_MODULE_0__.basename(scenarioFilePath)}.`);
|
|
6878
|
+
}
|
|
6879
|
+
}
|
|
6880
|
+
const targetRootFolder = this._targetFolder.value
|
|
6881
|
+
? path__WEBPACK_IMPORTED_MODULE_0__.resolve(this._targetFolder.value)
|
|
6882
|
+
: path__WEBPACK_IMPORTED_MODULE_0__.join(this.rushConfiguration.commonFolder, 'deploy');
|
|
6883
|
+
const createArchiveFilePath = this._createArchivePath.value
|
|
6884
|
+
? path__WEBPACK_IMPORTED_MODULE_0__.resolve(targetRootFolder, this._createArchivePath.value)
|
|
6885
|
+
: undefined;
|
|
6886
|
+
const createArchiveOnly = this._createArchiveOnly.value;
|
|
6887
|
+
let transformPackageJson;
|
|
6888
|
+
let pnpmInstallFolder;
|
|
6889
|
+
if (this.rushConfiguration.packageManager === 'pnpm') {
|
|
6890
|
+
const pnpmfileConfiguration = await _logic_pnpm_PnpmfileConfiguration__WEBPACK_IMPORTED_MODULE_2__.PnpmfileConfiguration.initializeAsync(this.rushConfiguration);
|
|
6891
|
+
transformPackageJson = pnpmfileConfiguration.transform.bind(pnpmfileConfiguration);
|
|
6892
|
+
if (!scenarioConfiguration.json.omitPnpmWorkaroundLinks) {
|
|
6893
|
+
pnpmInstallFolder = this.rushConfiguration.commonTempFolder;
|
|
6894
|
+
}
|
|
6895
|
+
}
|
|
6896
|
+
// Construct the project list for the deployer
|
|
6897
|
+
const projectConfigurations = [];
|
|
6898
|
+
for (const project of this.rushConfiguration.projects) {
|
|
6899
|
+
const scenarioProjectJson = scenarioConfiguration.projectJsonsByName.get(project.packageName);
|
|
6900
|
+
projectConfigurations.push({
|
|
6901
|
+
projectName: project.packageName,
|
|
6902
|
+
projectFolder: project.projectFolder,
|
|
6903
|
+
additionalProjectsToInclude: scenarioProjectJson === null || scenarioProjectJson === void 0 ? void 0 : scenarioProjectJson.additionalProjectsToInclude,
|
|
6904
|
+
additionalDependenciesToInclude: scenarioProjectJson === null || scenarioProjectJson === void 0 ? void 0 : scenarioProjectJson.additionalDependenciesToInclude,
|
|
6905
|
+
dependenciesToExclude: scenarioProjectJson === null || scenarioProjectJson === void 0 ? void 0 : scenarioProjectJson.dependenciesToExclude
|
|
6906
|
+
});
|
|
6907
|
+
}
|
|
6908
|
+
// Call the deploy manager
|
|
6909
|
+
const { PackageExtractor } = await Promise.resolve(/*! import() */).then(__webpack_require__.t.bind(__webpack_require__, /*! @rushstack/package-extractor/lib/PackageExtractor */ 484344, 23));
|
|
6910
|
+
const deployManager = new PackageExtractor();
|
|
6911
|
+
await deployManager.extractAsync({
|
|
6912
|
+
terminal: this._logger.terminal,
|
|
6913
|
+
overwriteExisting: !!this._overwrite.value,
|
|
6914
|
+
includeDevDependencies: scenarioConfiguration.json.includeDevDependencies,
|
|
6915
|
+
includeNpmIgnoreFiles: scenarioConfiguration.json.includeNpmIgnoreFiles,
|
|
6916
|
+
folderToCopy: scenarioConfiguration.json.folderToCopy,
|
|
6917
|
+
linkCreation: scenarioConfiguration.json.linkCreation,
|
|
6918
|
+
sourceRootFolder: this.rushConfiguration.rushJsonFolder,
|
|
6919
|
+
targetRootFolder,
|
|
6920
|
+
mainProjectName,
|
|
6921
|
+
projectConfigurations,
|
|
6922
|
+
createArchiveFilePath,
|
|
6923
|
+
createArchiveOnly,
|
|
6924
|
+
pnpmInstallFolder,
|
|
6925
|
+
transformPackageJson
|
|
6926
|
+
});
|
|
6851
6927
|
}
|
|
6852
6928
|
}
|
|
6853
6929
|
//# sourceMappingURL=DeployAction.js.map
|
|
@@ -12342,7 +12418,7 @@ class LookupByPath {
|
|
|
12342
12418
|
nextIndex = input.indexOf(delimiter, previousIndex);
|
|
12343
12419
|
}
|
|
12344
12420
|
// Last segment
|
|
12345
|
-
if (previousIndex
|
|
12421
|
+
if (previousIndex < input.length) {
|
|
12346
12422
|
yield {
|
|
12347
12423
|
prefix: input.slice(previousIndex, input.length),
|
|
12348
12424
|
index: input.length
|
|
@@ -13661,29 +13737,26 @@ class PublishUtilities {
|
|
|
13661
13737
|
const requiredVersion = new _DependencySpecifier__WEBPACK_IMPORTED_MODULE_7__.DependencySpecifier(change.packageName, dependencies[change.packageName]);
|
|
13662
13738
|
const isWorkspaceWildcardVersion = requiredVersion.specifierType === _DependencySpecifier__WEBPACK_IMPORTED_MODULE_7__.DependencySpecifierType.Workspace &&
|
|
13663
13739
|
requiredVersion.versionSpecifier === '*';
|
|
13664
|
-
const
|
|
13665
|
-
prereleaseToken.hasValue &&
|
|
13666
|
-
!allChanges.packageChanges.has(parentPackageName)) ||
|
|
13667
|
-
isWorkspaceWildcardVersion;
|
|
13740
|
+
const isPrerelease = !!prereleaseToken && prereleaseToken.hasValue && !allChanges.packageChanges.has(parentPackageName);
|
|
13668
13741
|
// If the version range exists and has not yet been updated to this version, update it.
|
|
13669
|
-
if (
|
|
13742
|
+
if (isPrerelease ||
|
|
13743
|
+
isWorkspaceWildcardVersion ||
|
|
13744
|
+
requiredVersion.versionSpecifier !== change.newRangeDependency) {
|
|
13670
13745
|
let changeType;
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
semver__WEBPACK_IMPORTED_MODULE_1__.satisfies(change.newVersion, requiredVersion.versionSpecifier)
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
: _api_ChangeManagement__WEBPACK_IMPORTED_MODULE_5__.ChangeType.patch;
|
|
13686
|
-
}
|
|
13746
|
+
// Propagate hotfix changes to dependencies
|
|
13747
|
+
if (change.changeType === _api_ChangeManagement__WEBPACK_IMPORTED_MODULE_5__.ChangeType.hotfix) {
|
|
13748
|
+
changeType = _api_ChangeManagement__WEBPACK_IMPORTED_MODULE_5__.ChangeType.hotfix;
|
|
13749
|
+
}
|
|
13750
|
+
else {
|
|
13751
|
+
// Either it already satisfies the new version, or doesn't.
|
|
13752
|
+
// If not, the downstream dep needs to be republished.
|
|
13753
|
+
// The downstream dep will also need to be republished if using `workspace:*` as this will publish
|
|
13754
|
+
// as the exact version.
|
|
13755
|
+
changeType =
|
|
13756
|
+
!isWorkspaceWildcardVersion &&
|
|
13757
|
+
semver__WEBPACK_IMPORTED_MODULE_1__.satisfies(change.newVersion, requiredVersion.versionSpecifier)
|
|
13758
|
+
? _api_ChangeManagement__WEBPACK_IMPORTED_MODULE_5__.ChangeType.dependency
|
|
13759
|
+
: _api_ChangeManagement__WEBPACK_IMPORTED_MODULE_5__.ChangeType.patch;
|
|
13687
13760
|
}
|
|
13688
13761
|
hasChanges = PublishUtilities._addChange({
|
|
13689
13762
|
change: {
|
|
@@ -13696,7 +13769,7 @@ class PublishUtilities {
|
|
|
13696
13769
|
prereleaseToken,
|
|
13697
13770
|
projectsToExclude
|
|
13698
13771
|
});
|
|
13699
|
-
if (hasChanges ||
|
|
13772
|
+
if (hasChanges || isPrerelease) {
|
|
13700
13773
|
// Only re-evaluate downstream dependencies if updating the parent package's dependency
|
|
13701
13774
|
// caused a version bump.
|
|
13702
13775
|
hasChanges =
|
|
@@ -15838,19 +15911,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15838
15911
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15839
15912
|
/* harmony export */ "DeployScenarioConfiguration": () => (/* binding */ DeployScenarioConfiguration)
|
|
15840
15913
|
/* harmony export */ });
|
|
15841
|
-
/* harmony import */ var
|
|
15842
|
-
/* harmony import */ var
|
|
15843
|
-
/* harmony import */ var
|
|
15844
|
-
/* harmony import */ var
|
|
15845
|
-
/* harmony import */ var
|
|
15846
|
-
/* harmony import */ var _rushstack_node_core_library__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_rushstack_node_core_library__WEBPACK_IMPORTED_MODULE_2__);
|
|
15847
|
-
/* harmony import */ var _schemas_deploy_scenario_schema_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../schemas/deploy-scenario.schema.json */ 173533);
|
|
15914
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ 371017);
|
|
15915
|
+
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
|
|
15916
|
+
/* harmony import */ var _rushstack_node_core_library__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @rushstack/node-core-library */ 132939);
|
|
15917
|
+
/* harmony import */ var _rushstack_node_core_library__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_rushstack_node_core_library__WEBPACK_IMPORTED_MODULE_1__);
|
|
15918
|
+
/* harmony import */ var _schemas_deploy_scenario_schema_json__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../schemas/deploy-scenario.schema.json */ 173533);
|
|
15848
15919
|
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
15849
15920
|
// See LICENSE in the project root for license information.
|
|
15850
15921
|
|
|
15851
15922
|
|
|
15852
15923
|
|
|
15853
|
-
|
|
15854
15924
|
class DeployScenarioConfiguration {
|
|
15855
15925
|
constructor(json, projectJsonsByName) {
|
|
15856
15926
|
this.json = json;
|
|
@@ -15883,14 +15953,14 @@ class DeployScenarioConfiguration {
|
|
|
15883
15953
|
else {
|
|
15884
15954
|
scenarioFileName = `deploy.json`;
|
|
15885
15955
|
}
|
|
15886
|
-
return
|
|
15956
|
+
return path__WEBPACK_IMPORTED_MODULE_0__.join(rushConfiguration.commonRushConfigFolder, scenarioFileName);
|
|
15887
15957
|
}
|
|
15888
|
-
static loadFromFile(scenarioFilePath, rushConfiguration) {
|
|
15889
|
-
if (!
|
|
15958
|
+
static loadFromFile(terminal, scenarioFilePath, rushConfiguration) {
|
|
15959
|
+
if (!_rushstack_node_core_library__WEBPACK_IMPORTED_MODULE_1__.FileSystem.exists(scenarioFilePath)) {
|
|
15890
15960
|
throw new Error('The scenario config file was not found: ' + scenarioFilePath);
|
|
15891
15961
|
}
|
|
15892
|
-
|
|
15893
|
-
const deployScenarioJson =
|
|
15962
|
+
terminal.writeLine(_rushstack_node_core_library__WEBPACK_IMPORTED_MODULE_1__.Colors.cyan(`Loading deployment scenario: ${scenarioFilePath}`));
|
|
15963
|
+
const deployScenarioJson = _rushstack_node_core_library__WEBPACK_IMPORTED_MODULE_1__.JsonFile.loadAndValidate(scenarioFilePath, DeployScenarioConfiguration._jsonSchema);
|
|
15894
15964
|
// Apply the defaults
|
|
15895
15965
|
if (!deployScenarioJson.linkCreation) {
|
|
15896
15966
|
deployScenarioJson.linkCreation = 'default';
|
|
@@ -15917,7 +15987,7 @@ class DeployScenarioConfiguration {
|
|
|
15917
15987
|
// Matches lowercase words separated by dashes.
|
|
15918
15988
|
// Example: "deploy-the-thing123"
|
|
15919
15989
|
DeployScenarioConfiguration._scenarioNameRegExp = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
15920
|
-
DeployScenarioConfiguration._jsonSchema =
|
|
15990
|
+
DeployScenarioConfiguration._jsonSchema = _rushstack_node_core_library__WEBPACK_IMPORTED_MODULE_1__.JsonSchema.fromLoadedObject(_schemas_deploy_scenario_schema_json__WEBPACK_IMPORTED_MODULE_2__);
|
|
15921
15991
|
//# sourceMappingURL=DeployScenarioConfiguration.js.map
|
|
15922
15992
|
|
|
15923
15993
|
/***/ }),
|
|
@@ -22151,7 +22221,6 @@ class OverlappingPathAnalyzer {
|
|
|
22151
22221
|
__webpack_require__.r(__webpack_exports__);
|
|
22152
22222
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22153
22223
|
/* harmony export */ "assetsFolderPath": () => (/* binding */ assetsFolderPath),
|
|
22154
|
-
/* harmony export */ "createLinksScriptFilename": () => (/* binding */ createLinksScriptFilename),
|
|
22155
22224
|
/* harmony export */ "installRunRushPnpmScriptFilename": () => (/* binding */ installRunRushPnpmScriptFilename),
|
|
22156
22225
|
/* harmony export */ "installRunRushScriptFilename": () => (/* binding */ installRunRushScriptFilename),
|
|
22157
22226
|
/* harmony export */ "installRunRushxScriptFilename": () => (/* binding */ installRunRushxScriptFilename),
|
|
@@ -22183,7 +22252,6 @@ const installRunScriptFilename = 'install-run.js';
|
|
|
22183
22252
|
const installRunRushScriptFilename = 'install-run-rush.js';
|
|
22184
22253
|
const installRunRushxScriptFilename = 'install-run-rushx.js';
|
|
22185
22254
|
const installRunRushPnpmScriptFilename = 'install-run-rush-pnpm.js';
|
|
22186
|
-
const createLinksScriptFilename = 'create-links.js';
|
|
22187
22255
|
/**
|
|
22188
22256
|
* The path to the scripts folder in rush-lib/dist.
|
|
22189
22257
|
*/
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
6d4790c8d0cbba844fa0570935749f81
|
|
2
2
|
"use strict";
|
|
3
3
|
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
|
|
4
4
|
// See LICENSE in the project root for license information.
|
|
5
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
6
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
7
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
8
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
9
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
10
|
+
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); }); }; }
|
|
11
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
12
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
13
|
+
function fulfill(value) { resume("next", value); }
|
|
14
|
+
function reject(value) { resume("throw", value); }
|
|
15
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
16
|
+
};
|
|
5
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Async = void 0;
|
|
18
|
+
exports.AsyncQueue = exports.Async = void 0;
|
|
7
19
|
/**
|
|
8
20
|
* Utilities for parallel asynchronous operations, for use with the system `Promise` APIs.
|
|
9
21
|
*
|
|
@@ -139,4 +151,68 @@ class Async {
|
|
|
139
151
|
}
|
|
140
152
|
}
|
|
141
153
|
exports.Async = Async;
|
|
154
|
+
function getSignal() {
|
|
155
|
+
let resolver;
|
|
156
|
+
const promise = new Promise((resolve) => {
|
|
157
|
+
resolver = resolve;
|
|
158
|
+
});
|
|
159
|
+
return [promise, resolver];
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* A queue that allows for asynchronous iteration. During iteration, the queue will wait until
|
|
163
|
+
* the next item is pushed into the queue before yielding. If instead all queue items are consumed
|
|
164
|
+
* and all callbacks have been called, the queue will return.
|
|
165
|
+
*
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
class AsyncQueue {
|
|
169
|
+
constructor(iterable) {
|
|
170
|
+
this._queue = iterable ? Array.from(iterable) : [];
|
|
171
|
+
const [promise, resolver] = getSignal();
|
|
172
|
+
this._onPushSignal = promise;
|
|
173
|
+
this._onPushResolve = resolver;
|
|
174
|
+
}
|
|
175
|
+
[Symbol.asyncIterator]() {
|
|
176
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
177
|
+
let activeIterations = 0;
|
|
178
|
+
let [callbackSignal, callbackResolve] = getSignal();
|
|
179
|
+
const callback = () => {
|
|
180
|
+
if (--activeIterations === 0) {
|
|
181
|
+
// Resolve whatever the latest callback promise is and create a new one
|
|
182
|
+
callbackResolve();
|
|
183
|
+
const [newCallbackSignal, newCallbackResolve] = getSignal();
|
|
184
|
+
callbackSignal = newCallbackSignal;
|
|
185
|
+
callbackResolve = newCallbackResolve;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
let position = 0;
|
|
189
|
+
while (this._queue.length > position || activeIterations > 0) {
|
|
190
|
+
if (this._queue.length > position) {
|
|
191
|
+
activeIterations++;
|
|
192
|
+
yield yield __await([this._queue[position++], callback]);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
// On push, the item will be added to the queue and the onPushSignal will be resolved.
|
|
196
|
+
// On calling the callback, active iterations will be decremented by the callback and the
|
|
197
|
+
// callbackSignal will be resolved. This means that the loop will continue if there are
|
|
198
|
+
// active iterations or if there are items in the queue that haven't been yielded yet.
|
|
199
|
+
yield __await(Promise.race([this._onPushSignal, callbackSignal]));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Adds an item to the queue.
|
|
206
|
+
*
|
|
207
|
+
* @param item - The item to push into the queue.
|
|
208
|
+
*/
|
|
209
|
+
push(item) {
|
|
210
|
+
this._queue.push(item);
|
|
211
|
+
this._onPushResolve();
|
|
212
|
+
const [onPushSignal, onPushResolve] = getSignal();
|
|
213
|
+
this._onPushSignal = onPushSignal;
|
|
214
|
+
this._onPushResolve = onPushResolve;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
exports.AsyncQueue = AsyncQueue;
|
|
142
218
|
//# sourceMappingURL=Async.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"/home/vsts/work/1/s/rush-plugins/rush-http-build-cache-plugin/src/HttpBuildCacheProvider.test.ts":[1,
|
|
1
|
+
{"/home/vsts/work/1/s/rush-plugins/rush-http-build-cache-plugin/src/HttpBuildCacheProvider.test.ts":[1,724]}
|
|
@@ -9,7 +9,7 @@ Starting test
|
|
|
9
9
|
|
|
10
10
|
Run start. 1 test suite
|
|
11
11
|
START src/HttpBuildCacheProvider.test.ts
|
|
12
|
-
PASS src/HttpBuildCacheProvider.test.ts (duration: 0.
|
|
12
|
+
PASS src/HttpBuildCacheProvider.test.ts (duration: 0.724s, 1 passed, 0 failed)
|
|
13
13
|
|
|
14
14
|
Tests finished:
|
|
15
15
|
Successes: 1
|
|
@@ -23,7 +23,7 @@ All files | 42.74 | 39.02 | 40.9 | 42.74 |
|
|
|
23
23
|
RushHttpBuildCachePlugin.ts | 0 | 100 | 0 | 0 | 1-81
|
|
24
24
|
index.ts | 0 | 100 | 100 | 0 | 1-3
|
|
25
25
|
-----------------------------|---------|----------|---------|---------|---------------------------------------------------
|
|
26
|
-
-------------------- Finished (1.
|
|
27
|
-
Project: @rushstack/rush-http-build-cache-plugin@5.
|
|
26
|
+
-------------------- Finished (1.873s) --------------------
|
|
27
|
+
Project: @rushstack/rush-http-build-cache-plugin@5.97.1
|
|
28
28
|
Heft version: 0.50.0
|
|
29
29
|
Node version: v14.21.3
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"rush-plugins/rush-http-build-cache-plugin/README.md": "d8468855d6f34e6f4cc79b6a3f05d57e0b1aaf83",
|
|
4
4
|
"rush-plugins/rush-http-build-cache-plugin/config/jest.config.json": "fa6760fad1e1c41d73a7b6e38783d941a7c969dd",
|
|
5
5
|
"rush-plugins/rush-http-build-cache-plugin/config/rig.json": "f497ba3bb0a8bcb25471bfc11342bd9278d7c4c7",
|
|
6
|
-
"rush-plugins/rush-http-build-cache-plugin/package.json": "
|
|
6
|
+
"rush-plugins/rush-http-build-cache-plugin/package.json": "e08240f7c8e8d65a0a54cd1372b0b35f777e30c8",
|
|
7
7
|
"rush-plugins/rush-http-build-cache-plugin/rush-plugin-manifest.json": "126dfa796b3ce186d8a6892e8bdd26da17d88a57",
|
|
8
8
|
"rush-plugins/rush-http-build-cache-plugin/src/HttpBuildCacheProvider.test.ts": "e5ec316a00a8bd8626fcfd0340e72a1704427be4",
|
|
9
9
|
"rush-plugins/rush-http-build-cache-plugin/src/HttpBuildCacheProvider.ts": "cb77033abae83e2f2f4b6ea08e2c4672a3dee03c",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"rush-plugins/rush-http-build-cache-plugin/README.md": "d8468855d6f34e6f4cc79b6a3f05d57e0b1aaf83",
|
|
4
4
|
"rush-plugins/rush-http-build-cache-plugin/config/jest.config.json": "fa6760fad1e1c41d73a7b6e38783d941a7c969dd",
|
|
5
5
|
"rush-plugins/rush-http-build-cache-plugin/config/rig.json": "f497ba3bb0a8bcb25471bfc11342bd9278d7c4c7",
|
|
6
|
-
"rush-plugins/rush-http-build-cache-plugin/package.json": "
|
|
6
|
+
"rush-plugins/rush-http-build-cache-plugin/package.json": "e08240f7c8e8d65a0a54cd1372b0b35f777e30c8",
|
|
7
7
|
"rush-plugins/rush-http-build-cache-plugin/rush-plugin-manifest.json": "126dfa796b3ce186d8a6892e8bdd26da17d88a57",
|
|
8
8
|
"rush-plugins/rush-http-build-cache-plugin/src/HttpBuildCacheProvider.test.ts": "e5ec316a00a8bd8626fcfd0340e72a1704427be4",
|
|
9
9
|
"rush-plugins/rush-http-build-cache-plugin/src/HttpBuildCacheProvider.ts": "cb77033abae83e2f2f4b6ea08e2c4672a3dee03c",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
Start time: Thu Apr
|
|
2
|
-
Invoking "/usr/bin/tar -x -m -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_build-
|
|
1
|
+
Start time: Thu Apr 27 2023 17:14:14 GMT+0000 (Coordinated Universal Time)
|
|
2
|
+
Invoking "/usr/bin/tar -x -m -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_build-646439b80a2010050f5b4b8a916e50afae04c3ab"
|
|
3
3
|
|
|
4
4
|
======= BEGIN PROCESS INPUT ======
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-http-build-cache-plugin",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.97.1",
|
|
4
4
|
"description": "Rush plugin for generic HTTP cloud build cache",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"https-proxy-agent": "~5.0.0",
|
|
16
16
|
"node-fetch": "2.6.7",
|
|
17
|
-
"@rushstack/node-core-library": "3.
|
|
17
|
+
"@rushstack/node-core-library": "3.56.0",
|
|
18
18
|
"@rushstack/rush-sdk": "5.97.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@types/node-fetch": "2.6.2",
|
|
24
24
|
"@microsoft/rush-lib": "5.97.1",
|
|
25
25
|
"@rushstack/eslint-config": "3.2.0",
|
|
26
|
-
"@rushstack/heft": "0.50.
|
|
27
|
-
"@rushstack/heft-node-rig": "1.12.
|
|
26
|
+
"@rushstack/heft": "0.50.1",
|
|
27
|
+
"@rushstack/heft-node-rig": "1.12.7"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "heft build --clean",
|
|
@@ -9,7 +9,7 @@ Starting test
|
|
|
9
9
|
|
|
10
10
|
Run start. 1 test suite
|
|
11
11
|
START src/HttpBuildCacheProvider.test.ts
|
|
12
|
-
PASS src/HttpBuildCacheProvider.test.ts (duration: 0.
|
|
12
|
+
PASS src/HttpBuildCacheProvider.test.ts (duration: 0.724s, 1 passed, 0 failed)
|
|
13
13
|
|
|
14
14
|
Tests finished:
|
|
15
15
|
Successes: 1
|
|
@@ -23,7 +23,7 @@ All files | 42.74 | 39.02 | 40.9 | 42.74 |
|
|
|
23
23
|
RushHttpBuildCachePlugin.ts | 0 | 100 | 0 | 0 | 1-81
|
|
24
24
|
index.ts | 0 | 100 | 100 | 0 | 1-3
|
|
25
25
|
-----------------------------|---------|----------|---------|---------|---------------------------------------------------
|
|
26
|
-
-------------------- Finished (1.
|
|
27
|
-
Project: @rushstack/rush-http-build-cache-plugin@5.
|
|
26
|
+
-------------------- Finished (1.873s) --------------------
|
|
27
|
+
Project: @rushstack/rush-http-build-cache-plugin@5.97.1
|
|
28
28
|
Heft version: 0.50.0
|
|
29
29
|
Node version: v14.21.3
|
package/temp/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1682615665433" clover="3.2.0">
|
|
3
|
+
<project timestamp="1682615665433" name="All files">
|
|
4
4
|
<metrics statements="131" coveredstatements="56" conditionals="82" coveredconditionals="32" methods="22" coveredmethods="9" elements="235" coveredelements="97" complexity="0" loc="131" ncloc="131" packages="1" files="3" classes="3"/>
|
|
5
5
|
<file name="HttpBuildCacheProvider.ts" path="/home/vsts/work/1/s/rush-plugins/rush-http-build-cache-plugin/src/HttpBuildCacheProvider.ts">
|
|
6
6
|
<metrics statements="118" coveredstatements="56" conditionals="82" coveredconditionals="32" methods="18" coveredmethods="9"/>
|
|
@@ -1255,7 +1255,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
|
|
|
1255
1255
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1256
1256
|
Code coverage generated by
|
|
1257
1257
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1258
|
-
at 2023-04-
|
|
1258
|
+
at 2023-04-27T17:14:25.422Z
|
|
1259
1259
|
</div>
|
|
1260
1260
|
<script src="prettify.js"></script>
|
|
1261
1261
|
<script>
|
|
@@ -328,7 +328,7 @@ export interface IRushHttpBuildCachePluginConfig {
|
|
|
328
328
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
329
329
|
Code coverage generated by
|
|
330
330
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
331
|
-
at 2023-04-
|
|
331
|
+
at 2023-04-27T17:14:25.422Z
|
|
332
332
|
</div>
|
|
333
333
|
<script src="prettify.js"></script>
|
|
334
334
|
<script>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at 2023-04-
|
|
134
|
+
at 2023-04-27T17:14:25.422Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -82,7 +82,7 @@ export { IHttpBuildCacheProviderOptions } from './HttpBuildCacheProvider';
|
|
|
82
82
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
83
83
|
Code coverage generated by
|
|
84
84
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
85
|
-
at 2023-04-
|
|
85
|
+
at 2023-04-27T17:14:25.422Z
|
|
86
86
|
</div>
|
|
87
87
|
<script src="prettify.js"></script>
|
|
88
88
|
<script>
|