@supernova-studio/model 1.20.0 → 1.21.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/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -95,6 +95,13 @@ function zodUpdateInputOmit() {
|
|
|
95
95
|
function nullishToOptional(type) {
|
|
96
96
|
return type.nullish().transform((t) => t ?? void 0);
|
|
97
97
|
}
|
|
98
|
+
var nullsToUndefined = (obj) => {
|
|
99
|
+
const result = {};
|
|
100
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
101
|
+
result[key] = value === null ? void 0 : value;
|
|
102
|
+
}
|
|
103
|
+
return result;
|
|
104
|
+
};
|
|
98
105
|
|
|
99
106
|
// src/billing/customer.ts
|
|
100
107
|
var Customer = z7.object({
|
|
@@ -7453,6 +7460,7 @@ export {
|
|
|
7453
7460
|
nonNullFilter,
|
|
7454
7461
|
nonNullishFilter,
|
|
7455
7462
|
nullishToOptional,
|
|
7463
|
+
nullsToUndefined,
|
|
7456
7464
|
parseUrl,
|
|
7457
7465
|
pickDefined,
|
|
7458
7466
|
pickLatestGroupSnapshots,
|