object-fields
Advanced tools
Comparing version 1.3.13 to 1.3.14
@@ -70,2 +70,2 @@ const objectScan = require('object-scan'); | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJvYmplY3RTY2FuIiwicmVxdWlyZSIsImV4cGFuZGVyIiwibW9kdWxlIiwiZXhwb3J0cyIsInNwbGl0IiwiZmllbGRzIiwicmVzdWx0IiwibWF0Y2giLCJyZXBsYWNlIiwibSIsInAxIiwicDIiLCJtYXAiLCJlIiwiam9pbiIsIlNldCIsImpvaW5SZWMiLCJpbnB1dCIsIk9iamVjdCIsImVudHJpZXMiLCJrZXkiLCJ2YWx1ZSIsImtleXMiLCJsZW5ndGgiLCJmb3JFYWNoIiwicGF0aCIsInJlZHVjZSIsImN1ciIsImFzc2lnbiIsImdldFBhcmVudHMiLCJwcmV2IiwiaWR4IiwiZmlsdGVyIiwicG9zIiwicCIsImMiLCJhZGQiLCJzbGljZSIsInJldGFpbiIsIm9iaiIsImNvbmNhdCIsInVzZUFycmF5U2VsZWN0b3IiLCJqb2luZWQiLCJicmVha0ZuIiwidHJhdmVyc2VkQnkiLCJtYXRjaGVkQnkiLCJkaXJlY3RQYXJlbnQiLCJrIiwiQXJyYXkiLCJpc0FycmF5Iiwic3BsaWNlIl0sIm1hcHBpbmdzIjoiQUFBQSxNQUFNQSxVQUFVLEdBQUdDLE9BQU8sQ0FBQyxhQUFELENBQTFCOztBQUVBLE1BQU1DLFFBQVEsR0FBRyx5QkFBakI7O0FBRUFDLE1BQU0sQ0FBQ0MsT0FBUCxDQUFlQyxLQUFmLEdBQXdCQyxNQUFELElBQVk7QUFDakMsTUFBSUMsTUFBTSxHQUFHRCxNQUFiOztBQUNBLFNBQU9DLE1BQU0sQ0FBQ0MsS0FBUCxDQUFhTixRQUFiLENBQVAsRUFBK0I7QUFDN0JLLElBQUFBLE1BQU0sR0F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4gICAgICAgIC8vIHRyYXZlcnNlZCBieSBvbmx5ICcqKicgPT4gZGVsZXRlIGFuZCBicmVha1xuICAgICAgICBjb25zdCBkaXJlY3RQYXJlbnQgPSBrZXkuc2xpY2UoMCwgLTEpLnJlZHVjZSgocCwgaykgPT4gcFtrXSwgb2JqKTtcbiAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoZGlyZWN0UGFyZW50KSkge1xuICAgICAgICAgIGRpcmVjdFBhcmVudC5zcGxpY2Uoa2V5W2tleS5sZW5ndGggLSAxXSwgMSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgZGVsZXRlIGRpcmVjdFBhcmVudFtrZXlba2V5Lmxlbmd0aCAtIDFdXTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgIH1cbiAgICAgIC8vIGxvb2sgZnVydGhlclxuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbiAgfSkob2JqKTtcbn07XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJvYmplY3RTY2FuIiwicmVxdWlyZSIsImV4cGFuZGVyIiwibW9kdWxlIiwiZXhwb3J0cyIsInNwbGl0IiwiZmllbGRzIiwicmVzdWx0IiwibWF0Y2giLCJyZXBsYWNlIiwibSIsInAxIiwicDIiLCJtYXAiLCJlIiwiam9pbiIsIlNldCIsImpvaW5SZWMiLCJpbnB1dCIsIk9iamVjdCIsImVudHJpZXMiLCJrZXkiLCJ2YWx1ZSIsImtleXMiLCJsZW5ndGgiLCJmb3JFYWNoIiwicGF0aCIsInJlZHVjZSIsImN1ciIsImFzc2lnbiIsImdldFBhcmVudHMiLCJwcmV2IiwiaWR4IiwiZmlsdGVyIiwicG9zIiwicCIsImMiLCJhZGQiLCJzbGljZSIsInJldGFpbiIsIm9iaiIsImNvbmNhdCIsInV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ZpZWxkcykgPT4ge1xuICBvYmplY3RTY2FuKFsnKionXS5jb25jYXQoZmllbGRzKSwge1xuICAgIHVzZUFycmF5U2VsZWN0b3I6IGZhbHNlLFxuICAgIGpvaW5lZDogZmFsc2UsXG4gICAgYnJlYWtGbjogKGtleSwgdmFsdWUsIHsgdHJhdmVyc2VkQnksIG1hdGNoZWRCeSB9KSA9PiB7XG4gICAgICBpZiAobWF0Y2hlZEJ5Lmxlbmd0aCA+IDEpIHtcbiAgICAgICAgLy8gbWF0Y2hlZCBieSAnKionIGFuZCBhbm90aGVyIG5lZWRsZSA9PiBrZWVwIGFuZCBicmVha1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgIH1cbiAgICAgIGlmICh0cmF2ZXJzZWRCeS5sZW5ndGggPT09IDEpIHtcbiAgICAgICAgLy8gdHJhdmVyc2VkIGJ5IG9ubHkgJyoqJyA9PiBkZWxldGUgYW5kIGJyZWFrXG4gICAgICAgIGNvbnN0IGRpcmVjdFBhcmVudCA9IGtleS5zbGljZSgwLCAtMSkucmVkdWNlKChwLCBrKSA9PiBwW2tdLCBvYmopO1xuICAgICAgICBpZiAoQXJyYXkuaXNBcnJheShkaXJlY3RQYXJlbnQpKSB7XG4gICAgICAgICAgZGlyZWN0UGFyZW50LnNwbGljZShrZXlba2V5Lmxlbmd0aCAtIDFdLCAxKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBkZWxldGUgZGlyZWN0UGFyZW50W2tleVtrZXkubGVuZ3RoIC0gMV1dO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgfVxuICAgICAgLy8gbG9vayBmdXJ0aGVyXG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICB9KShvYmopO1xufTtcbiJdfQ== |
{ | ||
"name": "object-fields", | ||
"version": "1.3.13", | ||
"version": "1.3.14", | ||
"description": "Utility functions around nested object fields", | ||
@@ -15,8 +15,8 @@ "main": "lib/index.js", | ||
"@blackflux/eslint-plugin-rules": "1.1.0", | ||
"@blackflux/robo-config-plugin": "2.3.0", | ||
"@blackflux/robo-config-plugin": "2.4.3", | ||
"babel-eslint": "10.0.2", | ||
"chai": "4.2.0", | ||
"coveralls": "3.0.5", | ||
"coveralls": "3.0.6", | ||
"eslint": "6.1.0", | ||
"js-gardener": "2.0.56", | ||
"js-gardener": "2.0.59", | ||
"nyc": "14.1.1", | ||
@@ -23,0 +23,0 @@ "semantic-release": "15.13.19" |
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
14591