@enonic/js-utils
Advanced tools
Comparing version 0.38.0 to 0.38.1
@@ -18,3 +18,3 @@ "use strict"; | ||
if (isUnsafeKey(leafKey)) { | ||
throw new Error("setIn: unsafe root key: \"".concat(leafKey, "\"")); | ||
throw new Error("setIn: unsafe root key: \"".concat(String(leafKey), "\"")); | ||
} | ||
@@ -26,3 +26,3 @@ var obj = target; | ||
if (isUnsafeKey(leafKey)) { | ||
throw new Error("setIn: unsafe leaf key: \"".concat(leafKey, "\"")); | ||
throw new Error("setIn: unsafe leaf key: \"".concat(String(leafKey), "\"")); | ||
} | ||
@@ -32,3 +32,3 @@ for (var i = 0; i < pathLength - 1; i++) { | ||
if (isUnsafeKey(branchKey)) { | ||
throw new Error("setIn: unsafe branch key: \"".concat(branchKey, "\"")); | ||
throw new Error("setIn: unsafe branch key: \"".concat(String(branchKey), "\"")); | ||
} | ||
@@ -35,0 +35,0 @@ if (!(0, hasOwnProperty_1.hasOwnProperty)(obj, branchKey)) { |
@@ -65,3 +65,3 @@ { | ||
}, | ||
"version": "0.38.0" | ||
"version": "0.38.1" | ||
} |
@@ -51,3 +51,3 @@ import {isObject} from '../value/isObject'; | ||
if (isUnsafeKey(leafKey)) { | ||
throw new Error(`setIn: unsafe root key: "${leafKey}"`); | ||
throw new Error(`setIn: unsafe root key: "${String(leafKey)}"`); | ||
} | ||
@@ -61,3 +61,3 @@ | ||
if (isUnsafeKey(leafKey)) { | ||
throw new Error(`setIn: unsafe leaf key: "${leafKey}"`); | ||
throw new Error(`setIn: unsafe leaf key: "${String(leafKey)}"`); | ||
} | ||
@@ -69,3 +69,3 @@ for(let i = 0; i < pathLength - 1; i++) { | ||
if (isUnsafeKey(branchKey)) { | ||
throw new Error(`setIn: unsafe branch key: "${branchKey}"`); | ||
throw new Error(`setIn: unsafe branch key: "${String(branchKey)}"`); | ||
} | ||
@@ -72,0 +72,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1380195