radar-sdk-js 4.4.0-beta.2 → 4.4.0-beta.3

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/README.md CHANGED
@@ -56,7 +56,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ });
56
56
 
57
57
  Add the following script in your `html` file
58
58
  ```html
59
- <script src="https://js.radar.com/v4.4.0-beta.2/radar.min.js"></script>
59
+ <script src="https://js.radar.com/v4.4.0-beta.3/radar.min.js"></script>
60
60
  ```
61
61
 
62
62
  Then initialize the Radar SDK
@@ -73,8 +73,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then
73
73
  ```html
74
74
  <html>
75
75
  <head>
76
- <link href="https://js.radar.com/v4.4.0-beta.2/radar.css" rel="stylesheet">
77
- <script src="https://js.radar.com/v4.4.0-beta.2/radar.min.js"></script>
76
+ <link href="https://js.radar.com/v4.4.0-beta.3/radar.css" rel="stylesheet">
77
+ <script src="https://js.radar.com/v4.4.0-beta.3/radar.min.js"></script>
78
78
  </head>
79
79
 
80
80
  <body>
@@ -98,8 +98,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis
98
98
  ```html
99
99
  <html>
100
100
  <head>
101
- <link href="https://js.radar.com/v4.4.0-beta.2/radar.css" rel="stylesheet">
102
- <script src="https://js.radar.com/v4.4.0-beta.2/radar.min.js"></script>
101
+ <link href="https://js.radar.com/v4.4.0-beta.3/radar.css" rel="stylesheet">
102
+ <script src="https://js.radar.com/v4.4.0-beta.3/radar.min.js"></script>
103
103
  </head>
104
104
 
105
105
  <body>
@@ -130,8 +130,8 @@ To power [geofencing](https://radar.com/documentation/geofencing/overview) exper
130
130
  ```html
131
131
  <html>
132
132
  <head>
133
- <link href="https://js.radar.com/v4.4.0-beta.2/radar.css" rel="stylesheet">
134
- <script src="https://js.radar.com/v4.4.0-beta.2/radar.min.js"></script>
133
+ <link href="https://js.radar.com/v4.4.0-beta.3/radar.css" rel="stylesheet">
134
+ <script src="https://js.radar.com/v4.4.0-beta.3/radar.min.js"></script>
135
135
  </head>
136
136
 
137
137
  <body>
package/dist/radar.js CHANGED
@@ -405,7 +405,7 @@ class Navigator {
405
405
  }
406
406
  }
407
407
 
408
- var SDK_VERSION = '4.4.0-beta.2';
408
+ var SDK_VERSION = '4.4.0-beta.3';
409
409
 
410
410
  const inFlightRequests = new Map();
411
411
  class Http {
@@ -1554,21 +1554,22 @@ const filterUndefined = (object) => {
1554
1554
  });
1555
1555
  return obj;
1556
1556
  };
1557
- // deep merge nested objects
1558
- // (arrays are concatenated
1557
+ // deep merge nested objects - returns a new object
1558
+ // (arrays are concatenated)
1559
1559
  const mergeDeep = (target, source = {}) => {
1560
+ let output = Object.assign({}, target);
1560
1561
  for (const key in source) {
1561
1562
  if (source[key] instanceof Object && !Array.isArray(source[key]) && key in target) {
1562
- Object.assign(source[key], mergeDeep(target[key], source[key]));
1563
+ output[key] = mergeDeep(target[key], source[key]);
1563
1564
  }
1564
1565
  else if (Array.isArray(source[key]) && Array.isArray(target[key])) {
1565
- target[key] = target[key].concat(source[key]);
1566
+ output[key] = target[key].concat(source[key]);
1566
1567
  }
1567
1568
  else {
1568
- target[key] = source[key];
1569
+ output[key] = source[key];
1569
1570
  }
1570
1571
  }
1571
- return target;
1572
+ return output;
1572
1573
  };
1573
1574
 
1574
1575
  const defaultLineOptions = {
package/dist/radar.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"radar.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "4.4.0-beta.2";
1
+ declare const _default: "4.4.0-beta.3";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "radar-sdk-js",
3
- "version": "4.4.0-beta.2",
3
+ "version": "4.4.0-beta.3",
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",
@@ -11,17 +11,18 @@ export const filterUndefined = (object: any) => {
11
11
  return obj;
12
12
  };
13
13
 
14
- // deep merge nested objects
15
- // (arrays are concatenated
14
+ // deep merge nested objects - returns a new object
15
+ // (arrays are concatenated)
16
16
  export const mergeDeep = (target: any, source: any = {}) => {
17
+ let output = Object.assign({}, target);
17
18
  for (const key in source) {
18
19
  if (source[key] instanceof Object && !Array.isArray(source[key]) && key in target) {
19
- Object.assign(source[key], mergeDeep(target[key], source[key]));
20
+ output[key] = mergeDeep(target[key], source[key]);
20
21
  } else if (Array.isArray(source[key]) && Array.isArray(target[key])) {
21
- target[key] = target[key].concat(source[key]);
22
+ output[key] = target[key].concat(source[key]);
22
23
  } else {
23
- target[key] = source[key];
24
+ output[key] = source[key];
24
25
  }
25
26
  }
26
- return target;
27
+ return output;
27
28
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export default '4.4.0-beta.2';
1
+ export default '4.4.0-beta.3';