@rebuy/rebuy-hydrogen 3.0.0-beta.5 → 3.0.0-beta.6

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.js CHANGED
@@ -187,15 +187,6 @@ var RebuyHydrogenContext = ({
187
187
  cartQuantity,
188
188
  children
189
189
  }) => {
190
- if (!PUBLIC_PRIMARY_DOMAIN) {
191
- throw new Error("Missing required environment variable: PUBLIC_PRIMARY_DOMAIN");
192
- }
193
- if (!PUBLIC_REBUY_API_KEY) {
194
- throw new Error("Missing required environment variable: PUBLIC_REBUY_API_KEY");
195
- }
196
- if (!PUBLIC_STORE_DOMAIN) {
197
- throw new Error("Missing required environment variable: PUBLIC_STORE_DOMAIN");
198
- }
199
190
  const [rebuyConfig, setRebuyConfig] = (0, import_react3.useState)(null);
200
191
  const location = (0, import_react2.useLocation)();
201
192
  const queryObject = Utilities2.queryStringToObject(location.search);
@@ -725,15 +716,6 @@ var PUBLIC_STORE_DOMAIN2 = process.env.PUBLIC_STORE_DOMAIN;
725
716
  var PUBLIC_STOREFRONT_ID = process.env.PUBLIC_STOREFRONT_ID;
726
717
  var PUBLIC_STOREFRONT_API_TOKEN = process.env.PUBLIC_STOREFRONT_API_TOKEN || "";
727
718
  var RebuyHydrogenReactContext = ({ children }) => {
728
- if (!PUBLIC_PRIMARY_DOMAIN2) {
729
- throw new Error("Missing required environment variable: PUBLIC_PRIMARY_DOMAIN");
730
- }
731
- if (!PUBLIC_REBUY_API_KEY2) {
732
- throw new Error("Missing required environment variable: PUBLIC_REBUY_API_KEY");
733
- }
734
- if (!PUBLIC_STORE_DOMAIN2) {
735
- throw new Error("Missing required environment variable: PUBLIC_STORE_DOMAIN");
736
- }
737
719
  const [rebuyConfig, setRebuyConfig] = (0, import_react5.useState)(null);
738
720
  const location = (0, import_react4.useLocation)();
739
721
  const queryObject = Utilities3.queryStringToObject(location.search);