Skip to content

Commit 2d31486

Browse files
devversionthePunderWoman
authored andcommitted
build: lock file maintenance (angular#57205)
See associated pull request for more information. PR Close angular#57205
1 parent d35e7f2 commit 2d31486

File tree

7 files changed

+3260
-3705
lines changed

7 files changed

+3260
-3705
lines changed

.github/actions/deploy-docs-site/main.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7433,6 +7433,7 @@ var require_lrucache = __commonJS({
74337433
//
74347434
var require_range = __commonJS({
74357435
""(exports, module) {
7436+
var SPACE_CHARACTERS = /\s+/g;
74367437
var Range = class {
74377438
constructor(range, options) {
74387439
options = parseOptions(options);
@@ -7446,13 +7447,13 @@ var require_range = __commonJS({
74467447
if (range instanceof Comparator) {
74477448
this.raw = range.value;
74487449
this.set = [[range]];
7449-
this.format();
7450+
this.formatted = void 0;
74507451
return this;
74517452
}
74527453
this.options = options;
74537454
this.loose = !!options.loose;
74547455
this.includePrerelease = !!options.includePrerelease;
7455-
this.raw = range.trim().split(/\s+/).join(" ");
7456+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
74567457
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
74577458
if (!this.set.length) {
74587459
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
@@ -7471,10 +7472,27 @@ var require_range = __commonJS({
74717472
}
74727473
}
74737474
}
7474-
this.format();
7475+
this.formatted = void 0;
7476+
}
7477+
get range() {
7478+
if (this.formatted === void 0) {
7479+
this.formatted = "";
7480+
for (let i = 0; i < this.set.length; i++) {
7481+
if (i > 0) {
7482+
this.formatted += "||";
7483+
}
7484+
const comps = this.set[i];
7485+
for (let k = 0; k < comps.length; k++) {
7486+
if (k > 0) {
7487+
this.formatted += " ";
7488+
}
7489+
this.formatted += comps[k].toString().trim();
7490+
}
7491+
}
7492+
}
7493+
return this.formatted;
74757494
}
74767495
format() {
7477-
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
74787496
return this.range;
74797497
}
74807498
toString() {

0 commit comments

Comments
 (0)