@weaverse/hydrogen 2.7.1-pre.0 → 2.7.1-pre.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.
package/dist/index.js CHANGED
@@ -257,7 +257,7 @@ var package_default = {
257
257
  name: "@weaverse/hydrogen",
258
258
  author: "Weaverse Team",
259
259
  description: "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
260
- version: "2.7.0",
260
+ version: "2.7.1-pre.1",
261
261
  license: "MIT",
262
262
  main: "dist/index.js",
263
263
  typings: "dist/index.d.ts",
@@ -322,12 +322,13 @@ function getWeaverseConfigs(request, env) {
322
322
  WEAVERSE_HOST,
323
323
  PUBLIC_STORE_DOMAIN,
324
324
  PUBLIC_STOREFRONT_API_TOKEN
325
- } = env || typeof process !== "undefined" && process?.env || {};
325
+ } = env || {};
326
+ let envFromProcess = typeof process !== "undefined" && process.env || {};
326
327
  let { weaverseProjectId, weaverseHost, isDesignMode, weaverseVersion, weaverseApiKey } = queries;
327
328
  return {
328
- projectId: weaverseProjectId || WEAVERSE_PROJECT_ID || "",
329
- weaverseHost: weaverseHost || WEAVERSE_HOST || "https://weaverse.io",
330
- weaverseApiKey: weaverseApiKey || WEAVERSE_API_KEY || "",
329
+ projectId: weaverseProjectId || WEAVERSE_PROJECT_ID || envFromProcess.WEAVERSE_PROJECT_ID || "",
330
+ weaverseHost: weaverseHost || WEAVERSE_HOST || envFromProcess.WEAVERSE_HOST || "https://weaverse.io",
331
+ weaverseApiKey: weaverseApiKey || WEAVERSE_API_KEY || envFromProcess.WEAVERSE_API_KEY || "",
331
332
  weaverseVersion: weaverseVersion || "",
332
333
  isDesignMode: isDesignMode || false,
333
334
  publicEnv: {
package/dist/index.mjs CHANGED
@@ -223,7 +223,7 @@ var package_default = {
223
223
  name: "@weaverse/hydrogen",
224
224
  author: "Weaverse Team",
225
225
  description: "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
226
- version: "2.7.0",
226
+ version: "2.7.1-pre.1",
227
227
  license: "MIT",
228
228
  main: "dist/index.js",
229
229
  typings: "dist/index.d.ts",
@@ -288,12 +288,13 @@ function getWeaverseConfigs(request, env) {
288
288
  WEAVERSE_HOST,
289
289
  PUBLIC_STORE_DOMAIN,
290
290
  PUBLIC_STOREFRONT_API_TOKEN
291
- } = env || typeof process !== "undefined" && process?.env || {};
291
+ } = env || {};
292
+ let envFromProcess = typeof process !== "undefined" && process.env || {};
292
293
  let { weaverseProjectId, weaverseHost, isDesignMode, weaverseVersion, weaverseApiKey } = queries;
293
294
  return {
294
- projectId: weaverseProjectId || WEAVERSE_PROJECT_ID || "",
295
- weaverseHost: weaverseHost || WEAVERSE_HOST || "https://weaverse.io",
296
- weaverseApiKey: weaverseApiKey || WEAVERSE_API_KEY || "",
295
+ projectId: weaverseProjectId || WEAVERSE_PROJECT_ID || envFromProcess.WEAVERSE_PROJECT_ID || "",
296
+ weaverseHost: weaverseHost || WEAVERSE_HOST || envFromProcess.WEAVERSE_HOST || "https://weaverse.io",
297
+ weaverseApiKey: weaverseApiKey || WEAVERSE_API_KEY || envFromProcess.WEAVERSE_API_KEY || "",
297
298
  weaverseVersion: weaverseVersion || "",
298
299
  isDesignMode: isDesignMode || false,
299
300
  publicEnv: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@weaverse/hydrogen",
3
3
  "author": "Weaverse Team",
4
4
  "description": "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
5
- "version": "2.7.1-pre.0",
5
+ "version": "2.7.1-pre.1",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "typings": "dist/index.d.ts",