@powerhousedao/shared 6.2.1-dev.1 → 6.2.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/dist/clis/args/index.d.mts +1 -1
- package/dist/clis/args/{service-51afW_Hz.d.mts → service-C88bN_g_.d.mts} +2 -2
- package/dist/clis/args/{service-51afW_Hz.d.mts.map → service-C88bN_g_.d.mts.map} +1 -1
- package/dist/clis/args/service.d.mts +1 -1
- package/dist/clis/build-config.d.mts +1 -1
- package/dist/clis/build-config.d.mts.map +1 -1
- package/dist/clis/constants.d.mts +0 -5
- package/dist/clis/constants.d.mts.map +1 -1
- package/dist/clis/index.d.mts +9 -32
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +399 -56
- package/dist/clis/index.mjs.map +1 -1
- package/dist/{config-loader-CBllPkXN.js → config-loader-CMGKMsO7.js} +1 -5
- package/dist/config-loader-CMGKMsO7.js.map +1 -0
- package/dist/connect/config-loader.d.ts +1 -1
- package/dist/connect/config-loader.js +1 -1
- package/dist/connect/index.d.ts +1 -19
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +1 -19
- package/dist/connect/index.js.map +1 -1
- package/dist/document-drive/index.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/registry/index.d.ts +1 -1
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/manifest-slim.d.ts.map +1 -1
- package/dist/{types-CyblmySc.d.ts → types-92mt80n-.d.ts} +2 -7
- package/dist/{types-CyblmySc.d.ts.map → types-92mt80n-.d.ts.map} +1 -1
- package/package.json +1 -1
- package/dist/config-loader-CBllPkXN.js.map +0 -1
package/dist/clis/index.mjs
CHANGED
|
@@ -2837,13 +2837,13 @@ function parseJson(string, reviver, fileName) {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
}
|
|
2839
2839
|
//#endregion
|
|
2840
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
2841
|
-
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2840
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/debug.js
|
|
2841
|
+
var require_debug$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2842
2842
|
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
2843
2843
|
}));
|
|
2844
2844
|
//#endregion
|
|
2845
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
2846
|
-
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2845
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/constants.js
|
|
2846
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2847
2847
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
2848
2848
|
const MAX_LENGTH = 256;
|
|
2849
2849
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
@@ -2867,10 +2867,10 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2867
2867
|
};
|
|
2868
2868
|
}));
|
|
2869
2869
|
//#endregion
|
|
2870
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
2871
|
-
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2872
|
-
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
2873
|
-
const debug = require_debug();
|
|
2870
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/re.js
|
|
2871
|
+
var require_re$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2872
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants$1();
|
|
2873
|
+
const debug = require_debug$1();
|
|
2874
2874
|
exports = module.exports = {};
|
|
2875
2875
|
const re = exports.re = [];
|
|
2876
2876
|
const safeRe = exports.safeRe = [];
|
|
@@ -2946,8 +2946,8 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2946
2946
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
2947
2947
|
}));
|
|
2948
2948
|
//#endregion
|
|
2949
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
2950
|
-
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2949
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/parse-options.js
|
|
2950
|
+
var require_parse_options$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2951
2951
|
const looseOption = Object.freeze({ loose: true });
|
|
2952
2952
|
const emptyOpts = Object.freeze({});
|
|
2953
2953
|
const parseOptions = (options) => {
|
|
@@ -2958,8 +2958,8 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
2958
2958
|
module.exports = parseOptions;
|
|
2959
2959
|
}));
|
|
2960
2960
|
//#endregion
|
|
2961
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
2962
|
-
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2961
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/identifiers.js
|
|
2962
|
+
var require_identifiers$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2963
2963
|
const numeric = /^[0-9]+$/;
|
|
2964
2964
|
const compareIdentifiers = (a, b) => {
|
|
2965
2965
|
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
@@ -2978,13 +2978,19 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2978
2978
|
};
|
|
2979
2979
|
}));
|
|
2980
2980
|
//#endregion
|
|
2981
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
2982
|
-
var require_semver$
|
|
2983
|
-
const debug = require_debug();
|
|
2984
|
-
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
2985
|
-
const { safeRe: re, t } = require_re();
|
|
2986
|
-
const parseOptions = require_parse_options();
|
|
2987
|
-
const { compareIdentifiers } = require_identifiers();
|
|
2981
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/semver.js
|
|
2982
|
+
var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2983
|
+
const debug = require_debug$1();
|
|
2984
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants$1();
|
|
2985
|
+
const { safeRe: re, t } = require_re$1();
|
|
2986
|
+
const parseOptions = require_parse_options$1();
|
|
2987
|
+
const { compareIdentifiers } = require_identifiers$1();
|
|
2988
|
+
const isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
2989
|
+
const identifiers = identifier.split(".");
|
|
2990
|
+
if (identifiers.length > prerelease.length) return false;
|
|
2991
|
+
for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
|
|
2992
|
+
return true;
|
|
2993
|
+
};
|
|
2988
2994
|
module.exports = class SemVer {
|
|
2989
2995
|
constructor(version, options) {
|
|
2990
2996
|
options = parseOptions(options);
|
|
@@ -3141,8 +3147,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3141
3147
|
if (identifier) {
|
|
3142
3148
|
let prerelease = [identifier, base];
|
|
3143
3149
|
if (identifierBase === false) prerelease = [identifier];
|
|
3144
|
-
if (
|
|
3145
|
-
|
|
3150
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
3151
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
3152
|
+
if (isNaN(prereleaseBase)) this.prerelease = prerelease;
|
|
3146
3153
|
} else this.prerelease = prerelease;
|
|
3147
3154
|
}
|
|
3148
3155
|
break;
|
|
@@ -3156,9 +3163,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3156
3163
|
};
|
|
3157
3164
|
}));
|
|
3158
3165
|
//#endregion
|
|
3159
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
3160
|
-
var require_parse$
|
|
3161
|
-
const SemVer = require_semver$
|
|
3166
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/parse.js
|
|
3167
|
+
var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3168
|
+
const SemVer = require_semver$2();
|
|
3162
3169
|
const parse = (version, options, throwErrors = false) => {
|
|
3163
3170
|
if (version instanceof SemVer) return version;
|
|
3164
3171
|
try {
|
|
@@ -3171,9 +3178,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3171
3178
|
module.exports = parse;
|
|
3172
3179
|
}));
|
|
3173
3180
|
//#endregion
|
|
3174
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
3175
|
-
var require_valid$
|
|
3176
|
-
const parse = require_parse$
|
|
3181
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/valid.js
|
|
3182
|
+
var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3183
|
+
const parse = require_parse$2();
|
|
3177
3184
|
const valid = (version, options) => {
|
|
3178
3185
|
const v = parse(version, options);
|
|
3179
3186
|
return v ? v.version : null;
|
|
@@ -3181,9 +3188,9 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3181
3188
|
module.exports = valid;
|
|
3182
3189
|
}));
|
|
3183
3190
|
//#endregion
|
|
3184
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
3185
|
-
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3186
|
-
const parse = require_parse$
|
|
3191
|
+
//#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/clean.js
|
|
3192
|
+
var require_clean$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3193
|
+
const parse = require_parse$2();
|
|
3187
3194
|
const clean = (version, options) => {
|
|
3188
3195
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
3189
3196
|
return s ? s.version : null;
|
|
@@ -4090,7 +4097,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4090
4097
|
}));
|
|
4091
4098
|
//#endregion
|
|
4092
4099
|
//#region ../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js
|
|
4093
|
-
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4100
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4094
4101
|
module.exports = function(tokens) {
|
|
4095
4102
|
var index = 0;
|
|
4096
4103
|
function hasMore() {
|
|
@@ -4181,7 +4188,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4181
4188
|
//#region ../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js
|
|
4182
4189
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4183
4190
|
var scan = require_scan();
|
|
4184
|
-
var parse = require_parse();
|
|
4191
|
+
var parse = require_parse$1();
|
|
4185
4192
|
module.exports = function(source) {
|
|
4186
4193
|
return parse(scan(source));
|
|
4187
4194
|
};
|
|
@@ -5620,8 +5627,8 @@ var require_typos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5620
5627
|
//#region ../../node_modules/.pnpm/normalize-package-data@8.0.0/node_modules/normalize-package-data/lib/fixer.js
|
|
5621
5628
|
var require_fixer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5622
5629
|
var { URL: URL$1 } = __require("node:url");
|
|
5623
|
-
var isValidSemver = require_valid$
|
|
5624
|
-
var cleanSemver = require_clean();
|
|
5630
|
+
var isValidSemver = require_valid$2();
|
|
5631
|
+
var cleanSemver = require_clean$1();
|
|
5625
5632
|
var validateLicense = require_validate_npm_package_license();
|
|
5626
5633
|
var hostedGitInfo = require_lib();
|
|
5627
5634
|
var { isBuiltin } = __require("node:module");
|
|
@@ -6053,6 +6060,360 @@ async function readPackage({ cwd, normalize = true } = {}) {
|
|
|
6053
6060
|
return _readPackage(await fsPromises.readFile(getPackagePath(cwd), "utf8"), normalize);
|
|
6054
6061
|
}
|
|
6055
6062
|
//#endregion
|
|
6063
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
6064
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6065
|
+
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
6066
|
+
const MAX_LENGTH = 256;
|
|
6067
|
+
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
6068
|
+
module.exports = {
|
|
6069
|
+
MAX_LENGTH,
|
|
6070
|
+
MAX_SAFE_COMPONENT_LENGTH: 16,
|
|
6071
|
+
MAX_SAFE_BUILD_LENGTH: MAX_LENGTH - 6,
|
|
6072
|
+
MAX_SAFE_INTEGER,
|
|
6073
|
+
RELEASE_TYPES: [
|
|
6074
|
+
"major",
|
|
6075
|
+
"premajor",
|
|
6076
|
+
"minor",
|
|
6077
|
+
"preminor",
|
|
6078
|
+
"patch",
|
|
6079
|
+
"prepatch",
|
|
6080
|
+
"prerelease"
|
|
6081
|
+
],
|
|
6082
|
+
SEMVER_SPEC_VERSION,
|
|
6083
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
6084
|
+
FLAG_LOOSE: 2
|
|
6085
|
+
};
|
|
6086
|
+
}));
|
|
6087
|
+
//#endregion
|
|
6088
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
|
|
6089
|
+
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6090
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
6091
|
+
}));
|
|
6092
|
+
//#endregion
|
|
6093
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
|
|
6094
|
+
var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6095
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
6096
|
+
const debug = require_debug();
|
|
6097
|
+
exports = module.exports = {};
|
|
6098
|
+
const re = exports.re = [];
|
|
6099
|
+
const safeRe = exports.safeRe = [];
|
|
6100
|
+
const src = exports.src = [];
|
|
6101
|
+
const safeSrc = exports.safeSrc = [];
|
|
6102
|
+
const t = exports.t = {};
|
|
6103
|
+
let R = 0;
|
|
6104
|
+
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
6105
|
+
const safeRegexReplacements = [
|
|
6106
|
+
["\\s", 1],
|
|
6107
|
+
["\\d", MAX_LENGTH],
|
|
6108
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
6109
|
+
];
|
|
6110
|
+
const makeSafeRegex = (value) => {
|
|
6111
|
+
for (const [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
6112
|
+
return value;
|
|
6113
|
+
};
|
|
6114
|
+
const createToken = (name, value, isGlobal) => {
|
|
6115
|
+
const safe = makeSafeRegex(value);
|
|
6116
|
+
const index = R++;
|
|
6117
|
+
debug(name, index, value);
|
|
6118
|
+
t[name] = index;
|
|
6119
|
+
src[index] = value;
|
|
6120
|
+
safeSrc[index] = safe;
|
|
6121
|
+
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
6122
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
6123
|
+
};
|
|
6124
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
6125
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
6126
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
6127
|
+
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
6128
|
+
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
6129
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
|
6130
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
6131
|
+
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
6132
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
6133
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
6134
|
+
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
6135
|
+
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
6136
|
+
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
6137
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
6138
|
+
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
6139
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
6140
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
6141
|
+
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
6142
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
6143
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
6144
|
+
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
6145
|
+
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
6146
|
+
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
6147
|
+
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
6148
|
+
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
6149
|
+
createToken("COERCERTL", src[t.COERCE], true);
|
|
6150
|
+
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
6151
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
6152
|
+
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
6153
|
+
exports.tildeTrimReplace = "$1~";
|
|
6154
|
+
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
6155
|
+
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
6156
|
+
createToken("LONECARET", "(?:\\^)");
|
|
6157
|
+
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
6158
|
+
exports.caretTrimReplace = "$1^";
|
|
6159
|
+
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
6160
|
+
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
6161
|
+
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
6162
|
+
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
6163
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
6164
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
6165
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
6166
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
6167
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
6168
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
6169
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
6170
|
+
}));
|
|
6171
|
+
//#endregion
|
|
6172
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
6173
|
+
var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6174
|
+
const looseOption = Object.freeze({ loose: true });
|
|
6175
|
+
const emptyOpts = Object.freeze({});
|
|
6176
|
+
const parseOptions = (options) => {
|
|
6177
|
+
if (!options) return emptyOpts;
|
|
6178
|
+
if (typeof options !== "object") return looseOption;
|
|
6179
|
+
return options;
|
|
6180
|
+
};
|
|
6181
|
+
module.exports = parseOptions;
|
|
6182
|
+
}));
|
|
6183
|
+
//#endregion
|
|
6184
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
|
|
6185
|
+
var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6186
|
+
const numeric = /^[0-9]+$/;
|
|
6187
|
+
const compareIdentifiers = (a, b) => {
|
|
6188
|
+
if (typeof a === "number" && typeof b === "number") return a === b ? 0 : a < b ? -1 : 1;
|
|
6189
|
+
const anum = numeric.test(a);
|
|
6190
|
+
const bnum = numeric.test(b);
|
|
6191
|
+
if (anum && bnum) {
|
|
6192
|
+
a = +a;
|
|
6193
|
+
b = +b;
|
|
6194
|
+
}
|
|
6195
|
+
return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
|
6196
|
+
};
|
|
6197
|
+
const rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
|
6198
|
+
module.exports = {
|
|
6199
|
+
compareIdentifiers,
|
|
6200
|
+
rcompareIdentifiers
|
|
6201
|
+
};
|
|
6202
|
+
}));
|
|
6203
|
+
//#endregion
|
|
6204
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
|
|
6205
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6206
|
+
const debug = require_debug();
|
|
6207
|
+
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
6208
|
+
const { safeRe: re, t } = require_re();
|
|
6209
|
+
const parseOptions = require_parse_options();
|
|
6210
|
+
const { compareIdentifiers } = require_identifiers();
|
|
6211
|
+
module.exports = class SemVer {
|
|
6212
|
+
constructor(version, options) {
|
|
6213
|
+
options = parseOptions(options);
|
|
6214
|
+
if (version instanceof SemVer) if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) return version;
|
|
6215
|
+
else version = version.version;
|
|
6216
|
+
else if (typeof version !== "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`);
|
|
6217
|
+
if (version.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
6218
|
+
debug("SemVer", version, options);
|
|
6219
|
+
this.options = options;
|
|
6220
|
+
this.loose = !!options.loose;
|
|
6221
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
6222
|
+
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
|
6223
|
+
if (!m) throw new TypeError(`Invalid Version: ${version}`);
|
|
6224
|
+
this.raw = version;
|
|
6225
|
+
this.major = +m[1];
|
|
6226
|
+
this.minor = +m[2];
|
|
6227
|
+
this.patch = +m[3];
|
|
6228
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
|
6229
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
|
6230
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
|
6231
|
+
if (!m[4]) this.prerelease = [];
|
|
6232
|
+
else this.prerelease = m[4].split(".").map((id) => {
|
|
6233
|
+
if (/^[0-9]+$/.test(id)) {
|
|
6234
|
+
const num = +id;
|
|
6235
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
|
6236
|
+
}
|
|
6237
|
+
return id;
|
|
6238
|
+
});
|
|
6239
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
6240
|
+
this.format();
|
|
6241
|
+
}
|
|
6242
|
+
format() {
|
|
6243
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
6244
|
+
if (this.prerelease.length) this.version += `-${this.prerelease.join(".")}`;
|
|
6245
|
+
return this.version;
|
|
6246
|
+
}
|
|
6247
|
+
toString() {
|
|
6248
|
+
return this.version;
|
|
6249
|
+
}
|
|
6250
|
+
compare(other) {
|
|
6251
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
6252
|
+
if (!(other instanceof SemVer)) {
|
|
6253
|
+
if (typeof other === "string" && other === this.version) return 0;
|
|
6254
|
+
other = new SemVer(other, this.options);
|
|
6255
|
+
}
|
|
6256
|
+
if (other.version === this.version) return 0;
|
|
6257
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
6258
|
+
}
|
|
6259
|
+
compareMain(other) {
|
|
6260
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
6261
|
+
if (this.major < other.major) return -1;
|
|
6262
|
+
if (this.major > other.major) return 1;
|
|
6263
|
+
if (this.minor < other.minor) return -1;
|
|
6264
|
+
if (this.minor > other.minor) return 1;
|
|
6265
|
+
if (this.patch < other.patch) return -1;
|
|
6266
|
+
if (this.patch > other.patch) return 1;
|
|
6267
|
+
return 0;
|
|
6268
|
+
}
|
|
6269
|
+
comparePre(other) {
|
|
6270
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
6271
|
+
if (this.prerelease.length && !other.prerelease.length) return -1;
|
|
6272
|
+
else if (!this.prerelease.length && other.prerelease.length) return 1;
|
|
6273
|
+
else if (!this.prerelease.length && !other.prerelease.length) return 0;
|
|
6274
|
+
let i = 0;
|
|
6275
|
+
do {
|
|
6276
|
+
const a = this.prerelease[i];
|
|
6277
|
+
const b = other.prerelease[i];
|
|
6278
|
+
debug("prerelease compare", i, a, b);
|
|
6279
|
+
if (a === void 0 && b === void 0) return 0;
|
|
6280
|
+
else if (b === void 0) return 1;
|
|
6281
|
+
else if (a === void 0) return -1;
|
|
6282
|
+
else if (a === b) continue;
|
|
6283
|
+
else return compareIdentifiers(a, b);
|
|
6284
|
+
} while (++i);
|
|
6285
|
+
}
|
|
6286
|
+
compareBuild(other) {
|
|
6287
|
+
if (!(other instanceof SemVer)) other = new SemVer(other, this.options);
|
|
6288
|
+
let i = 0;
|
|
6289
|
+
do {
|
|
6290
|
+
const a = this.build[i];
|
|
6291
|
+
const b = other.build[i];
|
|
6292
|
+
debug("build compare", i, a, b);
|
|
6293
|
+
if (a === void 0 && b === void 0) return 0;
|
|
6294
|
+
else if (b === void 0) return 1;
|
|
6295
|
+
else if (a === void 0) return -1;
|
|
6296
|
+
else if (a === b) continue;
|
|
6297
|
+
else return compareIdentifiers(a, b);
|
|
6298
|
+
} while (++i);
|
|
6299
|
+
}
|
|
6300
|
+
inc(release, identifier, identifierBase) {
|
|
6301
|
+
if (release.startsWith("pre")) {
|
|
6302
|
+
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
|
6303
|
+
if (identifier) {
|
|
6304
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
6305
|
+
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
|
6306
|
+
}
|
|
6307
|
+
}
|
|
6308
|
+
switch (release) {
|
|
6309
|
+
case "premajor":
|
|
6310
|
+
this.prerelease.length = 0;
|
|
6311
|
+
this.patch = 0;
|
|
6312
|
+
this.minor = 0;
|
|
6313
|
+
this.major++;
|
|
6314
|
+
this.inc("pre", identifier, identifierBase);
|
|
6315
|
+
break;
|
|
6316
|
+
case "preminor":
|
|
6317
|
+
this.prerelease.length = 0;
|
|
6318
|
+
this.patch = 0;
|
|
6319
|
+
this.minor++;
|
|
6320
|
+
this.inc("pre", identifier, identifierBase);
|
|
6321
|
+
break;
|
|
6322
|
+
case "prepatch":
|
|
6323
|
+
this.prerelease.length = 0;
|
|
6324
|
+
this.inc("patch", identifier, identifierBase);
|
|
6325
|
+
this.inc("pre", identifier, identifierBase);
|
|
6326
|
+
break;
|
|
6327
|
+
case "prerelease":
|
|
6328
|
+
if (this.prerelease.length === 0) this.inc("patch", identifier, identifierBase);
|
|
6329
|
+
this.inc("pre", identifier, identifierBase);
|
|
6330
|
+
break;
|
|
6331
|
+
case "release":
|
|
6332
|
+
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
|
6333
|
+
this.prerelease.length = 0;
|
|
6334
|
+
break;
|
|
6335
|
+
case "major":
|
|
6336
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) this.major++;
|
|
6337
|
+
this.minor = 0;
|
|
6338
|
+
this.patch = 0;
|
|
6339
|
+
this.prerelease = [];
|
|
6340
|
+
break;
|
|
6341
|
+
case "minor":
|
|
6342
|
+
if (this.patch !== 0 || this.prerelease.length === 0) this.minor++;
|
|
6343
|
+
this.patch = 0;
|
|
6344
|
+
this.prerelease = [];
|
|
6345
|
+
break;
|
|
6346
|
+
case "patch":
|
|
6347
|
+
if (this.prerelease.length === 0) this.patch++;
|
|
6348
|
+
this.prerelease = [];
|
|
6349
|
+
break;
|
|
6350
|
+
case "pre": {
|
|
6351
|
+
const base = Number(identifierBase) ? 1 : 0;
|
|
6352
|
+
if (this.prerelease.length === 0) this.prerelease = [base];
|
|
6353
|
+
else {
|
|
6354
|
+
let i = this.prerelease.length;
|
|
6355
|
+
while (--i >= 0) if (typeof this.prerelease[i] === "number") {
|
|
6356
|
+
this.prerelease[i]++;
|
|
6357
|
+
i = -2;
|
|
6358
|
+
}
|
|
6359
|
+
if (i === -1) {
|
|
6360
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
|
6361
|
+
this.prerelease.push(base);
|
|
6362
|
+
}
|
|
6363
|
+
}
|
|
6364
|
+
if (identifier) {
|
|
6365
|
+
let prerelease = [identifier, base];
|
|
6366
|
+
if (identifierBase === false) prerelease = [identifier];
|
|
6367
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
6368
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
6369
|
+
} else this.prerelease = prerelease;
|
|
6370
|
+
}
|
|
6371
|
+
break;
|
|
6372
|
+
}
|
|
6373
|
+
default: throw new Error(`invalid increment argument: ${release}`);
|
|
6374
|
+
}
|
|
6375
|
+
this.raw = this.format();
|
|
6376
|
+
if (this.build.length) this.raw += `+${this.build.join(".")}`;
|
|
6377
|
+
return this;
|
|
6378
|
+
}
|
|
6379
|
+
};
|
|
6380
|
+
}));
|
|
6381
|
+
//#endregion
|
|
6382
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
|
|
6383
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6384
|
+
const SemVer = require_semver$1();
|
|
6385
|
+
const parse = (version, options, throwErrors = false) => {
|
|
6386
|
+
if (version instanceof SemVer) return version;
|
|
6387
|
+
try {
|
|
6388
|
+
return new SemVer(version, options);
|
|
6389
|
+
} catch (er) {
|
|
6390
|
+
if (!throwErrors) return null;
|
|
6391
|
+
throw er;
|
|
6392
|
+
}
|
|
6393
|
+
};
|
|
6394
|
+
module.exports = parse;
|
|
6395
|
+
}));
|
|
6396
|
+
//#endregion
|
|
6397
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
|
|
6398
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6399
|
+
const parse = require_parse();
|
|
6400
|
+
const valid = (version, options) => {
|
|
6401
|
+
const v = parse(version, options);
|
|
6402
|
+
return v ? v.version : null;
|
|
6403
|
+
};
|
|
6404
|
+
module.exports = valid;
|
|
6405
|
+
}));
|
|
6406
|
+
//#endregion
|
|
6407
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
|
|
6408
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6409
|
+
const parse = require_parse();
|
|
6410
|
+
const clean = (version, options) => {
|
|
6411
|
+
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
6412
|
+
return s ? s.version : null;
|
|
6413
|
+
};
|
|
6414
|
+
module.exports = clean;
|
|
6415
|
+
}));
|
|
6416
|
+
//#endregion
|
|
6056
6417
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
|
|
6057
6418
|
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6058
6419
|
const SemVer = require_semver$1();
|
|
@@ -6073,7 +6434,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6073
6434
|
//#endregion
|
|
6074
6435
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
|
|
6075
6436
|
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6076
|
-
const parse = require_parse
|
|
6437
|
+
const parse = require_parse();
|
|
6077
6438
|
const diff = (version1, version2) => {
|
|
6078
6439
|
const v1 = parse(version1, null, true);
|
|
6079
6440
|
const v2 = parse(version2, null, true);
|
|
@@ -6122,7 +6483,7 @@ var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6122
6483
|
//#endregion
|
|
6123
6484
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
|
|
6124
6485
|
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6125
|
-
const parse = require_parse
|
|
6486
|
+
const parse = require_parse();
|
|
6126
6487
|
const prerelease = (version, options) => {
|
|
6127
6488
|
const parsed = parse(version, options);
|
|
6128
6489
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
@@ -6253,7 +6614,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6253
6614
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
|
|
6254
6615
|
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6255
6616
|
const SemVer = require_semver$1();
|
|
6256
|
-
const parse = require_parse
|
|
6617
|
+
const parse = require_parse();
|
|
6257
6618
|
const { safeRe: re, t } = require_re();
|
|
6258
6619
|
const coerce = (version, options) => {
|
|
6259
6620
|
if (version instanceof SemVer) return version;
|
|
@@ -6988,7 +7349,7 @@ var import_semver = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6988
7349
|
const SemVer = require_semver$1();
|
|
6989
7350
|
const identifiers = require_identifiers();
|
|
6990
7351
|
module.exports = {
|
|
6991
|
-
parse: require_parse
|
|
7352
|
+
parse: require_parse(),
|
|
6992
7353
|
valid: require_valid$1(),
|
|
6993
7354
|
clean: require_clean(),
|
|
6994
7355
|
inc: require_inc(),
|
|
@@ -7834,24 +8195,6 @@ const phConnectRuntimeConfigSchema = {
|
|
|
7834
8195
|
default: false
|
|
7835
8196
|
}
|
|
7836
8197
|
}
|
|
7837
|
-
},
|
|
7838
|
-
instance: {
|
|
7839
|
-
type: "object",
|
|
7840
|
-
additionalProperties: false,
|
|
7841
|
-
required: ["namespace", "reactorWorker"],
|
|
7842
|
-
description: "Per-instance identity. Lets one origin host multiple isolated Connect instances, each with its own storage + SharedWorker namespace.",
|
|
7843
|
-
properties: {
|
|
7844
|
-
namespace: {
|
|
7845
|
-
type: ["string", "null"],
|
|
7846
|
-
description: "Explicit storage/SharedWorker namespace for this instance. `null` derives it from the base path (and, later, the configured endpoint), so root deployments stay byte-identical.",
|
|
7847
|
-
default: null
|
|
7848
|
-
},
|
|
7849
|
-
reactorWorker: {
|
|
7850
|
-
type: "boolean",
|
|
7851
|
-
description: "Host the reactor in a shared worker instead of on the main thread. Off by default; the main-thread reactor stays the proven path until cutover is verified.",
|
|
7852
|
-
default: false
|
|
7853
|
-
}
|
|
7854
|
-
}
|
|
7855
8198
|
}
|
|
7856
8199
|
}
|
|
7857
8200
|
};
|