@geophrase/core 1.5.0 → 1.5.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -95,6 +95,6 @@ const geo = new Geophrase({
95
95
 
96
96
  The underlying `Geophrase` instance is created on mount and destroyed on unmount automatically, so you do not need to call `destroy()` manually.
97
97
 
98
- TypeScript definitions (`GeophraseOptions`, `GeophraseAddress`, `GeophraseToken`, `GeophraseError`) ship with the package.
98
+ TypeScript definitions (`GeophraseOptions`, `GeophraseAddress`, `GeophraseRequestId`, `GeophraseError`) ship with the package.
99
99
 
100
100
  See the [full docs](https://geophrase.com/docs/vanilla-js) for the complete configuration reference, security guidance, and response schemas.
package/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export interface GeophraseAddress {
22
22
  address: GeophraseAddressDetails;
23
23
  }
24
24
 
25
- export interface GeophraseToken {
25
+ export interface GeophraseRequestId {
26
26
  requestId: string;
27
27
  }
28
28
 
@@ -38,7 +38,7 @@ export interface GeophraseOptions {
38
38
  key?: string;
39
39
  orderId?: string;
40
40
  phone?: string;
41
- onSuccess: (result: GeophraseAddress | GeophraseToken) => void;
41
+ onSuccess: (result: GeophraseAddress | GeophraseRequestId) => void;
42
42
  onError?: (error: GeophraseError) => void;
43
43
  onClose?: () => void;
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geophrase/core",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
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",