radar-sdk-js
Advanced tools
Comparing version 4.4.0-beta.2 to 4.4.0-beta.3
@@ -1,2 +0,2 @@ | ||
declare const _default: "4.4.0-beta.2"; | ||
declare const _default: "4.4.0-beta.3"; | ||
export default _default; |
{ | ||
"name": "radar-sdk-js", | ||
"version": "4.4.0-beta.2", | ||
"version": "4.4.0-beta.3", | ||
"description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://radar.com", |
@@ -59,3 +59,3 @@ <p align="center"> | ||
```html | ||
<script src="https://js.radar.com/v4.4.0-beta.2/radar.min.js"></script> | ||
<script src="https://js.radar.com/v4.4.0-beta.3/radar.min.js"></script> | ||
``` | ||
@@ -77,4 +77,4 @@ | ||
<head> | ||
<link href="https://js.radar.com/v4.4.0-beta.2/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.4.0-beta.2/radar.min.js"></script> | ||
<link href="https://js.radar.com/v4.4.0-beta.3/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.4.0-beta.3/radar.min.js"></script> | ||
</head> | ||
@@ -103,4 +103,4 @@ | ||
<head> | ||
<link href="https://js.radar.com/v4.4.0-beta.2/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.4.0-beta.2/radar.min.js"></script> | ||
<link href="https://js.radar.com/v4.4.0-beta.3/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.4.0-beta.3/radar.min.js"></script> | ||
</head> | ||
@@ -136,4 +136,4 @@ | ||
<head> | ||
<link href="https://js.radar.com/v4.4.0-beta.2/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.4.0-beta.2/radar.min.js"></script> | ||
<link href="https://js.radar.com/v4.4.0-beta.3/radar.css" rel="stylesheet"> | ||
<script src="https://js.radar.com/v4.4.0-beta.3/radar.min.js"></script> | ||
</head> | ||
@@ -140,0 +140,0 @@ |
@@ -14,15 +14,16 @@ | ||
// deep merge nested objects | ||
// (arrays are concatenated | ||
// deep merge nested objects - returns a new object | ||
// (arrays are concatenated) | ||
export const mergeDeep = (target: any, source: any = {}) => { | ||
let output = Object.assign({}, target); | ||
for (const key in source) { | ||
if (source[key] instanceof Object && !Array.isArray(source[key]) && key in target) { | ||
Object.assign(source[key], mergeDeep(target[key], source[key])); | ||
output[key] = mergeDeep(target[key], source[key]); | ||
} else if (Array.isArray(source[key]) && Array.isArray(target[key])) { | ||
target[key] = target[key].concat(source[key]); | ||
output[key] = target[key].concat(source[key]); | ||
} else { | ||
target[key] = source[key]; | ||
output[key] = source[key]; | ||
} | ||
} | ||
return target; | ||
return output; | ||
} |
@@ -1,1 +0,1 @@ | ||
export default '4.4.0-beta.2'; | ||
export default '4.4.0-beta.3'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
334446
7057