@storm-software/workspace-tools 1.68.10 → 1.68.11
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.md +12 -0
- package/index.js +203 -133
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +9 -2
- package/src/generators/browser-library/generator.js +9 -2
- package/src/generators/neutral-library/generator.js +9 -2
- package/src/generators/node-library/generator.js +9 -2
- package/src/generators/release-version/generator.js +52 -11
- package/src/utils/index.js +103 -81
package/package.json
CHANGED
package/src/base/index.js
CHANGED
|
@@ -222474,9 +222474,9 @@ var require_cjs = __commonJS({
|
|
|
222474
222474
|
}
|
|
222475
222475
|
});
|
|
222476
222476
|
|
|
222477
|
-
// node_modules/.pnpm/ignore@5.3.
|
|
222477
|
+
// node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js
|
|
222478
222478
|
var require_ignore = __commonJS({
|
|
222479
|
-
"node_modules/.pnpm/ignore@5.3.
|
|
222479
|
+
"node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports2, module2) {
|
|
222480
222480
|
function makeArray(subject) {
|
|
222481
222481
|
return Array.isArray(subject) ? subject : [subject];
|
|
222482
222482
|
}
|
|
@@ -222507,6 +222507,13 @@ var require_ignore = __commonJS({
|
|
|
222507
222507
|
return slashes.slice(0, length - length % 2);
|
|
222508
222508
|
};
|
|
222509
222509
|
var REPLACERS = [
|
|
222510
|
+
[
|
|
222511
|
+
// remove BOM
|
|
222512
|
+
// TODO:
|
|
222513
|
+
// Other similar zero-width characters?
|
|
222514
|
+
/^\uFEFF/,
|
|
222515
|
+
() => EMPTY
|
|
222516
|
+
],
|
|
222510
222517
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
222511
222518
|
[
|
|
222512
222519
|
// (a\ ) -> (a )
|
|
@@ -222474,9 +222474,9 @@ var require_cjs = __commonJS({
|
|
|
222474
222474
|
}
|
|
222475
222475
|
});
|
|
222476
222476
|
|
|
222477
|
-
// node_modules/.pnpm/ignore@5.3.
|
|
222477
|
+
// node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js
|
|
222478
222478
|
var require_ignore = __commonJS({
|
|
222479
|
-
"node_modules/.pnpm/ignore@5.3.
|
|
222479
|
+
"node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports2, module2) {
|
|
222480
222480
|
function makeArray(subject) {
|
|
222481
222481
|
return Array.isArray(subject) ? subject : [subject];
|
|
222482
222482
|
}
|
|
@@ -222507,6 +222507,13 @@ var require_ignore = __commonJS({
|
|
|
222507
222507
|
return slashes.slice(0, length - length % 2);
|
|
222508
222508
|
};
|
|
222509
222509
|
var REPLACERS = [
|
|
222510
|
+
[
|
|
222511
|
+
// remove BOM
|
|
222512
|
+
// TODO:
|
|
222513
|
+
// Other similar zero-width characters?
|
|
222514
|
+
/^\uFEFF/,
|
|
222515
|
+
() => EMPTY
|
|
222516
|
+
],
|
|
222510
222517
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
222511
222518
|
[
|
|
222512
222519
|
// (a\ ) -> (a )
|
|
@@ -222474,9 +222474,9 @@ var require_cjs = __commonJS({
|
|
|
222474
222474
|
}
|
|
222475
222475
|
});
|
|
222476
222476
|
|
|
222477
|
-
// node_modules/.pnpm/ignore@5.3.
|
|
222477
|
+
// node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js
|
|
222478
222478
|
var require_ignore = __commonJS({
|
|
222479
|
-
"node_modules/.pnpm/ignore@5.3.
|
|
222479
|
+
"node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports2, module2) {
|
|
222480
222480
|
function makeArray(subject) {
|
|
222481
222481
|
return Array.isArray(subject) ? subject : [subject];
|
|
222482
222482
|
}
|
|
@@ -222507,6 +222507,13 @@ var require_ignore = __commonJS({
|
|
|
222507
222507
|
return slashes.slice(0, length - length % 2);
|
|
222508
222508
|
};
|
|
222509
222509
|
var REPLACERS = [
|
|
222510
|
+
[
|
|
222511
|
+
// remove BOM
|
|
222512
|
+
// TODO:
|
|
222513
|
+
// Other similar zero-width characters?
|
|
222514
|
+
/^\uFEFF/,
|
|
222515
|
+
() => EMPTY
|
|
222516
|
+
],
|
|
222510
222517
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
222511
222518
|
[
|
|
222512
222519
|
// (a\ ) -> (a )
|
|
@@ -222474,9 +222474,9 @@ var require_cjs = __commonJS({
|
|
|
222474
222474
|
}
|
|
222475
222475
|
});
|
|
222476
222476
|
|
|
222477
|
-
// node_modules/.pnpm/ignore@5.3.
|
|
222477
|
+
// node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js
|
|
222478
222478
|
var require_ignore = __commonJS({
|
|
222479
|
-
"node_modules/.pnpm/ignore@5.3.
|
|
222479
|
+
"node_modules/.pnpm/ignore@5.3.1/node_modules/ignore/index.js"(exports2, module2) {
|
|
222480
222480
|
function makeArray(subject) {
|
|
222481
222481
|
return Array.isArray(subject) ? subject : [subject];
|
|
222482
222482
|
}
|
|
@@ -222507,6 +222507,13 @@ var require_ignore = __commonJS({
|
|
|
222507
222507
|
return slashes.slice(0, length - length % 2);
|
|
222508
222508
|
};
|
|
222509
222509
|
var REPLACERS = [
|
|
222510
|
+
[
|
|
222511
|
+
// remove BOM
|
|
222512
|
+
// TODO:
|
|
222513
|
+
// Other similar zero-width characters?
|
|
222514
|
+
/^\uFEFF/,
|
|
222515
|
+
() => EMPTY
|
|
222516
|
+
],
|
|
222510
222517
|
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
222511
222518
|
[
|
|
222512
222519
|
// (a\ ) -> (a )
|
|
@@ -221322,9 +221322,9 @@ var require_package = __commonJS({
|
|
|
221322
221322
|
}
|
|
221323
221323
|
});
|
|
221324
221324
|
|
|
221325
|
-
// node_modules/.pnpm/lru-cache@10.0
|
|
221326
|
-
var
|
|
221327
|
-
"node_modules/.pnpm/lru-cache@10.0
|
|
221325
|
+
// node_modules/.pnpm/lru-cache@10.2.0/node_modules/lru-cache/dist/commonjs/index.js
|
|
221326
|
+
var require_commonjs = __commonJS({
|
|
221327
|
+
"node_modules/.pnpm/lru-cache@10.2.0/node_modules/lru-cache/dist/commonjs/index.js"(exports2) {
|
|
221328
221328
|
"use strict";
|
|
221329
221329
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
221330
221330
|
exports2.LRUCache = void 0;
|
|
@@ -221696,6 +221696,8 @@ var require_cjs = __commonJS({
|
|
|
221696
221696
|
if (ttls[index]) {
|
|
221697
221697
|
const ttl = ttls[index];
|
|
221698
221698
|
const start = starts[index];
|
|
221699
|
+
if (!ttl || !start)
|
|
221700
|
+
return;
|
|
221699
221701
|
status.ttl = ttl;
|
|
221700
221702
|
status.start = start;
|
|
221701
221703
|
status.now = cachedNow || getNow();
|
|
@@ -221722,14 +221724,16 @@ var require_cjs = __commonJS({
|
|
|
221722
221724
|
}
|
|
221723
221725
|
const ttl = ttls[index];
|
|
221724
221726
|
const start = starts[index];
|
|
221725
|
-
if (ttl
|
|
221727
|
+
if (!ttl || !start) {
|
|
221726
221728
|
return Infinity;
|
|
221727
221729
|
}
|
|
221728
221730
|
const age = (cachedNow || getNow()) - start;
|
|
221729
221731
|
return ttl - age;
|
|
221730
221732
|
};
|
|
221731
221733
|
this.#isStale = (index) => {
|
|
221732
|
-
|
|
221734
|
+
const s = starts[index];
|
|
221735
|
+
const t = ttls[index];
|
|
221736
|
+
return !!t && !!s && (cachedNow || getNow()) - s > t;
|
|
221733
221737
|
};
|
|
221734
221738
|
}
|
|
221735
221739
|
// conditionally set private methods related to TTL
|
|
@@ -221913,6 +221917,11 @@ var require_cjs = __commonJS({
|
|
|
221913
221917
|
[Symbol.iterator]() {
|
|
221914
221918
|
return this.entries();
|
|
221915
221919
|
}
|
|
221920
|
+
/**
|
|
221921
|
+
* A String value that is used in the creation of the default string description of an object.
|
|
221922
|
+
* Called by the built-in method Object.prototype.toString.
|
|
221923
|
+
*/
|
|
221924
|
+
[Symbol.toStringTag] = "LRUCache";
|
|
221916
221925
|
/**
|
|
221917
221926
|
* Find a value for which the supplied fn method returns a truthy value,
|
|
221918
221927
|
* similar to Array.find(). fn is called as fn(value, key, cache).
|
|
@@ -221970,6 +221979,35 @@ var require_cjs = __commonJS({
|
|
|
221970
221979
|
}
|
|
221971
221980
|
return deleted;
|
|
221972
221981
|
}
|
|
221982
|
+
/**
|
|
221983
|
+
* Get the extended info about a given entry, to get its value, size, and
|
|
221984
|
+
* TTL info simultaneously. Like {@link LRUCache#dump}, but just for a
|
|
221985
|
+
* single key. Always returns stale values, if their info is found in the
|
|
221986
|
+
* cache, so be sure to check for expired TTLs if relevant.
|
|
221987
|
+
*/
|
|
221988
|
+
info(key) {
|
|
221989
|
+
const i = this.#keyMap.get(key);
|
|
221990
|
+
if (i === void 0)
|
|
221991
|
+
return void 0;
|
|
221992
|
+
const v = this.#valList[i];
|
|
221993
|
+
const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
221994
|
+
if (value === void 0)
|
|
221995
|
+
return void 0;
|
|
221996
|
+
const entry = { value };
|
|
221997
|
+
if (this.#ttls && this.#starts) {
|
|
221998
|
+
const ttl = this.#ttls[i];
|
|
221999
|
+
const start = this.#starts[i];
|
|
222000
|
+
if (ttl && start) {
|
|
222001
|
+
const remain = ttl - (perf.now() - start);
|
|
222002
|
+
entry.ttl = remain;
|
|
222003
|
+
entry.start = Date.now();
|
|
222004
|
+
}
|
|
222005
|
+
}
|
|
222006
|
+
if (this.#sizes) {
|
|
222007
|
+
entry.size = this.#sizes[i];
|
|
222008
|
+
}
|
|
222009
|
+
return entry;
|
|
222010
|
+
}
|
|
221973
222011
|
/**
|
|
221974
222012
|
* Return an array of [key, {@link LRUCache.Entry}] tuples which can be
|
|
221975
222013
|
* passed to cache.load()
|
|
@@ -222202,10 +222240,11 @@ var require_cjs = __commonJS({
|
|
|
222202
222240
|
peek(k, peekOptions = {}) {
|
|
222203
222241
|
const { allowStale = this.allowStale } = peekOptions;
|
|
222204
222242
|
const index = this.#keyMap.get(k);
|
|
222205
|
-
if (index
|
|
222206
|
-
|
|
222207
|
-
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
222243
|
+
if (index === void 0 || !allowStale && this.#isStale(index)) {
|
|
222244
|
+
return;
|
|
222208
222245
|
}
|
|
222246
|
+
const v = this.#valList[index];
|
|
222247
|
+
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
|
222209
222248
|
}
|
|
222210
222249
|
#backgroundFetch(k, index, options, context) {
|
|
222211
222250
|
const v = index === void 0 ? void 0 : this.#valList[index];
|
|
@@ -222502,8 +222541,10 @@ var require_cjs = __commonJS({
|
|
|
222502
222541
|
} else if (index === this.#head) {
|
|
222503
222542
|
this.#head = this.#next[index];
|
|
222504
222543
|
} else {
|
|
222505
|
-
|
|
222506
|
-
this.#
|
|
222544
|
+
const pi = this.#prev[index];
|
|
222545
|
+
this.#next[pi] = this.#next[index];
|
|
222546
|
+
const ni = this.#next[index];
|
|
222547
|
+
this.#prev[ni] = this.#prev[index];
|
|
222507
222548
|
}
|
|
222508
222549
|
this.#size--;
|
|
222509
222550
|
this.#free.push(index);
|
|
@@ -222882,7 +222923,7 @@ var require_from_url = __commonJS({
|
|
|
222882
222923
|
var require_lib5 = __commonJS({
|
|
222883
222924
|
"node_modules/.pnpm/hosted-git-info@7.0.1/node_modules/hosted-git-info/lib/index.js"(exports2, module2) {
|
|
222884
222925
|
"use strict";
|
|
222885
|
-
var { LRUCache } =
|
|
222926
|
+
var { LRUCache } = require_commonjs();
|
|
222886
222927
|
var hosts = require_hosts();
|
|
222887
222928
|
var fromUrl = require_from_url();
|
|
222888
222929
|
var parseUrl = require_parse_url();
|