@brytdesigns/shopify-ajax-cart-api 1.0.27 → 1.0.29

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/esm/index.js CHANGED
@@ -14704,11 +14704,26 @@ var format5 = ({
14704
14704
  id: id2,
14705
14705
  type
14706
14706
  }) => gen2(function* () {
14707
- const actualId = yield* decode2(ID)(id2);
14708
- const actualType = yield* decode2(Type3)(type);
14707
+ const [actualId, actualType] = yield* all4(
14708
+ [decode2(ID)(id2), decode2(Type3)(type)],
14709
+ {
14710
+ concurrency: "unbounded"
14711
+ }
14712
+ );
14709
14713
  return `gid://shopify/${actualType}/${actualId}`;
14710
14714
  });
14711
- var parse2 = (input) => decode2(GID)(input);
14715
+ var parse2 = (input) => decode2(
14716
+ transformOrFail(GID, ID, {
14717
+ encode: (value2, _, ast) => fail8(
14718
+ new Forbidden(
14719
+ ast,
14720
+ value2,
14721
+ "Encoding an ID to a GID is not allowed. Use the format function to convert IDs to GIDs."
14722
+ )
14723
+ ),
14724
+ decode: (value2) => succeed8(`${value2}`.split("/").pop())
14725
+ })
14726
+ )(input);
14712
14727
 
14713
14728
  // ../../utils/dist/effect/Ajax/index.js
14714
14729
  var Ajax_exports = {};