@rebuy/rebuy 1.3.8 → 1.3.9

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.
Files changed (2) hide show
  1. package/api.js +1 -1
  2. package/package.json +1 -1
package/api.js CHANGED
@@ -70,7 +70,7 @@ export class Api {
70
70
  }
71
71
 
72
72
  for (const domain of stagingDomains) {
73
- if (location?.host?.includes(domain)) {
73
+ if (typeof location === 'object' && location?.host?.includes(domain)) {
74
74
  Object.assign(config, staging);
75
75
  break;
76
76
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rebuy/rebuy",
3
3
  "description": "This is the default library for Rebuy",
4
- "version": "1.3.8",
4
+ "version": "1.3.9",
5
5
  "license": "MIT",
6
6
  "author": "Rebuy, Inc.",
7
7
  "type": "module",