@hapi/hoek
Advanced tools
Comparing version 6.2.2 to 6.2.3
@@ -54,2 +54,17 @@ 'use strict'; | ||
} | ||
else if (obj instanceof Set) { | ||
newObj = new Set(); | ||
cloneDeep = true; | ||
for (const val of obj) { | ||
newObj.add(exports.clone(val)); | ||
} | ||
} | ||
else if (obj instanceof Map) { | ||
newObj = new Map(); | ||
cloneDeep = true; | ||
for (let [key, value] of obj) { | ||
value = exports.clone(value); | ||
newObj.set(key, value); | ||
} | ||
} | ||
else { | ||
@@ -56,0 +71,0 @@ if (options.prototype !== false) { // Defaults to true |
{ | ||
"name": "@hapi/hoek", | ||
"description": "General purpose node utilities", | ||
"version": "6.2.2", | ||
"version": "6.2.3", | ||
"repository": "git://github.com/hapijs/hoek", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43548
1101