@storm-software/config-tools 1.46.0 → 1.47.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/CHANGELOG.md +29 -0
- package/index.cjs +5183 -9328
- package/index.js +5184 -9330
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +2 -2
- package/utilities/chalk.js +1 -2
- package/utilities/logger.cjs +14 -17
- package/utilities/logger.js +15 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"chalk": "5.3.0",
|
|
17
17
|
"cosmiconfig": "9.0.0",
|
|
18
18
|
"deepmerge": "4.3.1",
|
|
19
|
-
"zod": "3.23.
|
|
19
|
+
"zod": "3.23.8"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"access": "public"
|
package/utilities/chalk.js
CHANGED
|
@@ -7,8 +7,7 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
8
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
9
|
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined")
|
|
11
|
-
return require.apply(this, arguments);
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
12
|
});
|
|
14
13
|
var __commonJS = (cb, mod) => function __require2() {
|
package/utilities/logger.cjs
CHANGED
|
@@ -1664,7 +1664,7 @@ var getChalk = () => {
|
|
|
1664
1664
|
return _chalk;
|
|
1665
1665
|
};
|
|
1666
1666
|
|
|
1667
|
-
// node_modules/.pnpm/zod@3.23.
|
|
1667
|
+
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
1668
1668
|
var util;
|
|
1669
1669
|
(function(util2) {
|
|
1670
1670
|
util2.assertEqual = (val) => val;
|
|
@@ -2122,19 +2122,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
2122
2122
|
var isValid = (x) => x.status === "valid";
|
|
2123
2123
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
2124
2124
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
2125
|
-
if (kind === "a" && !f)
|
|
2126
|
-
|
|
2127
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
2128
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2125
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2126
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2129
2127
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2130
2128
|
}
|
|
2131
2129
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
2132
|
-
if (kind === "m")
|
|
2133
|
-
|
|
2134
|
-
if (
|
|
2135
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
2136
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
2137
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2130
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2131
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
2132
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2138
2133
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
2139
2134
|
}
|
|
2140
2135
|
var errorUtil;
|
|
@@ -3853,8 +3848,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
3853
3848
|
});
|
|
3854
3849
|
status.dirty();
|
|
3855
3850
|
}
|
|
3856
|
-
} else if (unknownKeys === "strip")
|
|
3857
|
-
;
|
|
3851
|
+
} else if (unknownKeys === "strip") ;
|
|
3858
3852
|
else {
|
|
3859
3853
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
3860
3854
|
}
|
|
@@ -5342,10 +5336,13 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
|
|
|
5342
5336
|
var ZodReadonly = class extends ZodType {
|
|
5343
5337
|
_parse(input) {
|
|
5344
5338
|
const result = this._def.innerType._parse(input);
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5339
|
+
const freeze = (data) => {
|
|
5340
|
+
if (isValid(data)) {
|
|
5341
|
+
data.value = Object.freeze(data.value);
|
|
5342
|
+
}
|
|
5343
|
+
return data;
|
|
5344
|
+
};
|
|
5345
|
+
return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
|
|
5349
5346
|
}
|
|
5350
5347
|
unwrap() {
|
|
5351
5348
|
return this._def.innerType;
|
package/utilities/logger.js
CHANGED
|
@@ -7,8 +7,7 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
7
7
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
8
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
9
|
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined")
|
|
11
|
-
return require.apply(this, arguments);
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
11
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
12
|
});
|
|
14
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
@@ -1649,7 +1648,7 @@ var getChalk = () => {
|
|
|
1649
1648
|
return _chalk;
|
|
1650
1649
|
};
|
|
1651
1650
|
|
|
1652
|
-
// node_modules/.pnpm/zod@3.23.
|
|
1651
|
+
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
1653
1652
|
var util;
|
|
1654
1653
|
(function(util2) {
|
|
1655
1654
|
util2.assertEqual = (val) => val;
|
|
@@ -2107,19 +2106,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
2107
2106
|
var isValid = (x) => x.status === "valid";
|
|
2108
2107
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
2109
2108
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
2110
|
-
if (kind === "a" && !f)
|
|
2111
|
-
|
|
2112
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
2113
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2109
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
2110
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
2114
2111
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
2115
2112
|
}
|
|
2116
2113
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
2117
|
-
if (kind === "m")
|
|
2118
|
-
|
|
2119
|
-
if (
|
|
2120
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
2121
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
2122
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2114
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
2115
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
2116
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
2123
2117
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
2124
2118
|
}
|
|
2125
2119
|
var errorUtil;
|
|
@@ -3838,8 +3832,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
3838
3832
|
});
|
|
3839
3833
|
status.dirty();
|
|
3840
3834
|
}
|
|
3841
|
-
} else if (unknownKeys === "strip")
|
|
3842
|
-
;
|
|
3835
|
+
} else if (unknownKeys === "strip") ;
|
|
3843
3836
|
else {
|
|
3844
3837
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
3845
3838
|
}
|
|
@@ -5327,10 +5320,13 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
|
|
|
5327
5320
|
var ZodReadonly = class extends ZodType {
|
|
5328
5321
|
_parse(input) {
|
|
5329
5322
|
const result = this._def.innerType._parse(input);
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5323
|
+
const freeze = (data) => {
|
|
5324
|
+
if (isValid(data)) {
|
|
5325
|
+
data.value = Object.freeze(data.value);
|
|
5326
|
+
}
|
|
5327
|
+
return data;
|
|
5328
|
+
};
|
|
5329
|
+
return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
|
|
5334
5330
|
}
|
|
5335
5331
|
unwrap() {
|
|
5336
5332
|
return this._def.innerType;
|