@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.mjs CHANGED
@@ -145,15 +145,6 @@ var RebuyHydrogenContext = ({
145
145
  cartQuantity,
146
146
  children
147
147
  }) => {
148
- if (!PUBLIC_PRIMARY_DOMAIN) {
149
- throw new Error("Missing required environment variable: PUBLIC_PRIMARY_DOMAIN");
150
- }
151
- if (!PUBLIC_REBUY_API_KEY) {
152
- throw new Error("Missing required environment variable: PUBLIC_REBUY_API_KEY");
153
- }
154
- if (!PUBLIC_STORE_DOMAIN) {
155
- throw new Error("Missing required environment variable: PUBLIC_STORE_DOMAIN");
156
- }
157
148
  const [rebuyConfig, setRebuyConfig] = useState(null);
158
149
  const location = useLocation();
159
150
  const queryObject = Utilities2.queryStringToObject(location.search);
@@ -683,15 +674,6 @@ var PUBLIC_STORE_DOMAIN2 = import.meta.env.PUBLIC_STORE_DOMAIN;
683
674
  var PUBLIC_STOREFRONT_ID = import.meta.env.PUBLIC_STOREFRONT_ID;
684
675
  var PUBLIC_STOREFRONT_API_TOKEN = import.meta.env.PUBLIC_STOREFRONT_API_TOKEN || "";
685
676
  var RebuyHydrogenReactContext = ({ children }) => {
686
- if (!PUBLIC_PRIMARY_DOMAIN2) {
687
- throw new Error("Missing required environment variable: PUBLIC_PRIMARY_DOMAIN");
688
- }
689
- if (!PUBLIC_REBUY_API_KEY2) {
690
- throw new Error("Missing required environment variable: PUBLIC_REBUY_API_KEY");
691
- }
692
- if (!PUBLIC_STORE_DOMAIN2) {
693
- throw new Error("Missing required environment variable: PUBLIC_STORE_DOMAIN");
694
- }
695
677
  const [rebuyConfig, setRebuyConfig] = useState2(null);
696
678
  const location = useLocation2();
697
679
  const queryObject = Utilities3.queryStringToObject(location.search);