From 4551306729c5c46a0f4e1edb7996404a588de8e7 Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Mon, 21 Aug 2023 15:43:10 -0400 Subject: [PATCH 1/3] use radar-verify.com, bump version --- README.md | 14 +++++++------- package-lock.json | 4 ++-- package.json | 2 +- src/api/verify.ts | 2 +- src/http.ts | 2 +- src/version.ts | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 30d37d16..6b72d9f5 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ }); Add the following script in your `html` file ```html - + ``` Then initialize the Radar SDK @@ -74,8 +74,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then ```html - - + + @@ -99,8 +99,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis ```html - - + + @@ -131,8 +131,8 @@ To power [geofencing](https://radar.com/documentation/geofencing/overview) exper ```html - - + + diff --git a/package-lock.json b/package-lock.json index ef345b74..3e6ab9d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "radar-sdk-js", - "version": "4.1.2", + "version": "4.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "radar-sdk-js", - "version": "4.0.0", + "version": "4.1.3", "license": "ISC", "dependencies": { "@types/geojson": "^7946.0.10" diff --git a/package.json b/package.json index fac5c95c..ee77a220 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.2", + "version": "4.1.3", "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 90e12355..46474618 100644 --- a/src/api/verify.ts +++ b/src/api/verify.ts @@ -46,7 +46,7 @@ class VerifyAPI { method: 'GET', path: 'verify', data: body, - host: 'http://localhost:52516', + host: 'https://radar-verify.com:52516', }); const { user, events } = response; diff --git a/src/http.ts b/src/http.ts index c8e77cd9..3afb4cee 100644 --- a/src/http.ts +++ b/src/http.ts @@ -132,7 +132,7 @@ class Http { } xhr.onerror = function() { - if (host && host.includes('localhost:52516')) { + if (host && host.includes('radar-verify.com:52516')) { reject(new RadarDesktopAppError()); } else { reject(new RadarServerError()); diff --git a/src/version.ts b/src/version.ts index 4aa5536f..6fc9a302 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '4.1.2'; +export default '4.1.3'; From 2eac14a8bc96376f8e9e57c6a7bfafb25b9b6f9a Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Mon, 21 Aug 2023 15:44:45 -0400 Subject: [PATCH 2/3] remove broken FAQ link --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 6b72d9f5..dd440d52 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ Website | Blog | Documentation | - FAQ | Support From 8fd9cd7643e29bf769462ccc448febad8f65f2bc Mon Sep 17 00:00:00 2001 From: Nick Patrick Date: Mon, 21 Aug 2023 15:54:12 -0400 Subject: [PATCH 3/3] check host equality --- src/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.ts b/src/http.ts index 3afb4cee..35b20a80 100644 --- a/src/http.ts +++ b/src/http.ts @@ -132,7 +132,7 @@ class Http { } xhr.onerror = function() { - if (host && host.includes('radar-verify.com:52516')) { + if (host && host === 'https://radar-verify.com:52516') { reject(new RadarDesktopAppError()); } else { reject(new RadarServerError());