@powerhousedao/shared 6.2.3-dev.51 → 6.2.3-dev.53
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/dist/clis/args/common-BXabdhiO.mjs.map +1 -1
- package/dist/clis/build-pieces.d.mts +1 -1
- package/dist/clis/constants.d.mts +2 -2
- package/dist/clis/constants.mjs +13 -1
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +12 -0
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +349 -287
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/{types-DB_YPc3t.d.mts → types-BZBiwi6I.d.mts} +14 -2
- package/dist/clis/types-BZBiwi6I.d.mts.map +1 -0
- package/dist/registry/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/clis/types-DB_YPc3t.d.mts.map +0 -1
package/dist/clis/index.mjs
CHANGED
|
@@ -74,6 +74,18 @@ const PROJECT_PORT_BAND_SIZE = 1e3;
|
|
|
74
74
|
const PROJECT_PORT_BAND_SWITCHBOARD = 7e3;
|
|
75
75
|
const PROJECT_PORT_BAND_STUDIO = 6e3;
|
|
76
76
|
const PROJECT_PORT_BAND_VETRA_CONNECT = 2e3;
|
|
77
|
+
/**
|
|
78
|
+
* Icon for the drives switchboard creates by default, inlined as a data URI.
|
|
79
|
+
*
|
|
80
|
+
* A remote URL is the wrong shape for this: the value is baked into the drive
|
|
81
|
+
* document and rendered by every Connect that opens it, so the icon only
|
|
82
|
+
* appears when that client can reach that host. A desktop or air-gapped install
|
|
83
|
+
* cannot, and the ipfs.io gateway this previously pointed at now answers 403
|
|
84
|
+
* regardless.
|
|
85
|
+
*
|
|
86
|
+
* The mark is drawn dark-on-light so it stays legible against either theme.
|
|
87
|
+
*/
|
|
88
|
+
const DEFAULT_DRIVE_ICON = "data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Crect%20width='16'%20height='16'%20rx='3'%20fill='%23F3F5F7'/%3E%3Cpath%20fill='%23343839'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.0059%200L3.41636%205.45646C2.44979%206.25682%202.3795%207.71452%203.26456%208.60418L5.54425%2010.8957C6.21311%2011.568%206.35783%2012.6012%205.89944%2013.4314L4.48126%2016H2.13333C0.955126%2016%200%2015.0449%200%2013.8667V2.13333C0%200.955126%200.955126%200%202.13333%200H10.0059ZM11.2436%200L10.0128%202.24221C9.55899%203.06891%209.70183%204.09549%2010.3641%204.7669L12.7825%207.21868C13.6656%208.11402%2013.5866%209.57512%2012.612%2010.37L5.70922%2016H13.8667C15.0449%2016%2016%2015.0449%2016%2013.8667V2.13333C16%200.955126%2015.0449%200%2013.8667%200H11.2436Z'/%3E%3C/svg%3E";
|
|
77
89
|
const DEFAULT_VETRA_DRIVE_ID = "vetra";
|
|
78
90
|
const MINIMUM_NODE_VERSION = "24.0.0";
|
|
79
91
|
const PH_BIN = "ph-cli-legacy";
|
|
@@ -1599,7 +1611,7 @@ var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1599
1611
|
};
|
|
1600
1612
|
}));
|
|
1601
1613
|
//#endregion
|
|
1602
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
1614
|
+
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
1603
1615
|
var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1604
1616
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1605
1617
|
exports.isIdentifierChar = isIdentifierChar;
|
|
@@ -2607,7 +2619,7 @@ var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2607
2619
|
}
|
|
2608
2620
|
}));
|
|
2609
2621
|
//#endregion
|
|
2610
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2622
|
+
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
2611
2623
|
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2612
2624
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2613
2625
|
exports.isKeyword = isKeyword;
|
|
@@ -2686,7 +2698,7 @@ var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2686
2698
|
}
|
|
2687
2699
|
}));
|
|
2688
2700
|
//#endregion
|
|
2689
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2701
|
+
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
2690
2702
|
var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2691
2703
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2692
2704
|
Object.defineProperty(exports, "isIdentifierChar", {
|
|
@@ -4303,58 +4315,47 @@ var require_validate_npm_package_license = /* @__PURE__ */ __commonJSMin(((expor
|
|
|
4303
4315
|
};
|
|
4304
4316
|
}));
|
|
4305
4317
|
//#endregion
|
|
4306
|
-
//#region ../../node_modules/.pnpm/lru-cache@11.
|
|
4318
|
+
//#region ../../node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/commonjs/node/index.min.js
|
|
4307
4319
|
var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4320
|
+
var j = (c, t) => () => (t || c((t = { exports: {} }).exports, t), t.exports);
|
|
4321
|
+
var I = j((O) => {
|
|
4322
|
+
"use strict";
|
|
4323
|
+
Object.defineProperty(O, "__esModule", { value: !0 });
|
|
4324
|
+
O.tracing = O.metrics = void 0;
|
|
4325
|
+
var U = __require("node:diagnostics_channel");
|
|
4326
|
+
O.metrics = (0, U.channel)("lru-cache:metrics");
|
|
4327
|
+
O.tracing = (0, U.tracingChannel)("lru-cache");
|
|
4328
|
+
});
|
|
4329
|
+
var P = j((D) => {
|
|
4330
|
+
"use strict";
|
|
4331
|
+
Object.defineProperty(D, "__esModule", { value: !0 });
|
|
4332
|
+
D.defaultPerf = void 0;
|
|
4333
|
+
D.defaultPerf = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
4334
|
+
});
|
|
4308
4335
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
4309
4336
|
exports.LRUCache = void 0;
|
|
4310
|
-
var
|
|
4311
|
-
var
|
|
4312
|
-
var
|
|
4313
|
-
var
|
|
4314
|
-
|
|
4337
|
+
var g = I();
|
|
4338
|
+
var N = P();
|
|
4339
|
+
var C = () => g.metrics.hasSubscribers || g.tracing.hasSubscribers;
|
|
4340
|
+
var k = /* @__PURE__ */ new Set();
|
|
4341
|
+
var G = typeof process == "object" && process ? process : {};
|
|
4342
|
+
var V = (c, t, e, i) => {
|
|
4343
|
+
typeof G.emitWarning == "function" ? G.emitWarning(c, t, e, i) : console.error(`[${e}] ${t}: ${c}`);
|
|
4315
4344
|
};
|
|
4316
|
-
var
|
|
4317
|
-
var
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
onabort;
|
|
4321
|
-
_onabort = [];
|
|
4322
|
-
reason;
|
|
4323
|
-
aborted = !1;
|
|
4324
|
-
addEventListener(i, s) {
|
|
4325
|
-
this._onabort.push(s);
|
|
4326
|
-
}
|
|
4327
|
-
}, C = class {
|
|
4328
|
-
constructor() {
|
|
4329
|
-
t();
|
|
4330
|
-
}
|
|
4331
|
-
signal = new L();
|
|
4332
|
-
abort(i) {
|
|
4333
|
-
if (!this.signal.aborted) {
|
|
4334
|
-
this.signal.reason = i, this.signal.aborted = !0;
|
|
4335
|
-
for (let s of this.signal._onabort) s(i);
|
|
4336
|
-
this.signal.onabort?.(i);
|
|
4337
|
-
}
|
|
4338
|
-
}
|
|
4339
|
-
};
|
|
4340
|
-
let c = R.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t = () => {
|
|
4341
|
-
c && (c = !1, I("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
|
|
4342
|
-
};
|
|
4343
|
-
}
|
|
4344
|
-
var x = (c) => !U.has(c);
|
|
4345
|
-
var y = (c) => c && c === Math.floor(c) && c > 0 && isFinite(c);
|
|
4346
|
-
var M = (c) => y(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? z : null : null;
|
|
4347
|
-
var z = class extends Array {
|
|
4345
|
+
var q = (c) => !k.has(c);
|
|
4346
|
+
var T = (c) => !!c && c === Math.floor(c) && c > 0 && isFinite(c);
|
|
4347
|
+
var H = (c) => T(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? W : null : null;
|
|
4348
|
+
var W = class extends Array {
|
|
4348
4349
|
constructor(t) {
|
|
4349
4350
|
super(t), this.fill(0);
|
|
4350
4351
|
}
|
|
4351
4352
|
};
|
|
4352
|
-
var
|
|
4353
|
+
var x = class c {
|
|
4353
4354
|
heap;
|
|
4354
4355
|
length;
|
|
4355
4356
|
static #o = !1;
|
|
4356
4357
|
static create(t) {
|
|
4357
|
-
let e =
|
|
4358
|
+
let e = H(t);
|
|
4358
4359
|
if (!e) return [];
|
|
4359
4360
|
c.#o = !0;
|
|
4360
4361
|
let i = new c(t, e);
|
|
@@ -4374,14 +4375,14 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4374
4375
|
exports.LRUCache = class c {
|
|
4375
4376
|
#o;
|
|
4376
4377
|
#c;
|
|
4377
|
-
#w;
|
|
4378
|
-
#C;
|
|
4379
|
-
#S;
|
|
4380
|
-
#L;
|
|
4381
|
-
#U;
|
|
4382
4378
|
#m;
|
|
4379
|
+
#W;
|
|
4380
|
+
#S;
|
|
4381
|
+
#M;
|
|
4382
|
+
#j;
|
|
4383
|
+
#w;
|
|
4383
4384
|
get perf() {
|
|
4384
|
-
return this.#
|
|
4385
|
+
return this.#w;
|
|
4385
4386
|
}
|
|
4386
4387
|
ttl;
|
|
4387
4388
|
ttlResolution;
|
|
@@ -4398,48 +4399,49 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4398
4399
|
allowStaleOnFetchAbort;
|
|
4399
4400
|
allowStaleOnFetchRejection;
|
|
4400
4401
|
ignoreFetchAbort;
|
|
4402
|
+
backgroundFetchSize;
|
|
4401
4403
|
#n;
|
|
4402
|
-
#
|
|
4404
|
+
#b;
|
|
4403
4405
|
#s;
|
|
4404
4406
|
#i;
|
|
4405
4407
|
#t;
|
|
4406
|
-
#a;
|
|
4407
|
-
#u;
|
|
4408
4408
|
#l;
|
|
4409
|
+
#u;
|
|
4410
|
+
#a;
|
|
4409
4411
|
#h;
|
|
4410
|
-
#
|
|
4412
|
+
#_;
|
|
4411
4413
|
#r;
|
|
4412
4414
|
#y;
|
|
4413
|
-
#
|
|
4415
|
+
#F;
|
|
4414
4416
|
#d;
|
|
4415
4417
|
#g;
|
|
4416
4418
|
#T;
|
|
4417
|
-
#
|
|
4419
|
+
#U;
|
|
4418
4420
|
#f;
|
|
4419
|
-
#
|
|
4421
|
+
#D;
|
|
4420
4422
|
static unsafeExposeInternals(t) {
|
|
4421
4423
|
return {
|
|
4422
|
-
starts: t.#
|
|
4424
|
+
starts: t.#F,
|
|
4423
4425
|
ttls: t.#d,
|
|
4424
4426
|
autopurgeTimers: t.#g,
|
|
4425
4427
|
sizes: t.#y,
|
|
4426
4428
|
keyMap: t.#s,
|
|
4427
4429
|
keyList: t.#i,
|
|
4428
4430
|
valList: t.#t,
|
|
4429
|
-
next: t.#
|
|
4431
|
+
next: t.#l,
|
|
4430
4432
|
prev: t.#u,
|
|
4431
4433
|
get head() {
|
|
4432
|
-
return t.#
|
|
4434
|
+
return t.#a;
|
|
4433
4435
|
},
|
|
4434
4436
|
get tail() {
|
|
4435
4437
|
return t.#h;
|
|
4436
4438
|
},
|
|
4437
|
-
free: t.#
|
|
4439
|
+
free: t.#_,
|
|
4438
4440
|
isBackgroundFetch: (e) => t.#e(e),
|
|
4439
|
-
backgroundFetch: (e, i, s, n) => t.#
|
|
4440
|
-
moveToTail: (e) => t.#
|
|
4441
|
-
indexes: (e) => t.#
|
|
4442
|
-
rindexes: (e) => t.#
|
|
4441
|
+
backgroundFetch: (e, i, s, n) => t.#G(e, i, s, n),
|
|
4442
|
+
moveToTail: (e) => t.#L(e),
|
|
4443
|
+
indexes: (e) => t.#A(e),
|
|
4444
|
+
rindexes: (e) => t.#z(e),
|
|
4443
4445
|
isStale: (e) => t.#p(e)
|
|
4444
4446
|
};
|
|
4445
4447
|
}
|
|
@@ -4450,188 +4452,190 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4450
4452
|
return this.#c;
|
|
4451
4453
|
}
|
|
4452
4454
|
get calculatedSize() {
|
|
4453
|
-
return this.#
|
|
4455
|
+
return this.#b;
|
|
4454
4456
|
}
|
|
4455
4457
|
get size() {
|
|
4456
4458
|
return this.#n;
|
|
4457
4459
|
}
|
|
4458
4460
|
get fetchMethod() {
|
|
4459
|
-
return this.#
|
|
4461
|
+
return this.#M;
|
|
4460
4462
|
}
|
|
4461
4463
|
get memoMethod() {
|
|
4462
|
-
return this.#
|
|
4464
|
+
return this.#j;
|
|
4463
4465
|
}
|
|
4464
4466
|
get dispose() {
|
|
4465
|
-
return this.#
|
|
4467
|
+
return this.#m;
|
|
4466
4468
|
}
|
|
4467
4469
|
get onInsert() {
|
|
4468
|
-
return this.#
|
|
4470
|
+
return this.#W;
|
|
4469
4471
|
}
|
|
4470
4472
|
get disposeAfter() {
|
|
4471
4473
|
return this.#S;
|
|
4472
4474
|
}
|
|
4473
4475
|
constructor(t) {
|
|
4474
|
-
let { max: e = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet:
|
|
4475
|
-
if (v !== void 0 && typeof v?.now != "function") throw new TypeError("perf option must have a now() method if specified");
|
|
4476
|
-
if (this.#
|
|
4477
|
-
let
|
|
4478
|
-
if (!
|
|
4479
|
-
if (this.#o = e, this.#c =
|
|
4476
|
+
let { max: e = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: r, updateAgeOnHas: h, allowStale: a, dispose: o, onInsert: d, disposeAfter: _, noDisposeOnSet: y, noUpdateTTL: u, maxSize: p = 0, maxEntrySize: f = 0, sizeCalculation: b, fetchMethod: l, memoMethod: S, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: w, allowStaleOnFetchRejection: m, allowStaleOnFetchAbort: A, ignoreFetchAbort: z, backgroundFetchSize: M = 1, perf: v } = t;
|
|
4477
|
+
if (this.backgroundFetchSize = M, v !== void 0 && typeof v?.now != "function") throw new TypeError("perf option must have a now() method if specified");
|
|
4478
|
+
if (this.#w = v ?? N.defaultPerf, e !== 0 && !T(e)) throw new TypeError("max option must be a nonnegative integer");
|
|
4479
|
+
let E = e ? H(e) : Array;
|
|
4480
|
+
if (!E) throw new Error("invalid max value: " + e);
|
|
4481
|
+
if (this.#o = e, this.#c = p, this.maxEntrySize = f || this.#c, this.sizeCalculation = b, this.sizeCalculation) {
|
|
4480
4482
|
if (!this.#c && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
4481
4483
|
if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
|
|
4482
4484
|
}
|
|
4483
4485
|
if (S !== void 0 && typeof S != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
4484
|
-
if (this.#
|
|
4485
|
-
if (this.#
|
|
4486
|
-
if (this.#c !== 0 && !
|
|
4487
|
-
if (!
|
|
4488
|
-
this.#
|
|
4486
|
+
if (this.#j = S, l !== void 0 && typeof l != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
4487
|
+
if (this.#M = l, this.#U = !!l, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: e }).fill(void 0), this.#t = Array.from({ length: e }).fill(void 0), this.#l = new E(e), this.#u = new E(e), this.#a = 0, this.#h = 0, this.#_ = x.create(e), this.#n = 0, this.#b = 0, typeof o == "function" && (this.#m = o), typeof d == "function" && (this.#W = d), typeof _ == "function" ? (this.#S = _, this.#r = []) : (this.#S = void 0, this.#r = void 0), this.#T = !!this.#m, this.#D = !!this.#W, this.#f = !!this.#S, this.noDisposeOnSet = !!y, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!m, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z, this.maxEntrySize !== 0) {
|
|
4488
|
+
if (this.#c !== 0 && !T(this.#c)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
4489
|
+
if (!T(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
4490
|
+
this.#X();
|
|
4489
4491
|
}
|
|
4490
|
-
if (this.allowStale = !!
|
|
4491
|
-
if (!
|
|
4492
|
-
this.#
|
|
4492
|
+
if (this.allowStale = !!a, this.noDeleteOnStaleGet = !!w, this.updateAgeOnGet = !!r, this.updateAgeOnHas = !!h, this.ttlResolution = T(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
|
|
4493
|
+
if (!T(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
4494
|
+
this.#k();
|
|
4493
4495
|
}
|
|
4494
4496
|
if (this.#o === 0 && this.ttl === 0 && this.#c === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
4495
4497
|
if (!this.ttlAutopurge && !this.#o && !this.#c) {
|
|
4496
|
-
let
|
|
4497
|
-
|
|
4498
|
+
let R = "LRU_CACHE_UNBOUNDED";
|
|
4499
|
+
q(R) && (k.add(R), V("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", R, c));
|
|
4498
4500
|
}
|
|
4499
4501
|
}
|
|
4500
4502
|
getRemainingTTL(t) {
|
|
4501
4503
|
return this.#s.has(t) ? 1 / 0 : 0;
|
|
4502
4504
|
}
|
|
4503
|
-
#
|
|
4504
|
-
let t = new
|
|
4505
|
-
this.#d = t, this.#
|
|
4506
|
-
let i = this.ttlAutopurge ?
|
|
4507
|
-
this.#g = i, this.#
|
|
4508
|
-
e[h] =
|
|
4505
|
+
#k() {
|
|
4506
|
+
let t = new W(this.#o), e = new W(this.#o);
|
|
4507
|
+
this.#d = t, this.#F = e;
|
|
4508
|
+
let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : void 0;
|
|
4509
|
+
this.#g = i, this.#H = (h, a, o = this.#w.now()) => {
|
|
4510
|
+
e[h] = a !== 0 ? o : 0, t[h] = a, s(h, a);
|
|
4509
4511
|
}, this.#R = (h) => {
|
|
4510
|
-
e[h] = t[h] !== 0 ? this.#
|
|
4512
|
+
e[h] = t[h] !== 0 ? this.#w.now() : 0, s(h, t[h]);
|
|
4511
4513
|
};
|
|
4512
|
-
let s = this.ttlAutopurge ? (h,
|
|
4513
|
-
if (i?.[h] && (clearTimeout(i[h]), i[h] = void 0),
|
|
4514
|
-
let
|
|
4515
|
-
this.#p(h) && this.#
|
|
4516
|
-
},
|
|
4517
|
-
|
|
4514
|
+
let s = this.ttlAutopurge ? (h, a) => {
|
|
4515
|
+
if (i?.[h] && (clearTimeout(i[h]), i[h] = void 0), a && a !== 0 && i) {
|
|
4516
|
+
let o = setTimeout(() => {
|
|
4517
|
+
this.#p(h) && this.#v(this.#i[h], "expire");
|
|
4518
|
+
}, a + 1);
|
|
4519
|
+
o.unref && o.unref(), i[h] = o;
|
|
4518
4520
|
}
|
|
4519
4521
|
} : () => {};
|
|
4520
|
-
this.#
|
|
4521
|
-
if (t[
|
|
4522
|
-
let
|
|
4523
|
-
if (!
|
|
4524
|
-
h.ttl =
|
|
4525
|
-
h.remainingTTL =
|
|
4522
|
+
this.#E = (h, a) => {
|
|
4523
|
+
if (t[a]) {
|
|
4524
|
+
let o = t[a], d = e[a];
|
|
4525
|
+
if (!o || !d) return;
|
|
4526
|
+
h.ttl = o, h.start = d, h.now = n || r();
|
|
4527
|
+
h.remainingTTL = o - (h.now - d);
|
|
4526
4528
|
}
|
|
4527
4529
|
};
|
|
4528
|
-
let n = 0,
|
|
4529
|
-
let h = this.#
|
|
4530
|
+
let n = 0, r = () => {
|
|
4531
|
+
let h = this.#w.now();
|
|
4530
4532
|
if (this.ttlResolution > 0) {
|
|
4531
4533
|
n = h;
|
|
4532
|
-
let
|
|
4533
|
-
|
|
4534
|
+
let a = setTimeout(() => n = 0, this.ttlResolution);
|
|
4535
|
+
a.unref && a.unref();
|
|
4534
4536
|
}
|
|
4535
4537
|
return h;
|
|
4536
4538
|
};
|
|
4537
4539
|
this.getRemainingTTL = (h) => {
|
|
4538
|
-
let
|
|
4539
|
-
if (
|
|
4540
|
-
let
|
|
4541
|
-
if (!
|
|
4542
|
-
return
|
|
4540
|
+
let a = this.#s.get(h);
|
|
4541
|
+
if (a === void 0) return 0;
|
|
4542
|
+
let o = t[a], d = e[a];
|
|
4543
|
+
if (!o || !d) return 1 / 0;
|
|
4544
|
+
return o - ((n || r()) - d);
|
|
4543
4545
|
}, this.#p = (h) => {
|
|
4544
|
-
let
|
|
4545
|
-
return !!
|
|
4546
|
+
let a = e[h], o = t[h];
|
|
4547
|
+
return !!o && !!a && (n || r()) - a > o;
|
|
4546
4548
|
};
|
|
4547
4549
|
}
|
|
4548
4550
|
#R = () => {};
|
|
4549
|
-
#
|
|
4550
|
-
#
|
|
4551
|
+
#E = () => {};
|
|
4552
|
+
#H = () => {};
|
|
4551
4553
|
#p = () => !1;
|
|
4552
|
-
#
|
|
4553
|
-
let t = new
|
|
4554
|
-
this.#
|
|
4555
|
-
this.#
|
|
4556
|
-
}, this.#
|
|
4557
|
-
if (
|
|
4558
|
-
|
|
4559
|
-
if (
|
|
4560
|
-
|
|
4561
|
-
|
|
4554
|
+
#X() {
|
|
4555
|
+
let t = new W(this.#o);
|
|
4556
|
+
this.#b = 0, this.#y = t, this.#C = (e) => {
|
|
4557
|
+
this.#b -= t[e], t[e] = 0;
|
|
4558
|
+
}, this.#N = (e, i, s, n) => {
|
|
4559
|
+
if (!T(s)) {
|
|
4560
|
+
if (this.#e(i)) return this.backgroundFetchSize;
|
|
4561
|
+
if (n) {
|
|
4562
|
+
if (typeof n != "function") throw new TypeError("sizeCalculation must be a function");
|
|
4563
|
+
if (s = n(i, e), !T(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
4564
|
+
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
4565
|
+
}
|
|
4562
4566
|
return s;
|
|
4563
|
-
}, this.#
|
|
4567
|
+
}, this.#I = (e, i, s) => {
|
|
4564
4568
|
if (t[e] = i, this.#c) {
|
|
4565
4569
|
let n = this.#c - t[e];
|
|
4566
|
-
for (; this.#
|
|
4570
|
+
for (; this.#b > n;) this.#P(!0);
|
|
4567
4571
|
}
|
|
4568
|
-
this.#
|
|
4572
|
+
this.#b += t[e], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
|
|
4569
4573
|
};
|
|
4570
4574
|
}
|
|
4571
|
-
#
|
|
4572
|
-
#
|
|
4573
|
-
#
|
|
4575
|
+
#C = (t) => {};
|
|
4576
|
+
#I = (t, e, i) => {};
|
|
4577
|
+
#N = (t, e, i, s) => {
|
|
4574
4578
|
if (i || s) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
4575
4579
|
return 0;
|
|
4576
4580
|
};
|
|
4577
|
-
*#
|
|
4578
|
-
if (this.#n) for (let e = this.#h;
|
|
4581
|
+
*#A({ allowStale: t = this.allowStale } = {}) {
|
|
4582
|
+
if (this.#n) for (let e = this.#h; this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#a);) e = this.#u[e];
|
|
4579
4583
|
}
|
|
4580
|
-
*#
|
|
4581
|
-
if (this.#n) for (let e = this.#
|
|
4584
|
+
*#z({ allowStale: t = this.allowStale } = {}) {
|
|
4585
|
+
if (this.#n) for (let e = this.#a; this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#h);) e = this.#l[e];
|
|
4582
4586
|
}
|
|
4583
|
-
#
|
|
4587
|
+
#V(t) {
|
|
4584
4588
|
return t !== void 0 && this.#s.get(this.#i[t]) === t;
|
|
4585
4589
|
}
|
|
4586
4590
|
*entries() {
|
|
4587
|
-
for (let t of this.#
|
|
4591
|
+
for (let t of this.#A()) this.#t[t] !== void 0 && this.#i[t] !== void 0 && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
|
|
4588
4592
|
}
|
|
4589
4593
|
*rentries() {
|
|
4590
|
-
for (let t of this.#
|
|
4594
|
+
for (let t of this.#z()) this.#t[t] !== void 0 && this.#i[t] !== void 0 && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
|
|
4591
4595
|
}
|
|
4592
4596
|
*keys() {
|
|
4593
|
-
for (let t of this.#
|
|
4597
|
+
for (let t of this.#A()) {
|
|
4594
4598
|
let e = this.#i[t];
|
|
4595
4599
|
e !== void 0 && !this.#e(this.#t[t]) && (yield e);
|
|
4596
4600
|
}
|
|
4597
4601
|
}
|
|
4598
4602
|
*rkeys() {
|
|
4599
|
-
for (let t of this.#
|
|
4603
|
+
for (let t of this.#z()) {
|
|
4600
4604
|
let e = this.#i[t];
|
|
4601
4605
|
e !== void 0 && !this.#e(this.#t[t]) && (yield e);
|
|
4602
4606
|
}
|
|
4603
4607
|
}
|
|
4604
4608
|
*values() {
|
|
4605
|
-
for (let t of this.#
|
|
4609
|
+
for (let t of this.#A()) this.#t[t] !== void 0 && !this.#e(this.#t[t]) && (yield this.#t[t]);
|
|
4606
4610
|
}
|
|
4607
4611
|
*rvalues() {
|
|
4608
|
-
for (let t of this.#
|
|
4612
|
+
for (let t of this.#z()) this.#t[t] !== void 0 && !this.#e(this.#t[t]) && (yield this.#t[t]);
|
|
4609
4613
|
}
|
|
4610
4614
|
[Symbol.iterator]() {
|
|
4611
4615
|
return this.entries();
|
|
4612
4616
|
}
|
|
4613
4617
|
[Symbol.toStringTag] = "LRUCache";
|
|
4614
4618
|
find(t, e = {}) {
|
|
4615
|
-
for (let i of this.#
|
|
4619
|
+
for (let i of this.#A()) {
|
|
4616
4620
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
4617
|
-
if (n !== void 0 && t(n, this.#i[i], this)) return this
|
|
4621
|
+
if (n !== void 0 && t(n, this.#i[i], this)) return this.#x(this.#i[i], e);
|
|
4618
4622
|
}
|
|
4619
4623
|
}
|
|
4620
4624
|
forEach(t, e = this) {
|
|
4621
|
-
for (let i of this.#
|
|
4625
|
+
for (let i of this.#A()) {
|
|
4622
4626
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
4623
4627
|
n !== void 0 && t.call(e, n, this.#i[i], this);
|
|
4624
4628
|
}
|
|
4625
4629
|
}
|
|
4626
4630
|
rforEach(t, e = this) {
|
|
4627
|
-
for (let i of this.#
|
|
4631
|
+
for (let i of this.#z()) {
|
|
4628
4632
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
4629
4633
|
n !== void 0 && t.call(e, n, this.#i[i], this);
|
|
4630
4634
|
}
|
|
4631
4635
|
}
|
|
4632
4636
|
purgeStale() {
|
|
4633
4637
|
let t = !1;
|
|
4634
|
-
for (let e of this.#
|
|
4638
|
+
for (let e of this.#z({ allowStale: !0 })) this.#p(e) && (this.#v(this.#i[e], "expire"), t = !0);
|
|
4635
4639
|
return t;
|
|
4636
4640
|
}
|
|
4637
4641
|
info(t) {
|
|
@@ -4640,24 +4644,24 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4640
4644
|
let i = this.#t[e], s = this.#e(i) ? i.__staleWhileFetching : i;
|
|
4641
4645
|
if (s === void 0) return;
|
|
4642
4646
|
let n = { value: s };
|
|
4643
|
-
if (this.#d && this.#
|
|
4644
|
-
let
|
|
4645
|
-
if (
|
|
4647
|
+
if (this.#d && this.#F) {
|
|
4648
|
+
let r = this.#d[e], h = this.#F[e];
|
|
4649
|
+
if (r && h) n.ttl = r - (this.#w.now() - h), n.start = Date.now();
|
|
4646
4650
|
}
|
|
4647
4651
|
return this.#y && (n.size = this.#y[e]), n;
|
|
4648
4652
|
}
|
|
4649
4653
|
dump() {
|
|
4650
4654
|
let t = [];
|
|
4651
|
-
for (let e of this.#
|
|
4655
|
+
for (let e of this.#A({ allowStale: !0 })) {
|
|
4652
4656
|
let i = this.#i[e], s = this.#t[e], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
4653
4657
|
if (n === void 0 || i === void 0) continue;
|
|
4654
|
-
let
|
|
4655
|
-
if (this.#d && this.#
|
|
4656
|
-
|
|
4657
|
-
let h = this.#
|
|
4658
|
-
|
|
4658
|
+
let r = { value: n };
|
|
4659
|
+
if (this.#d && this.#F) {
|
|
4660
|
+
r.ttl = this.#d[e];
|
|
4661
|
+
let h = this.#w.now() - this.#F[e];
|
|
4662
|
+
r.start = Math.floor(Date.now() - h);
|
|
4659
4663
|
}
|
|
4660
|
-
this.#y && (
|
|
4664
|
+
this.#y && (r.size = this.#y[e]), t.unshift([i, r]);
|
|
4661
4665
|
}
|
|
4662
4666
|
return t;
|
|
4663
4667
|
}
|
|
@@ -4666,53 +4670,60 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4666
4670
|
for (let [e, i] of t) {
|
|
4667
4671
|
if (i.start) {
|
|
4668
4672
|
let s = Date.now() - i.start;
|
|
4669
|
-
i.start = this.#
|
|
4673
|
+
i.start = this.#w.now() - s;
|
|
4670
4674
|
}
|
|
4671
|
-
this
|
|
4675
|
+
this.#O(e, i.value, i);
|
|
4672
4676
|
}
|
|
4673
4677
|
}
|
|
4674
4678
|
set(t, e, i = {}) {
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4679
|
+
let { status: s = g.metrics.hasSubscribers ? {} : void 0 } = i;
|
|
4680
|
+
i.status = s, s && (s.op = "set", s.key = t, e !== void 0 && (s.value = e), s.cache = this);
|
|
4681
|
+
let n = this.#O(t, e, i);
|
|
4682
|
+
return s && g.metrics.hasSubscribers && g.metrics.publish(s), n;
|
|
4683
|
+
}
|
|
4684
|
+
#O(t, e, i, s) {
|
|
4685
|
+
let { ttl: n = this.ttl, start: r, noDisposeOnSet: h = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: o } = i, d = this.#e(e);
|
|
4686
|
+
if (e === void 0) return o && (o.set = "deleted"), this.delete(t), this;
|
|
4687
|
+
let { noUpdateTTL: _ = this.noUpdateTTL } = i;
|
|
4688
|
+
o && !d && (o.value = e);
|
|
4689
|
+
let y = this.#N(t, e, i.size || 0, a, o);
|
|
4690
|
+
if (this.maxEntrySize && y > this.maxEntrySize) return this.#v(t, "set"), o && (o.set = "miss", o.maxEntrySizeExceeded = !0), this;
|
|
4691
|
+
let u = this.#n === 0 ? void 0 : this.#s.get(t);
|
|
4692
|
+
if (u === void 0) u = this.#n === 0 ? this.#h : this.#_.length !== 0 ? this.#_.pop() : this.#n === this.#o ? this.#P(!1) : this.#n, this.#i[u] = t, this.#t[u] = e, this.#s.set(t, u), this.#l[this.#h] = u, this.#u[u] = this.#h, this.#h = u, this.#n++, this.#I(u, y, o), o && (o.set = "add"), _ = !1, this.#D && !d && this.#W?.(e, t, "add");
|
|
4680
4693
|
else {
|
|
4681
|
-
this.#
|
|
4682
|
-
let
|
|
4683
|
-
if (e !==
|
|
4684
|
-
if (
|
|
4685
|
-
|
|
4686
|
-
let { __staleWhileFetching:
|
|
4687
|
-
|
|
4688
|
-
|
|
4694
|
+
this.#L(u);
|
|
4695
|
+
let p = this.#t[u];
|
|
4696
|
+
if (e !== p) {
|
|
4697
|
+
if (!h) if (this.#e(p)) {
|
|
4698
|
+
p !== s && p.__abortController.abort(/* @__PURE__ */ new Error("replaced"));
|
|
4699
|
+
let { __staleWhileFetching: f } = p;
|
|
4700
|
+
f !== void 0 && f !== e && (this.#T && this.#m?.(f, t, "set"), this.#f && this.#r?.push([
|
|
4701
|
+
f,
|
|
4689
4702
|
t,
|
|
4690
4703
|
"set"
|
|
4691
4704
|
]));
|
|
4692
|
-
} else
|
|
4693
|
-
|
|
4705
|
+
} else this.#T && this.#m?.(p, t, "set"), this.#f && this.#r?.push([
|
|
4706
|
+
p,
|
|
4694
4707
|
t,
|
|
4695
4708
|
"set"
|
|
4696
|
-
])
|
|
4697
|
-
if (this.#
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
g !== void 0 && (r.oldValue = g);
|
|
4709
|
+
]);
|
|
4710
|
+
if (this.#C(u), this.#I(u, y, o), this.#t[u] = e, !d) {
|
|
4711
|
+
let f = p && this.#e(p) ? p.__staleWhileFetching : p, b = f === void 0 ? "add" : e !== f ? "replace" : "update";
|
|
4712
|
+
o && (o.set = b, f !== void 0 && (o.oldValue = f)), this.#D && this.onInsert?.(e, t, b);
|
|
4701
4713
|
}
|
|
4702
|
-
} else
|
|
4703
|
-
this.#I && this.onInsert?.(e, t, e === d ? "update" : "replace");
|
|
4714
|
+
} else d || (o && (o.set = "update"), this.#D && this.onInsert?.(e, t, "update"));
|
|
4704
4715
|
}
|
|
4705
|
-
if (
|
|
4706
|
-
let
|
|
4707
|
-
for (;
|
|
4716
|
+
if (n !== 0 && !this.#d && this.#k(), this.#d && (_ || this.#H(u, n, r), o && this.#E(o, u)), !h && this.#f && this.#r) {
|
|
4717
|
+
let p = this.#r, f;
|
|
4718
|
+
for (; f = p?.shift();) this.#S?.(...f);
|
|
4708
4719
|
}
|
|
4709
4720
|
return this;
|
|
4710
4721
|
}
|
|
4711
4722
|
pop() {
|
|
4712
4723
|
try {
|
|
4713
4724
|
for (; this.#n;) {
|
|
4714
|
-
let t = this.#t[this.#
|
|
4715
|
-
if (this.#
|
|
4725
|
+
let t = this.#t[this.#a];
|
|
4726
|
+
if (this.#P(!0), this.#e(t)) {
|
|
4716
4727
|
if (t.__staleWhileFetching) return t.__staleWhileFetching;
|
|
4717
4728
|
} else if (t !== void 0) return t;
|
|
4718
4729
|
}
|
|
@@ -4723,163 +4734,214 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4723
4734
|
}
|
|
4724
4735
|
}
|
|
4725
4736
|
}
|
|
4726
|
-
#
|
|
4727
|
-
let e = this.#
|
|
4728
|
-
|
|
4729
|
-
|
|
4737
|
+
#P(t) {
|
|
4738
|
+
let e = this.#a, i = this.#i[e], s = this.#t[e], n = this.#e(s);
|
|
4739
|
+
n && s.__abortController.abort(/* @__PURE__ */ new Error("evicted"));
|
|
4740
|
+
let r = n ? s.__staleWhileFetching : s;
|
|
4741
|
+
return (this.#T || this.#f) && r !== void 0 && (this.#T && this.#m?.(r, i, "evict"), this.#f && this.#r?.push([
|
|
4742
|
+
r,
|
|
4730
4743
|
i,
|
|
4731
4744
|
"evict"
|
|
4732
|
-
])), this.#
|
|
4745
|
+
])), this.#C(e), this.#g?.[e] && (clearTimeout(this.#g[e]), this.#g[e] = void 0), t && (this.#i[e] = void 0, this.#t[e] = void 0, this.#_.push(e)), this.#n === 1 ? (this.#a = this.#h = 0, this.#_.length = 0) : this.#a = this.#l[e], this.#s.delete(i), this.#n--, e;
|
|
4733
4746
|
}
|
|
4734
4747
|
has(t, e = {}) {
|
|
4748
|
+
let { status: i = g.metrics.hasSubscribers ? {} : void 0 } = e;
|
|
4749
|
+
e.status = i, i && (i.op = "has", i.key = t, i.cache = this);
|
|
4750
|
+
let s = this.#Y(t, e);
|
|
4751
|
+
return g.metrics.hasSubscribers && g.metrics.publish(i), s;
|
|
4752
|
+
}
|
|
4753
|
+
#Y(t, e = {}) {
|
|
4735
4754
|
let { updateAgeOnHas: i = this.updateAgeOnHas, status: s } = e, n = this.#s.get(t);
|
|
4736
4755
|
if (n !== void 0) {
|
|
4737
|
-
let
|
|
4738
|
-
if (this.#e(
|
|
4739
|
-
if (this.#p(n)) s && (s.has = "stale", this.#
|
|
4740
|
-
else return i && this.#R(n), s && (s.has = "hit", this.#
|
|
4756
|
+
let r = this.#t[n];
|
|
4757
|
+
if (this.#e(r) && r.__staleWhileFetching === void 0) return !1;
|
|
4758
|
+
if (this.#p(n)) s && (s.has = "stale", this.#E(s, n));
|
|
4759
|
+
else return i && this.#R(n), s && (s.has = "hit", this.#E(s, n)), !0;
|
|
4741
4760
|
} else s && (s.has = "miss");
|
|
4742
4761
|
return !1;
|
|
4743
4762
|
}
|
|
4744
4763
|
peek(t, e = {}) {
|
|
4745
|
-
let {
|
|
4746
|
-
|
|
4747
|
-
let
|
|
4748
|
-
return
|
|
4764
|
+
let { status: i = C() ? {} : void 0 } = e;
|
|
4765
|
+
i && (i.op = "peek", i.key = t, i.cache = this), e.status = i;
|
|
4766
|
+
let s = this.#J(t, e);
|
|
4767
|
+
return g.metrics.hasSubscribers && g.metrics.publish(i), s;
|
|
4768
|
+
}
|
|
4769
|
+
#J(t, e) {
|
|
4770
|
+
let { status: i, allowStale: s = this.allowStale } = e, n = this.#s.get(t);
|
|
4771
|
+
if (n === void 0 || !s && this.#p(n)) {
|
|
4772
|
+
i && (i.peek = n === void 0 ? "miss" : "stale");
|
|
4773
|
+
return;
|
|
4774
|
+
}
|
|
4775
|
+
let r = this.#t[n], h = this.#e(r) ? r.__staleWhileFetching : r;
|
|
4776
|
+
return i && (h !== void 0 ? (i.peek = "hit", i.value = h) : i.peek = "miss"), h;
|
|
4749
4777
|
}
|
|
4750
|
-
#
|
|
4778
|
+
#G(t, e, i, s) {
|
|
4751
4779
|
let n = e === void 0 ? void 0 : this.#t[e];
|
|
4752
4780
|
if (this.#e(n)) return n;
|
|
4753
|
-
let
|
|
4754
|
-
h?.addEventListener("abort", () =>
|
|
4755
|
-
let
|
|
4756
|
-
signal:
|
|
4781
|
+
let r = new AbortController(), { signal: h } = i;
|
|
4782
|
+
h?.addEventListener("abort", () => r.abort(h.reason), { signal: r.signal });
|
|
4783
|
+
let a = {
|
|
4784
|
+
signal: r.signal,
|
|
4757
4785
|
options: i,
|
|
4758
4786
|
context: s
|
|
4759
|
-
},
|
|
4760
|
-
let { aborted: l } =
|
|
4761
|
-
if (i.status && (l && !
|
|
4762
|
-
let
|
|
4763
|
-
return (
|
|
4764
|
-
},
|
|
4765
|
-
let { aborted: l } =
|
|
4766
|
-
if (this.#t[e] ===
|
|
4767
|
-
if (
|
|
4768
|
-
},
|
|
4769
|
-
let l = this.#
|
|
4770
|
-
|
|
4771
|
-
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (
|
|
4772
|
-
});
|
|
4787
|
+
}, o = (f, b = !1) => {
|
|
4788
|
+
let { aborted: l } = r.signal, S = i.ignoreFetchAbort && f !== void 0, F = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && f !== void 0);
|
|
4789
|
+
if (i.status && (l && !b ? (i.status.fetchAborted = !0, i.status.fetchError = r.signal.reason, S && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), l && !S && !b) return _(r.signal.reason, F);
|
|
4790
|
+
let w = u, m = this.#t[e];
|
|
4791
|
+
return (m === u || m === void 0 && S && b) && (f === void 0 ? w.__staleWhileFetching !== void 0 ? this.#t[e] = w.__staleWhileFetching : this.#v(t, "fetch") : (i.status && (i.status.fetchUpdated = !0), this.#O(t, f, a.options, w))), f;
|
|
4792
|
+
}, d = (f) => (i.status && (i.status.fetchRejected = !0, i.status.fetchError = f), _(f, !1)), _ = (f, b) => {
|
|
4793
|
+
let { aborted: l } = r.signal, S = l && i.allowStaleOnFetchAbort, F = S || i.allowStaleOnFetchRejection, w = F || i.noDeleteOnFetchRejection, m = u;
|
|
4794
|
+
if (this.#t[e] === u && (!w || !b && m.__staleWhileFetching === void 0 ? this.#v(t, "fetch") : S || (this.#t[e] = m.__staleWhileFetching)), F) return i.status && m.__staleWhileFetching !== void 0 && (i.status.returnedStale = !0), m.__staleWhileFetching;
|
|
4795
|
+
if (m.__returned === m) throw f;
|
|
4796
|
+
}, y = (f, b) => {
|
|
4797
|
+
let l = this.#M?.(t, n, a);
|
|
4798
|
+
r.signal.addEventListener("abort", () => {
|
|
4799
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (f(void 0), i.allowStaleOnFetchAbort && (f = (S) => o(S, !0)));
|
|
4800
|
+
}), l && l instanceof Promise ? l.then((S) => f(S === void 0 ? void 0 : S), b) : l !== void 0 && f(l);
|
|
4773
4801
|
};
|
|
4774
4802
|
i.status && (i.status.fetchDispatched = !0);
|
|
4775
|
-
let
|
|
4776
|
-
__abortController:
|
|
4803
|
+
let u = new Promise(y).then(o, d), p = Object.assign(u, {
|
|
4804
|
+
__abortController: r,
|
|
4777
4805
|
__staleWhileFetching: n,
|
|
4778
4806
|
__returned: void 0
|
|
4779
4807
|
});
|
|
4780
|
-
return e === void 0 ? (this
|
|
4781
|
-
...
|
|
4808
|
+
return e === void 0 ? (this.#O(t, p, {
|
|
4809
|
+
...a.options,
|
|
4782
4810
|
status: void 0
|
|
4783
|
-
}), e = this.#s.get(t)) : this.#t[e] =
|
|
4811
|
+
}), e = this.#s.get(t)) : this.#t[e] = p, p;
|
|
4784
4812
|
}
|
|
4785
4813
|
#e(t) {
|
|
4786
|
-
if (!this.#
|
|
4814
|
+
if (!this.#U) return !1;
|
|
4787
4815
|
let e = t;
|
|
4788
|
-
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof
|
|
4816
|
+
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof AbortController;
|
|
4789
4817
|
}
|
|
4790
|
-
|
|
4791
|
-
let
|
|
4792
|
-
|
|
4818
|
+
fetch(t, e = {}) {
|
|
4819
|
+
let i = g.tracing.hasSubscribers, { status: s = C() ? {} : void 0 } = e;
|
|
4820
|
+
e.status = s, s && e.context && (s.context = e.context);
|
|
4821
|
+
let n = this.#q(t, e);
|
|
4822
|
+
return s && i && (s.trace = !0, g.tracing.tracePromise(() => n, s).catch(() => {})), n;
|
|
4823
|
+
}
|
|
4824
|
+
async #q(t, e = {}) {
|
|
4825
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: r = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: o = this.sizeCalculation, noUpdateTTL: d = this.noUpdateTTL, noDeleteOnFetchRejection: _ = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: y = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: p = this.allowStaleOnFetchAbort, context: f, forceRefresh: b = !1, status: l, signal: S } = e;
|
|
4826
|
+
if (l && (l.op = "fetch", l.key = t, b && (l.forceRefresh = !0), l.cache = this), !this.#U) return l && (l.fetch = "get"), this.#x(t, {
|
|
4793
4827
|
allowStale: i,
|
|
4794
4828
|
updateAgeOnGet: s,
|
|
4795
4829
|
noDeleteOnStaleGet: n,
|
|
4796
4830
|
status: l
|
|
4797
4831
|
});
|
|
4798
|
-
let
|
|
4832
|
+
let F = {
|
|
4799
4833
|
allowStale: i,
|
|
4800
4834
|
updateAgeOnGet: s,
|
|
4801
4835
|
noDeleteOnStaleGet: n,
|
|
4802
|
-
ttl:
|
|
4836
|
+
ttl: r,
|
|
4803
4837
|
noDisposeOnSet: h,
|
|
4804
|
-
size:
|
|
4805
|
-
sizeCalculation:
|
|
4806
|
-
noUpdateTTL:
|
|
4807
|
-
noDeleteOnFetchRejection:
|
|
4808
|
-
allowStaleOnFetchRejection:
|
|
4809
|
-
allowStaleOnFetchAbort:
|
|
4810
|
-
ignoreFetchAbort:
|
|
4838
|
+
size: a,
|
|
4839
|
+
sizeCalculation: o,
|
|
4840
|
+
noUpdateTTL: d,
|
|
4841
|
+
noDeleteOnFetchRejection: _,
|
|
4842
|
+
allowStaleOnFetchRejection: y,
|
|
4843
|
+
allowStaleOnFetchAbort: p,
|
|
4844
|
+
ignoreFetchAbort: u,
|
|
4811
4845
|
status: l,
|
|
4812
4846
|
signal: S
|
|
4813
|
-
},
|
|
4814
|
-
if (
|
|
4847
|
+
}, w = this.#s.get(t);
|
|
4848
|
+
if (w === void 0) {
|
|
4815
4849
|
l && (l.fetch = "miss");
|
|
4816
|
-
let
|
|
4817
|
-
return
|
|
4850
|
+
let m = this.#G(t, w, F, f);
|
|
4851
|
+
return m.__returned = m;
|
|
4818
4852
|
} else {
|
|
4819
|
-
let
|
|
4820
|
-
if (this.#e(
|
|
4821
|
-
let E = i &&
|
|
4822
|
-
return l && (l.fetch = "inflight", E && (l.returnedStale = !0)), E ?
|
|
4853
|
+
let m = this.#t[w];
|
|
4854
|
+
if (this.#e(m)) {
|
|
4855
|
+
let E = i && m.__staleWhileFetching !== void 0;
|
|
4856
|
+
return l && (l.fetch = "inflight", E && (l.returnedStale = !0)), E ? m.__staleWhileFetching : m.__returned = m;
|
|
4823
4857
|
}
|
|
4824
|
-
let
|
|
4825
|
-
if (!
|
|
4826
|
-
let
|
|
4827
|
-
return l && (l.fetch =
|
|
4858
|
+
let A = this.#p(w);
|
|
4859
|
+
if (!b && !A) return l && (l.fetch = "hit"), this.#L(w), s && this.#R(w), l && this.#E(l, w), m;
|
|
4860
|
+
let z = this.#G(t, w, F, f), v = z.__staleWhileFetching !== void 0 && i;
|
|
4861
|
+
return l && (l.fetch = A ? "stale" : "refresh", v && A && (l.returnedStale = !0)), v ? z.__staleWhileFetching : z.__returned = z;
|
|
4828
4862
|
}
|
|
4829
4863
|
}
|
|
4830
|
-
|
|
4831
|
-
let i =
|
|
4864
|
+
forceFetch(t, e = {}) {
|
|
4865
|
+
let i = g.tracing.hasSubscribers, { status: s = C() ? {} : void 0 } = e;
|
|
4866
|
+
e.status = s, s && e.context && (s.context = e.context);
|
|
4867
|
+
let n = this.#K(t, e);
|
|
4868
|
+
return s && i && (s.trace = !0, g.tracing.tracePromise(() => n, s).catch(() => {})), n;
|
|
4869
|
+
}
|
|
4870
|
+
async #K(t, e = {}) {
|
|
4871
|
+
let i = await this.#q(t, e);
|
|
4832
4872
|
if (i === void 0) throw new Error("fetch() returned undefined");
|
|
4833
4873
|
return i;
|
|
4834
4874
|
}
|
|
4835
4875
|
memo(t, e = {}) {
|
|
4836
|
-
let i =
|
|
4876
|
+
let { status: i = g.metrics.hasSubscribers ? {} : void 0 } = e;
|
|
4877
|
+
e.status = i, i && (i.op = "memo", i.key = t, e.context && (i.context = e.context), i.cache = this);
|
|
4878
|
+
let s = this.#Q(t, e);
|
|
4879
|
+
return i && (i.value = s), g.metrics.hasSubscribers && g.metrics.publish(i), s;
|
|
4880
|
+
}
|
|
4881
|
+
#Q(t, e = {}) {
|
|
4882
|
+
let i = this.#j;
|
|
4837
4883
|
if (!i) throw new Error("no memoMethod provided to constructor");
|
|
4838
|
-
let { context: s,
|
|
4839
|
-
|
|
4840
|
-
let
|
|
4841
|
-
|
|
4884
|
+
let { context: s, status: n, forceRefresh: r, ...h } = e;
|
|
4885
|
+
n && r && (n.forceRefresh = !0);
|
|
4886
|
+
let a = this.#x(t, h), o = r || a === void 0;
|
|
4887
|
+
if (n && (n.memo = o ? "miss" : "hit", o || (n.value = a)), !o) return a;
|
|
4888
|
+
let d = i(t, a, {
|
|
4889
|
+
options: h,
|
|
4842
4890
|
context: s
|
|
4843
4891
|
});
|
|
4844
|
-
return this
|
|
4892
|
+
return n && (n.value = d), this.#O(t, d, h), d;
|
|
4845
4893
|
}
|
|
4846
4894
|
get(t, e = {}) {
|
|
4847
|
-
let {
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4895
|
+
let { status: i = g.metrics.hasSubscribers ? {} : void 0 } = e;
|
|
4896
|
+
e.status = i, i && (i.op = "get", i.key = t, i.cache = this);
|
|
4897
|
+
let s = this.#x(t, e);
|
|
4898
|
+
return i && (s !== void 0 && (i.value = s), g.metrics.hasSubscribers && g.metrics.publish(i)), s;
|
|
4899
|
+
}
|
|
4900
|
+
#x(t, e = {}) {
|
|
4901
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: r } = e, h = this.#s.get(t);
|
|
4902
|
+
if (h === void 0) {
|
|
4903
|
+
r && (r.get = "miss");
|
|
4904
|
+
return;
|
|
4905
|
+
}
|
|
4906
|
+
let a = this.#t[h], o = this.#e(a);
|
|
4907
|
+
return r && this.#E(r, h), this.#p(h) ? o ? (r && (r.get = "stale-fetching"), i && a.__staleWhileFetching !== void 0 ? (r && (r.returnedStale = !0), a.__staleWhileFetching) : void 0) : (n || this.#v(t, "expire"), r && (r.get = "stale"), i ? (r && (r.returnedStale = !0), a) : void 0) : (r && (r.get = o ? "fetching" : "hit"), this.#L(h), s && this.#R(h), o ? a.__staleWhileFetching : a);
|
|
4852
4908
|
}
|
|
4853
|
-
#
|
|
4854
|
-
this.#u[e] = t, this.#
|
|
4909
|
+
#B(t, e) {
|
|
4910
|
+
this.#u[e] = t, this.#l[t] = e;
|
|
4855
4911
|
}
|
|
4856
|
-
#
|
|
4857
|
-
t !== this.#h && (t === this.#
|
|
4912
|
+
#L(t) {
|
|
4913
|
+
t !== this.#h && (t === this.#a ? this.#a = this.#l[t] : this.#B(this.#u[t], this.#l[t]), this.#B(this.#h, t), this.#h = t);
|
|
4858
4914
|
}
|
|
4859
4915
|
delete(t) {
|
|
4860
|
-
return this.#
|
|
4861
|
-
}
|
|
4862
|
-
#
|
|
4916
|
+
return this.#v(t, "delete");
|
|
4917
|
+
}
|
|
4918
|
+
#v(t, e) {
|
|
4919
|
+
g.metrics.hasSubscribers && g.metrics.publish({
|
|
4920
|
+
op: "delete",
|
|
4921
|
+
delete: e,
|
|
4922
|
+
key: t,
|
|
4923
|
+
cache: this
|
|
4924
|
+
});
|
|
4863
4925
|
let i = !1;
|
|
4864
4926
|
if (this.#n !== 0) {
|
|
4865
4927
|
let s = this.#s.get(t);
|
|
4866
|
-
if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = void 0), i = !0, this.#n === 1) this
|
|
4928
|
+
if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = void 0), i = !0, this.#n === 1) this.#$(e);
|
|
4867
4929
|
else {
|
|
4868
|
-
this.#
|
|
4930
|
+
this.#C(s);
|
|
4869
4931
|
let n = this.#t[s];
|
|
4870
|
-
if (this.#e(n) ? n.__abortController.abort(/* @__PURE__ */ new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#
|
|
4932
|
+
if (this.#e(n) ? n.__abortController.abort(/* @__PURE__ */ new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#m?.(n, t, e), this.#f && this.#r?.push([
|
|
4871
4933
|
n,
|
|
4872
4934
|
t,
|
|
4873
4935
|
e
|
|
4874
4936
|
])), this.#s.delete(t), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#u[s];
|
|
4875
|
-
else if (s === this.#
|
|
4937
|
+
else if (s === this.#a) this.#a = this.#l[s];
|
|
4876
4938
|
else {
|
|
4877
|
-
let
|
|
4878
|
-
this.#
|
|
4879
|
-
let h = this.#
|
|
4939
|
+
let r = this.#u[s];
|
|
4940
|
+
this.#l[r] = this.#l[s];
|
|
4941
|
+
let h = this.#l[s];
|
|
4880
4942
|
this.#u[h] = this.#u[s];
|
|
4881
4943
|
}
|
|
4882
|
-
this.#n--, this.#
|
|
4944
|
+
this.#n--, this.#_.push(s);
|
|
4883
4945
|
}
|
|
4884
4946
|
}
|
|
4885
4947
|
if (this.#f && this.#r?.length) {
|
|
@@ -4889,27 +4951,27 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4889
4951
|
return i;
|
|
4890
4952
|
}
|
|
4891
4953
|
clear() {
|
|
4892
|
-
return this
|
|
4954
|
+
return this.#$("delete");
|
|
4893
4955
|
}
|
|
4894
|
-
|
|
4895
|
-
for (let e of this.#
|
|
4956
|
+
#$(t) {
|
|
4957
|
+
for (let e of this.#z({ allowStale: !0 })) {
|
|
4896
4958
|
let i = this.#t[e];
|
|
4897
4959
|
if (this.#e(i)) i.__abortController.abort(/* @__PURE__ */ new Error("deleted"));
|
|
4898
4960
|
else {
|
|
4899
4961
|
let s = this.#i[e];
|
|
4900
|
-
this.#T && this.#
|
|
4962
|
+
this.#T && this.#m?.(i, s, t), this.#f && this.#r?.push([
|
|
4901
4963
|
i,
|
|
4902
4964
|
s,
|
|
4903
4965
|
t
|
|
4904
4966
|
]);
|
|
4905
4967
|
}
|
|
4906
4968
|
}
|
|
4907
|
-
if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#
|
|
4908
|
-
this.#d.fill(0), this.#
|
|
4969
|
+
if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#F) {
|
|
4970
|
+
this.#d.fill(0), this.#F.fill(0);
|
|
4909
4971
|
for (let e of this.#g ?? []) e !== void 0 && clearTimeout(e);
|
|
4910
4972
|
this.#g?.fill(void 0);
|
|
4911
4973
|
}
|
|
4912
|
-
if (this.#y && this.#y.fill(0), this.#
|
|
4974
|
+
if (this.#y && this.#y.fill(0), this.#a = 0, this.#h = 0, this.#_.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
|
|
4913
4975
|
let e = this.#r, i;
|
|
4914
4976
|
for (; i = e?.shift();) this.#S?.(...i);
|
|
4915
4977
|
}
|
|
@@ -7334,6 +7396,6 @@ function assertNodeVersion(nodeVersion = process.versions.node) {
|
|
|
7334
7396
|
if (lt(nodeVersion, "24.0.0")) throw new NodeVersionError(nodeVersion, MINIMUM_NODE_VERSION);
|
|
7335
7397
|
}
|
|
7336
7398
|
//#endregion
|
|
7337
|
-
export { AGENTS, ANALYTICS_ENGINE_CORE_PACKAGE, BOILERPLATE_ALLOWED_BUILDS, BOILERPLATE_DEPENDENCY_OVERRIDES, DEFAULT_CONFIG, DEFAULT_CONNECT_OUTDIR, DEFAULT_CONNECT_PREVIEW_PORT, DEFAULT_CONNECT_STUDIO_PORT, DEFAULT_EXPIRY_DAYS, DEFAULT_EXPIRY_SECONDS, DEFAULT_REGISTRY_LOGIN_EXPIRY, DEFAULT_REGISTRY_URL, DEFAULT_RENOWN_URL, DEFAULT_SWITCHBOARD_PORT, DEFAULT_TIMEOUT, DEFAULT_VETRA_CONNECT_PORT, DEFAULT_VETRA_DRIVE_ID, DRIVES_PRESERVE_STRATEGIES, FEATURE_DEPENDENCIES, GRAPHQL_PACKAGE, GRAPHQL_TAG_PACKAGE, HOME_DIR, LEGACY_LINT_FORMAT_DEPENDENCIES, LEGACY_LINT_FORMAT_FILES, LOG_LEVELS, MINIMUM_NODE_VERSION, NodeVersionError, PEER_EXTERNAL_DEPENDENCIES, PH_BIN, PH_GLOBAL_DIR_NAME, PH_GLOBAL_PROJECT_NAME, PIECES_FRAMEWORK_PACKAGE, POWERHOUSE_CONFIG_FILE, POWERHOUSE_GLOBAL_DIR, PROJECT_PORT_BAND_SIZE, PROJECT_PORT_BAND_STUDIO, PROJECT_PORT_BAND_SWITCHBOARD, PROJECT_PORT_BAND_VETRA_CONNECT, REACTOR_API_PACKAGE, SECONDS_IN_DAY, SERVICE_ACTIONS, SOURCE_CONFIG_SCHEMA_ID, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, VERSIONED_PEER_DEPENDENCIES, accessTokenArgs, assertNodeVersion, buildArgs, buildPnpmLink, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, defaultManifest, directoryExists, directoryExistsSync, disableLocalPackages, drivesPreserveStrategy, externalDependencies, externalDevDependencies, fetchNpmVersionFromRegistryForTag, fetchPackageVersionFromNpmRegistry, fileExists, fileExistsSync, force, generateArgs, getConfig, getGlobalPowerhouseProjectDirPath, getLocalPowerhouseProjectDirPath, getPackageManagerAtPowerhouseProjectDirPath, getPackageManagerCommand, getPackageNameFromPackageJson, getPackageVersionFromPackageJson, getPhCliVersionInfo, getPhCmdVersionInfo, getPowerhouseProjectInfo, getPowerhouseProjectInstallCommand, getPowerhouseProjectUninstallCommand, getTagFromVersion, getTelemetryStatus, handleMutuallyExclusiveOptions, https, httpsCertFile, httpsKeyFile, initArgs, initCliTelemetry, injectPnpmAllowBuilds, inspectArgs, installArgs, isDirectory, isFile, isPowerhouseProject, listArgs, localPackage, logLevel, logVersionUpdate, loginArgs, lowestVersion, makeDependenciesWithVersions, makeVersionedDependencies, makeVersionedDependenciesMap, migrateArgs, packageJsonExports, packageManagerArgs, packageScripts, packages, parsePackageManager, parsePackageVersion, parseTag, phCliCommandNames, phCliHelpCommands, publishArgs, registryLoginArgs, renownNamespace, renownSwitchboardUrl, resolveConnectPortDefault, resolveSwitchboardPortDefault, resolveTelemetryConsent, runCmd, runUseLocal, serviceArgs, setTelemetryConsent, sourceConfigSchema, spawnAsync, switchboardArgs, uninstallArgs, unpublishArgs, vetraArgs, vetraSwitchboardArgs, writeFileEnsuringDir };
|
|
7399
|
+
export { AGENTS, ANALYTICS_ENGINE_CORE_PACKAGE, BOILERPLATE_ALLOWED_BUILDS, BOILERPLATE_DEPENDENCY_OVERRIDES, DEFAULT_CONFIG, DEFAULT_CONNECT_OUTDIR, DEFAULT_CONNECT_PREVIEW_PORT, DEFAULT_CONNECT_STUDIO_PORT, DEFAULT_DRIVE_ICON, DEFAULT_EXPIRY_DAYS, DEFAULT_EXPIRY_SECONDS, DEFAULT_REGISTRY_LOGIN_EXPIRY, DEFAULT_REGISTRY_URL, DEFAULT_RENOWN_URL, DEFAULT_SWITCHBOARD_PORT, DEFAULT_TIMEOUT, DEFAULT_VETRA_CONNECT_PORT, DEFAULT_VETRA_DRIVE_ID, DRIVES_PRESERVE_STRATEGIES, FEATURE_DEPENDENCIES, GRAPHQL_PACKAGE, GRAPHQL_TAG_PACKAGE, HOME_DIR, LEGACY_LINT_FORMAT_DEPENDENCIES, LEGACY_LINT_FORMAT_FILES, LOG_LEVELS, MINIMUM_NODE_VERSION, NodeVersionError, PEER_EXTERNAL_DEPENDENCIES, PH_BIN, PH_GLOBAL_DIR_NAME, PH_GLOBAL_PROJECT_NAME, PIECES_FRAMEWORK_PACKAGE, POWERHOUSE_CONFIG_FILE, POWERHOUSE_GLOBAL_DIR, PROJECT_PORT_BAND_SIZE, PROJECT_PORT_BAND_STUDIO, PROJECT_PORT_BAND_SWITCHBOARD, PROJECT_PORT_BAND_VETRA_CONNECT, REACTOR_API_PACKAGE, SECONDS_IN_DAY, SERVICE_ACTIONS, SOURCE_CONFIG_SCHEMA_ID, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, VERSIONED_PEER_DEPENDENCIES, accessTokenArgs, assertNodeVersion, buildArgs, buildPnpmLink, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, defaultManifest, directoryExists, directoryExistsSync, disableLocalPackages, drivesPreserveStrategy, externalDependencies, externalDevDependencies, fetchNpmVersionFromRegistryForTag, fetchPackageVersionFromNpmRegistry, fileExists, fileExistsSync, force, generateArgs, getConfig, getGlobalPowerhouseProjectDirPath, getLocalPowerhouseProjectDirPath, getPackageManagerAtPowerhouseProjectDirPath, getPackageManagerCommand, getPackageNameFromPackageJson, getPackageVersionFromPackageJson, getPhCliVersionInfo, getPhCmdVersionInfo, getPowerhouseProjectInfo, getPowerhouseProjectInstallCommand, getPowerhouseProjectUninstallCommand, getTagFromVersion, getTelemetryStatus, handleMutuallyExclusiveOptions, https, httpsCertFile, httpsKeyFile, initArgs, initCliTelemetry, injectPnpmAllowBuilds, inspectArgs, installArgs, isDirectory, isFile, isPowerhouseProject, listArgs, localPackage, logLevel, logVersionUpdate, loginArgs, lowestVersion, makeDependenciesWithVersions, makeVersionedDependencies, makeVersionedDependenciesMap, migrateArgs, packageJsonExports, packageManagerArgs, packageScripts, packages, parsePackageManager, parsePackageVersion, parseTag, phCliCommandNames, phCliHelpCommands, publishArgs, registryLoginArgs, renownNamespace, renownSwitchboardUrl, resolveConnectPortDefault, resolveSwitchboardPortDefault, resolveTelemetryConsent, runCmd, runUseLocal, serviceArgs, setTelemetryConsent, sourceConfigSchema, spawnAsync, switchboardArgs, uninstallArgs, unpublishArgs, vetraArgs, vetraSwitchboardArgs, writeFileEnsuringDir };
|
|
7338
7400
|
|
|
7339
7401
|
//# sourceMappingURL=index.mjs.map
|