@geophrase/core 1.3.5 → 1.3.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geophrase/core",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "Drop-in address picker widget for Indian e-commerce checkouts. Captures structured addresses with coordinates to reduce RTO.",
5
5
  "license": "MIT",
6
6
  "author": "Geophrase",
package/src/index.js CHANGED
@@ -43,7 +43,7 @@ class Geophrase {
43
43
  this.overlayId = `geophrase-overlay-${instanceId}`;
44
44
  this.styleId = `geophrase-styles-${instanceId}`;
45
45
 
46
- // 5. Endpoints (undocumented override for staging/QA)
46
+ // 5. Endpoints (undocumented override for staging)
47
47
  const endpoints = options._endpoints || {};
48
48
  this.widgetOrigin = endpoints.widgetOrigin || 'https://connect.geophrase.com';
49
49
  this.apiBase = endpoints.apiBase || 'https://api.geophrase.com';
@@ -51,7 +51,7 @@ class Geophrase {
51
51
  this._boundHandleMessage = this._handleMessage.bind(this);
52
52
  this._prevBodyOverflow = null;
53
53
 
54
- // 6. Pre-compute the secure widget URL (API key purposefully excluded)
54
+ // 6. Pre-compute the secure widget URL
55
55
  const url = new URL(this.widgetOrigin);
56
56
  if (this.orderId) url.searchParams.append('order-id', this.orderId);
57
57
  if (this.phone) url.searchParams.append('phone', this.phone);