@powerhousedao/shared 6.2.0 → 6.2.1-dev.0
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/build-config.d.mts +1 -1
- package/dist/clis/build-config.d.mts.map +1 -1
- package/dist/clis/constants.d.mts +5 -0
- package/dist/clis/constants.d.mts.map +1 -1
- package/dist/clis/index.d.mts +24 -1
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +56 -399
- package/dist/clis/index.mjs.map +1 -1
- package/dist/{config-loader-CMGKMsO7.js → config-loader-CBllPkXN.js} +5 -1
- package/dist/config-loader-CBllPkXN.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 +19 -1
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +19 -1
- 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-92mt80n-.d.ts → types-CyblmySc.d.ts} +7 -2
- package/dist/{types-92mt80n-.d.ts.map → types-CyblmySc.d.ts.map} +1 -1
- package/package.json +1 -1
- package/dist/config-loader-CMGKMsO7.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
|
|
2840
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
|
|
2841
|
+
var require_debug = /* @__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
|
|
2845
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
2846
|
+
var require_constants = /* @__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$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2867
2867
|
};
|
|
2868
2868
|
}));
|
|
2869
2869
|
//#endregion
|
|
2870
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
2871
|
-
var require_re
|
|
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.7.4/node_modules/semver/internal/re.js
|
|
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();
|
|
2874
2874
|
exports = module.exports = {};
|
|
2875
2875
|
const re = exports.re = [];
|
|
2876
2876
|
const safeRe = exports.safeRe = [];
|
|
@@ -2946,8 +2946,8 @@ var require_re$1 = /* @__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
|
|
2949
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
2950
|
+
var require_parse_options = /* @__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$1 = /* @__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
|
|
2961
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
|
|
2962
|
+
var require_identifiers = /* @__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,19 +2978,13 @@ var require_identifiers$1 = /* @__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
|
|
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
|
-
};
|
|
2981
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
|
|
2982
|
+
var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
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();
|
|
2994
2988
|
module.exports = class SemVer {
|
|
2995
2989
|
constructor(version, options) {
|
|
2996
2990
|
options = parseOptions(options);
|
|
@@ -3147,9 +3141,8 @@ var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3147
3141
|
if (identifier) {
|
|
3148
3142
|
let prerelease = [identifier, base];
|
|
3149
3143
|
if (identifierBase === false) prerelease = [identifier];
|
|
3150
|
-
if (
|
|
3151
|
-
|
|
3152
|
-
if (isNaN(prereleaseBase)) this.prerelease = prerelease;
|
|
3144
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
3145
|
+
if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
|
|
3153
3146
|
} else this.prerelease = prerelease;
|
|
3154
3147
|
}
|
|
3155
3148
|
break;
|
|
@@ -3163,9 +3156,9 @@ var require_semver$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3163
3156
|
};
|
|
3164
3157
|
}));
|
|
3165
3158
|
//#endregion
|
|
3166
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
3167
|
-
var require_parse$
|
|
3168
|
-
const SemVer = require_semver$
|
|
3159
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
|
|
3160
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3161
|
+
const SemVer = require_semver$1();
|
|
3169
3162
|
const parse = (version, options, throwErrors = false) => {
|
|
3170
3163
|
if (version instanceof SemVer) return version;
|
|
3171
3164
|
try {
|
|
@@ -3178,9 +3171,9 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3178
3171
|
module.exports = parse;
|
|
3179
3172
|
}));
|
|
3180
3173
|
//#endregion
|
|
3181
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
3182
|
-
var require_valid$
|
|
3183
|
-
const parse = require_parse$
|
|
3174
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
|
|
3175
|
+
var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3176
|
+
const parse = require_parse$1();
|
|
3184
3177
|
const valid = (version, options) => {
|
|
3185
3178
|
const v = parse(version, options);
|
|
3186
3179
|
return v ? v.version : null;
|
|
@@ -3188,9 +3181,9 @@ var require_valid$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3188
3181
|
module.exports = valid;
|
|
3189
3182
|
}));
|
|
3190
3183
|
//#endregion
|
|
3191
|
-
//#region ../../node_modules/.pnpm/semver@7.
|
|
3192
|
-
var require_clean
|
|
3193
|
-
const parse = require_parse$
|
|
3184
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
|
|
3185
|
+
var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3186
|
+
const parse = require_parse$1();
|
|
3194
3187
|
const clean = (version, options) => {
|
|
3195
3188
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
3196
3189
|
return s ? s.version : null;
|
|
@@ -4097,7 +4090,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4097
4090
|
}));
|
|
4098
4091
|
//#endregion
|
|
4099
4092
|
//#region ../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js
|
|
4100
|
-
var require_parse
|
|
4093
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4101
4094
|
module.exports = function(tokens) {
|
|
4102
4095
|
var index = 0;
|
|
4103
4096
|
function hasMore() {
|
|
@@ -4188,7 +4181,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4188
4181
|
//#region ../../node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js
|
|
4189
4182
|
var require_spdx_expression_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4190
4183
|
var scan = require_scan();
|
|
4191
|
-
var parse = require_parse
|
|
4184
|
+
var parse = require_parse();
|
|
4192
4185
|
module.exports = function(source) {
|
|
4193
4186
|
return parse(scan(source));
|
|
4194
4187
|
};
|
|
@@ -5627,8 +5620,8 @@ var require_typos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5627
5620
|
//#region ../../node_modules/.pnpm/normalize-package-data@8.0.0/node_modules/normalize-package-data/lib/fixer.js
|
|
5628
5621
|
var require_fixer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5629
5622
|
var { URL: URL$1 } = __require("node:url");
|
|
5630
|
-
var isValidSemver = require_valid$
|
|
5631
|
-
var cleanSemver = require_clean
|
|
5623
|
+
var isValidSemver = require_valid$1();
|
|
5624
|
+
var cleanSemver = require_clean();
|
|
5632
5625
|
var validateLicense = require_validate_npm_package_license();
|
|
5633
5626
|
var hostedGitInfo = require_lib();
|
|
5634
5627
|
var { isBuiltin } = __require("node:module");
|
|
@@ -6060,360 +6053,6 @@ async function readPackage({ cwd, normalize = true } = {}) {
|
|
|
6060
6053
|
return _readPackage(await fsPromises.readFile(getPackagePath(cwd), "utf8"), normalize);
|
|
6061
6054
|
}
|
|
6062
6055
|
//#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
|
|
6417
6056
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
|
|
6418
6057
|
var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6419
6058
|
const SemVer = require_semver$1();
|
|
@@ -6434,7 +6073,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6434
6073
|
//#endregion
|
|
6435
6074
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
|
|
6436
6075
|
var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6437
|
-
const parse = require_parse();
|
|
6076
|
+
const parse = require_parse$1();
|
|
6438
6077
|
const diff = (version1, version2) => {
|
|
6439
6078
|
const v1 = parse(version1, null, true);
|
|
6440
6079
|
const v2 = parse(version2, null, true);
|
|
@@ -6483,7 +6122,7 @@ var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6483
6122
|
//#endregion
|
|
6484
6123
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
|
|
6485
6124
|
var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6486
|
-
const parse = require_parse();
|
|
6125
|
+
const parse = require_parse$1();
|
|
6487
6126
|
const prerelease = (version, options) => {
|
|
6488
6127
|
const parsed = parse(version, options);
|
|
6489
6128
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
@@ -6614,7 +6253,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6614
6253
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
|
|
6615
6254
|
var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6616
6255
|
const SemVer = require_semver$1();
|
|
6617
|
-
const parse = require_parse();
|
|
6256
|
+
const parse = require_parse$1();
|
|
6618
6257
|
const { safeRe: re, t } = require_re();
|
|
6619
6258
|
const coerce = (version, options) => {
|
|
6620
6259
|
if (version instanceof SemVer) return version;
|
|
@@ -7349,7 +6988,7 @@ var import_semver = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7349
6988
|
const SemVer = require_semver$1();
|
|
7350
6989
|
const identifiers = require_identifiers();
|
|
7351
6990
|
module.exports = {
|
|
7352
|
-
parse: require_parse(),
|
|
6991
|
+
parse: require_parse$1(),
|
|
7353
6992
|
valid: require_valid$1(),
|
|
7354
6993
|
clean: require_clean(),
|
|
7355
6994
|
inc: require_inc(),
|
|
@@ -8195,6 +7834,24 @@ const phConnectRuntimeConfigSchema = {
|
|
|
8195
7834
|
default: false
|
|
8196
7835
|
}
|
|
8197
7836
|
}
|
|
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
|
+
}
|
|
8198
7855
|
}
|
|
8199
7856
|
}
|
|
8200
7857
|
};
|