@embeddable.com/sdk-utils 0.4.0 → 0.4.2
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/lib/errorFormatter.test.d.ts +1 -0
- package/lib/fileContentHash.test.d.ts +1 -0
- package/lib/findFiles.test.d.ts +1 -0
- package/lib/index.esm.js +8 -11
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +8 -11
- package/lib/index.js.map +1 -1
- package/package.json +6 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/index.esm.js
CHANGED
|
@@ -575,16 +575,13 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
575
575
|
***************************************************************************** */
|
|
576
576
|
|
|
577
577
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
578
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
579
578
|
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");
|
|
580
|
-
return
|
|
579
|
+
return state.get(receiver);
|
|
581
580
|
}
|
|
582
581
|
|
|
583
582
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
584
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
585
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
586
583
|
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");
|
|
587
|
-
return (
|
|
584
|
+
return (state.set(receiver, value)), value;
|
|
588
585
|
}
|
|
589
586
|
|
|
590
587
|
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
@@ -3526,10 +3523,10 @@ class ZodEnum extends ZodType {
|
|
|
3526
3523
|
});
|
|
3527
3524
|
return INVALID;
|
|
3528
3525
|
}
|
|
3529
|
-
if (!__classPrivateFieldGet(this, _ZodEnum_cache
|
|
3530
|
-
__classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values)
|
|
3526
|
+
if (!__classPrivateFieldGet(this, _ZodEnum_cache)) {
|
|
3527
|
+
__classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
|
|
3531
3528
|
}
|
|
3532
|
-
if (!__classPrivateFieldGet(this, _ZodEnum_cache
|
|
3529
|
+
if (!__classPrivateFieldGet(this, _ZodEnum_cache).has(input.data)) {
|
|
3533
3530
|
const ctx = this._getOrReturnCtx(input);
|
|
3534
3531
|
const expectedValues = this._def.values;
|
|
3535
3532
|
addIssueToContext(ctx, {
|
|
@@ -3598,10 +3595,10 @@ class ZodNativeEnum extends ZodType {
|
|
|
3598
3595
|
});
|
|
3599
3596
|
return INVALID;
|
|
3600
3597
|
}
|
|
3601
|
-
if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache
|
|
3602
|
-
__classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values))
|
|
3598
|
+
if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache)) {
|
|
3599
|
+
__classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)));
|
|
3603
3600
|
}
|
|
3604
|
-
if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache
|
|
3601
|
+
if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache).has(input.data)) {
|
|
3605
3602
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3606
3603
|
addIssueToContext(ctx, {
|
|
3607
3604
|
received: ctx.data,
|