From 7ec4a20c47a575054c88752c4e5499c4042ce6ef Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Sat, 16 Dec 2023 10:17:53 -0500 Subject: [PATCH 1/7] support trackVerified() on iOS mobile web --- package.json | 2 +- src/api/verify.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 65657085..f323e6aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.12", + "version": "4.1.13-beta.0", "description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", "homepage": "https://radar.com", "type": "module", diff --git a/src/api/verify.ts b/src/api/verify.ts index 57a78b42..cfe87e56 100644 --- a/src/api/verify.ts +++ b/src/api/verify.ts @@ -44,13 +44,13 @@ class VerifyAPI { }; let userAgent = navigator.userAgent; - const mac = userAgent && userAgent.toLowerCase().includes('mac'); + const apple = userAgent && (userAgent.toLowerCase().includes('mac') || userAgent.toLowerCase().includes('iphone') || userAgent.toLowerCase().includes('ipod') || userAgent.toLowerCase().includes('ipad')); const response: any = await Http.request({ method: 'GET', path: 'verify', data: body, - host: mac ? 'https://radar-verify.com:52516' : 'http://localhost:52516', + host: apple ? 'https://radar-verify.com:52516' : 'http://localhost:52516', }); const { user, events, token } = response; From 346487d24cb739f1fa197d10cace7f22b10d5925 Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Tue, 30 Jan 2024 10:00:10 -0500 Subject: [PATCH 2/7] resolve conflict --- package.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/package.json b/package.json index 06b820ef..6c2db0ed 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,6 @@ { "name": "radar-sdk-js", -<<<<<<< HEAD - "version": "4.1.13-beta.0", -======= "version": "4.1.17", ->>>>>>> master "description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", "homepage": "https://radar.com", "type": "module", From c0b8cbdf8cde2c5f4359c9b9c82831eb1061feb8 Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Tue, 30 Jan 2024 10:00:18 -0500 Subject: [PATCH 3/7] bump version --- README.md | 14 +++++++------- package-lock.json | 2 +- package.json | 2 +- src/version.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4190945d..883b662d 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ }); Add the following script in your `html` file ```html - + ``` Then initialize the Radar SDK @@ -73,8 +73,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then ```html - - + + @@ -98,8 +98,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis ```html - - + + @@ -130,8 +130,8 @@ To power [geofencing](https://radar.com/documentation/geofencing/overview) exper ```html - - + + diff --git a/package-lock.json b/package-lock.json index f053aa99..d82344b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.17", + "version": "4.1.18-beta.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 6c2db0ed..d9c564c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.17", + "version": "4.1.18-beta.0", "description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", "homepage": "https://radar.com", "type": "module", diff --git a/src/version.ts b/src/version.ts index af694c34..14252a8a 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '4.1.17'; +export default '4.1.18-beta.0'; From 976155057c1093a35574a077401bcbe424ccfa07 Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Tue, 30 Jan 2024 10:02:36 -0500 Subject: [PATCH 4/7] bump version --- README.md | 14 +++++++------- package-lock.json | 2 +- package.json | 2 +- src/errors.ts | 16 ++++++++-------- src/version.ts | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 883b662d..ea59de2f 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ }); Add the following script in your `html` file ```html - + ``` Then initialize the Radar SDK @@ -73,8 +73,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then ```html - - + + @@ -98,8 +98,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis ```html - - + + @@ -130,8 +130,8 @@ To power [geofencing](https://radar.com/documentation/geofencing/overview) exper ```html - - + + diff --git a/package-lock.json b/package-lock.json index d82344b7..da6cc9dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.18-beta.0", + "version": "4.2.0-beta.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index d9c564c6..37bea32a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.18-beta.0", + "version": "4.2.0-beta.0", "description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", "homepage": "https://radar.com", "type": "module", diff --git a/src/errors.ts b/src/errors.ts index 878db152..fe6f4755 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -31,11 +31,11 @@ export class RadarLocationPermissionsError extends RadarError { } } -export class RadarDesktopAppError extends RadarError { +export class RadarAppError extends RadarError { constructor() { - super('Desktop app not running.'); - this.name = 'RadarDesktopAppError'; - this.status = 'ERROR_DESKTOP_APP'; + super('Radar Verify app not running.'); + this.name = 'RadarAppError'; + this.status = 'ERROR_APP'; } } @@ -131,11 +131,11 @@ export class RadarServerError extends RadarError { } } -export class RadarTimeoutError extends RadarError { +export class RadarNetworkError extends RadarError { constructor() { - super('Request timed out.'); - this.name = 'RadarTimeoutError'; - this.status = 'ERROR_TIMED_OUT'; + super('Network error.'); + this.name = 'RadarNetworkError'; + this.status = 'ERROR_NETWORK'; } } diff --git a/src/version.ts b/src/version.ts index 14252a8a..244537d7 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '4.1.18-beta.0'; +export default '4.2.0-beta.0'; From e61424c4a240eea46c308a5be327482a8779544d Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Tue, 30 Jan 2024 10:07:05 -0500 Subject: [PATCH 5/7] revert error codes --- src/errors.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/errors.ts b/src/errors.ts index fe6f4755..878db152 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -31,11 +31,11 @@ export class RadarLocationPermissionsError extends RadarError { } } -export class RadarAppError extends RadarError { +export class RadarDesktopAppError extends RadarError { constructor() { - super('Radar Verify app not running.'); - this.name = 'RadarAppError'; - this.status = 'ERROR_APP'; + super('Desktop app not running.'); + this.name = 'RadarDesktopAppError'; + this.status = 'ERROR_DESKTOP_APP'; } } @@ -131,11 +131,11 @@ export class RadarServerError extends RadarError { } } -export class RadarNetworkError extends RadarError { +export class RadarTimeoutError extends RadarError { constructor() { - super('Network error.'); - this.name = 'RadarNetworkError'; - this.status = 'ERROR_NETWORK'; + super('Request timed out.'); + this.name = 'RadarTimeoutError'; + this.status = 'ERROR_TIMED_OUT'; } } From c0e92cc327f8743a6989fadf8673ed1e7e7a3c97 Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Tue, 30 Jan 2024 10:07:19 -0500 Subject: [PATCH 6/7] bump version --- README.md | 14 +++++++------- package-lock.json | 2 +- package.json | 2 +- src/version.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index ea59de2f..883b662d 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ }); Add the following script in your `html` file ```html - + ``` Then initialize the Radar SDK @@ -73,8 +73,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then ```html - - + + @@ -98,8 +98,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis ```html - - + + @@ -130,8 +130,8 @@ To power [geofencing](https://radar.com/documentation/geofencing/overview) exper ```html - - + + diff --git a/package-lock.json b/package-lock.json index da6cc9dd..d82344b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.2.0-beta.0", + "version": "4.1.18-beta.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 37bea32a..d9c564c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.2.0-beta.0", + "version": "4.1.18-beta.0", "description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", "homepage": "https://radar.com", "type": "module", diff --git a/src/version.ts b/src/version.ts index 244537d7..14252a8a 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '4.2.0-beta.0'; +export default '4.1.18-beta.0'; From 6b394d430024ca7978c73067bbdef2d410b1112e Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Wed, 31 Jan 2024 05:14:04 -0500 Subject: [PATCH 7/7] bump version --- README.md | 14 +++++++------- package-lock.json | 2 +- package.json | 2 +- src/version.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 883b662d..be0f03ff 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ }); Add the following script in your `html` file ```html - + ``` Then initialize the Radar SDK @@ -73,8 +73,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then ```html - - + + @@ -98,8 +98,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis ```html - - + + @@ -130,8 +130,8 @@ To power [geofencing](https://radar.com/documentation/geofencing/overview) exper ```html - - + + diff --git a/package-lock.json b/package-lock.json index d82344b7..3fee9a30 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.18-beta.0", + "version": "4.1.18", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index d9c564c6..453a8cba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.18-beta.0", + "version": "4.1.18", "description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", "homepage": "https://radar.com", "type": "module", diff --git a/src/version.ts b/src/version.ts index 14252a8a..463b37f4 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '4.1.18-beta.0'; +export default '4.1.18';