@indra.ai/deva 1.1.63 → 1.1.64

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1843,9 +1843,9 @@ class Deva {
1843
1843
  for copying.
1844
1844
  ***************/
1845
1845
  copy(obj) {
1846
+ const output = Array.isArray(obj) ? [] : {};
1846
1847
  try {
1847
1848
  let v, key;
1848
- const output = Array.isArray(obj) ? [] : {};
1849
1849
  for (key in obj) {
1850
1850
  v = obj[key];
1851
1851
  output[key] = (typeof v === "object") ? this.copy(v) : v;
@@ -1853,7 +1853,7 @@ class Deva {
1853
1853
  } catch (e) {
1854
1854
  return this.error(e, obj)
1855
1855
  } finally {
1856
- return output;
1856
+ return output;
1857
1857
  }
1858
1858
  }
1859
1859
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.1.63",
3
+ "version": "1.1.64",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {