@embeddable.com/sdk-utils 0.4.0 → 0.4.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.
@@ -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 kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
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 (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
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, "f")) {
3530
- __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), "f");
3526
+ if (!__classPrivateFieldGet(this, _ZodEnum_cache)) {
3527
+ __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values));
3531
3528
  }
3532
- if (!__classPrivateFieldGet(this, _ZodEnum_cache, "f").has(input.data)) {
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, "f")) {
3602
- __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), "f");
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, "f").has(input.data)) {
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,