radar-sdk-js 4.1.8 → 4.1.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.
package/dist/radar.js CHANGED
@@ -565,7 +565,7 @@ var Navigator = /** @class */ (function () {
565
565
  return Navigator;
566
566
  }());
567
567
 
568
- var SDK_VERSION = '4.1.8';
568
+ var SDK_VERSION = '4.1.9';
569
569
 
570
570
  var Http = /** @class */ (function () {
571
571
  function Http() {
@@ -1541,7 +1541,7 @@ var VerifyAPI = /** @class */ (function () {
1541
1541
  VerifyAPI.trackVerified = function (params, encrypted) {
1542
1542
  if (encrypted === void 0) { encrypted = false; }
1543
1543
  return __awaiter(this, void 0, void 0, function () {
1544
- var options, userId, deviceId, installId, sessionId, description, metadata, body, userAgent, windows, response, user, events, token, location, trackTokenRes, trackRes;
1544
+ var options, userId, deviceId, installId, sessionId, description, metadata, body, userAgent, mac, response, user, events, token, location, trackTokenRes, trackRes;
1545
1545
  return __generator(this, function (_a) {
1546
1546
  switch (_a.label) {
1547
1547
  case 0:
@@ -1561,12 +1561,12 @@ var VerifyAPI = /** @class */ (function () {
1561
1561
  metadata = params.metadata || Storage.getJSON(Storage.METADATA);
1562
1562
  body = __assign(__assign({}, params), { description: description, deviceId: deviceId, foreground: true, installId: installId, sessionId: sessionId, metadata: metadata, sdkVersion: SDK_VERSION, stopped: true, userId: userId, encrypted: encrypted });
1563
1563
  userAgent = navigator.userAgent;
1564
- windows = userAgent && userAgent.toLowerCase().includes('windows');
1564
+ mac = userAgent && userAgent.toLowerCase().includes('mac');
1565
1565
  return [4 /*yield*/, Http.request({
1566
1566
  method: 'GET',
1567
1567
  path: 'verify',
1568
1568
  data: body,
1569
- host: windows ? 'http://localhost:52516' : 'https://radar-verify.com:52516',
1569
+ host: mac ? 'https://radar-verify.com:52516' : 'http://localhost:52516',
1570
1570
  })];
1571
1571
  case 1:
1572
1572
  response = _a.sent();
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "4.1.8";
1
+ declare const _default: "4.1.9";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "radar-sdk-js",
3
- "version": "4.1.8",
3
+ "version": "4.1.9",
4
4
  "description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.",
5
5
  "homepage": "https://radar.com",
6
6
  "type": "module",
package/src/api/verify.ts CHANGED
@@ -44,13 +44,13 @@ class VerifyAPI {
44
44
  };
45
45
 
46
46
  let userAgent = navigator.userAgent;
47
- const windows = userAgent && userAgent.toLowerCase().includes('windows');
47
+ const mac = userAgent && userAgent.toLowerCase().includes('mac');
48
48
 
49
49
  const response: any = await Http.request({
50
50
  method: 'GET',
51
51
  path: 'verify',
52
52
  data: body,
53
- host: windows ? 'http://localhost:52516' : 'https://radar-verify.com:52516',
53
+ host: mac ? 'https://radar-verify.com:52516' : 'http://localhost:52516',
54
54
  });
55
55
 
56
56
  const { user, events, token } = response;
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export default '4.1.8';
1
+ export default '4.1.9';