@storm-software/config 1.17.0 → 1.18.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 +14 -17
- package/index.js +14 -17
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## 1.18.1 (2024-05-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **deps:** update patch prod dependencies ([a8113435](https://github.com/storm-software/storm-ops/commit/a8113435))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
13
|
+
## 1.18.0 (2024-05-07)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🚀 Features
|
|
17
|
+
|
|
18
|
+
- **config:** Added the `accent` color token to configuration ([a7a24ec1](https://github.com/storm-software/storm-ops/commit/a7a24ec1))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### 🩹 Fixes
|
|
22
|
+
|
|
23
|
+
- **config:** Mark the `accent` color as optional ([156921b6](https://github.com/storm-software/storm-ops/commit/156921b6))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### ❤️ Thank You
|
|
27
|
+
|
|
28
|
+
- Patrick Sullivan
|
|
29
|
+
|
|
1
30
|
## 1.17.0 (2024-05-07)
|
|
2
31
|
|
|
3
32
|
|
package/index.cjs
CHANGED
|
@@ -31,7 +31,7 @@ __export(src_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(src_exports);
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/zod@3.23.
|
|
34
|
+
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
35
35
|
var util;
|
|
36
36
|
(function(util2) {
|
|
37
37
|
util2.assertEqual = (val) => val;
|
|
@@ -489,19 +489,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
489
489
|
var isValid = (x) => x.status === "valid";
|
|
490
490
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
491
491
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
492
|
-
if (kind === "a" && !f)
|
|
493
|
-
|
|
494
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
495
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
492
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
493
|
+
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");
|
|
496
494
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
497
495
|
}
|
|
498
496
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
499
|
-
if (kind === "m")
|
|
500
|
-
|
|
501
|
-
if (
|
|
502
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
503
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
504
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
497
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
498
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
499
|
+
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");
|
|
505
500
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
506
501
|
}
|
|
507
502
|
var errorUtil;
|
|
@@ -2220,8 +2215,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
2220
2215
|
});
|
|
2221
2216
|
status.dirty();
|
|
2222
2217
|
}
|
|
2223
|
-
} else if (unknownKeys === "strip")
|
|
2224
|
-
;
|
|
2218
|
+
} else if (unknownKeys === "strip") ;
|
|
2225
2219
|
else {
|
|
2226
2220
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
2227
2221
|
}
|
|
@@ -3709,10 +3703,13 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
|
|
|
3709
3703
|
var ZodReadonly = class extends ZodType {
|
|
3710
3704
|
_parse(input) {
|
|
3711
3705
|
const result = this._def.innerType._parse(input);
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3706
|
+
const freeze = (data) => {
|
|
3707
|
+
if (isValid(data)) {
|
|
3708
|
+
data.value = Object.freeze(data.value);
|
|
3709
|
+
}
|
|
3710
|
+
return data;
|
|
3711
|
+
};
|
|
3712
|
+
return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
|
|
3716
3713
|
}
|
|
3717
3714
|
unwrap() {
|
|
3718
3715
|
return this._def.innerType;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules/.pnpm/zod@3.23.
|
|
1
|
+
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
|
2
2
|
var util;
|
|
3
3
|
(function(util2) {
|
|
4
4
|
util2.assertEqual = (val) => val;
|
|
@@ -456,19 +456,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
456
456
|
var isValid = (x) => x.status === "valid";
|
|
457
457
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
458
458
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
459
|
-
if (kind === "a" && !f)
|
|
460
|
-
|
|
461
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
462
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
459
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
460
|
+
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");
|
|
463
461
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
464
462
|
}
|
|
465
463
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
466
|
-
if (kind === "m")
|
|
467
|
-
|
|
468
|
-
if (
|
|
469
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
470
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
471
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
464
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
465
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
466
|
+
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");
|
|
472
467
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
473
468
|
}
|
|
474
469
|
var errorUtil;
|
|
@@ -2187,8 +2182,7 @@ var ZodObject = class _ZodObject extends ZodType {
|
|
|
2187
2182
|
});
|
|
2188
2183
|
status.dirty();
|
|
2189
2184
|
}
|
|
2190
|
-
} else if (unknownKeys === "strip")
|
|
2191
|
-
;
|
|
2185
|
+
} else if (unknownKeys === "strip") ;
|
|
2192
2186
|
else {
|
|
2193
2187
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
2194
2188
|
}
|
|
@@ -3676,10 +3670,13 @@ var ZodPipeline = class _ZodPipeline extends ZodType {
|
|
|
3676
3670
|
var ZodReadonly = class extends ZodType {
|
|
3677
3671
|
_parse(input) {
|
|
3678
3672
|
const result = this._def.innerType._parse(input);
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3673
|
+
const freeze = (data) => {
|
|
3674
|
+
if (isValid(data)) {
|
|
3675
|
+
data.value = Object.freeze(data.value);
|
|
3676
|
+
}
|
|
3677
|
+
return data;
|
|
3678
|
+
};
|
|
3679
|
+
return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
|
|
3683
3680
|
}
|
|
3684
3681
|
unwrap() {
|
|
3685
3682
|
return this._def.innerType;
|
package/meta.cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"node_modules/.pnpm/zod@3.23.
|
|
1
|
+
{"inputs":{"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytes":149466,"imports":[],"format":"esm"},"packages/config/src/schema.ts":{"bytes":8517,"imports":[{"path":"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"}],"format":"esm"},"packages/config/src/types.ts":{"bytes":1890,"imports":[],"format":"esm"},"packages/config/src/define-config.ts":{"bytes":313,"imports":[],"format":"esm"},"packages/config/src/index.ts":{"bytes":311,"imports":[{"path":"packages/config/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config/src/define-config.ts","kind":"import-statement","original":"./define-config"}],"format":"esm"}},"outputs":{"dist/packages/config/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/config/src/index.ts","inputs":{"packages/config/src/index.ts":{"bytesInOutput":569},"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytesInOutput":116969},"packages/config/src/schema.ts":{"bytesInOutput":7066},"packages/config/src/types.ts":{"bytesInOutput":133},"packages/config/src/define-config.ts":{"bytesInOutput":37}},"bytes":125765}}}
|
package/meta.esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"node_modules/.pnpm/zod@3.23.
|
|
1
|
+
{"inputs":{"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytes":149466,"imports":[],"format":"esm"},"packages/config/src/schema.ts":{"bytes":8517,"imports":[{"path":"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs","kind":"import-statement","original":"zod"}],"format":"esm"},"packages/config/src/types.ts":{"bytes":1890,"imports":[],"format":"esm"},"packages/config/src/define-config.ts":{"bytes":313,"imports":[],"format":"esm"},"packages/config/src/index.ts":{"bytes":311,"imports":[{"path":"packages/config/src/schema.ts","kind":"import-statement","original":"./schema"},{"path":"packages/config/src/types.ts","kind":"import-statement","original":"./types"},{"path":"packages/config/src/define-config.ts","kind":"import-statement","original":"./define-config"}],"format":"esm"}},"outputs":{"dist/packages/config/index.js":{"imports":[],"exports":["COLOR_KEYS","ColorConfigMapSchema","ColorConfigSchema","DarkThemeColorConfigSchema","LightThemeColorConfigSchema","MultiThemeColorConfigSchema","SingleThemeColorConfigSchema","StormConfigSchema","defineConfig"],"entryPoint":"packages/config/src/index.ts","inputs":{"node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs":{"bytesInOutput":116969},"packages/config/src/schema.ts":{"bytesInOutput":7066},"packages/config/src/index.ts":{"bytesInOutput":0},"packages/config/src/types.ts":{"bytesInOutput":133},"packages/config/src/define-config.ts":{"bytesInOutput":37}},"bytes":124608}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.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": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"module": "./index.js",
|
|
23
23
|
"types": "./declarations.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"zod": "3.23.
|
|
25
|
+
"zod": "3.23.8"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|