diff --git a/dist/index.js b/dist/index.js index 45cdb4f7..884dda64 100644 --- a/dist/index.js +++ b/dist/index.js @@ -36402,9 +36402,9 @@ var require_lodash = __commonJS({ "node_modules/lodash/lodash.js"(exports2, module2) { (function() { var undefined2; - var VERSION = "4.17.23"; + var VERSION = "4.18.1"; var LARGE_ARRAY_SIZE = 200; - var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`"; + var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`"; var HASH_UNDEFINED = "__lodash_hash_undefined__"; var MAX_MEMOIZE_SIZE = 500; var PLACEHOLDER = "__lodash_placeholder__"; @@ -38334,19 +38334,12 @@ var require_lodash = __commonJS({ if (!length) { return true; } - var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function"; while (++index < length) { - var key = path[index]; - if (typeof key !== "string") { - continue; - } + var key = toKey(path[index]); if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) { return false; } - if (key === "constructor" && index + 1 < length && typeof path[index + 1] === "string" && path[index + 1] === "prototype") { - if (isRootPrimitive && index === 0) { - continue; - } + if ((key === "constructor" || key === "prototype") && index < length - 1) { return false; } } @@ -39678,7 +39671,7 @@ var require_lodash = __commonJS({ var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {}; while (++index < length) { var pair = pairs[index]; - result2[pair[0]] = pair[1]; + baseAssignValue(result2, pair[0], pair[1]); } return result2; } @@ -41062,8 +41055,13 @@ var require_lodash = __commonJS({ options = undefined2; } string = toString(string); - options = assignInWith({}, options, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); + options = assignWith({}, options, settings, customDefaultsAssignIn); + var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); + arrayEach(importsKeys, function(key) { + if (reForbiddenIdentifierChars.test(key)) { + throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT); + } + }); var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; var reDelimiters = RegExp2( (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", diff --git a/package-lock.json b/package-lock.json index 6e9b21b5..fd7ea4d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6904,9 +6904,9 @@ } }, "node_modules/lodash": { - "version": "4.17.23", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz", - "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", + "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", "license": "MIT" }, "node_modules/lodash.camelcase": {