yaml-boost
Advanced tools
Comparing version 1.9.23 to 1.9.24
@@ -1,7 +0,3 @@ | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
"use strict"; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
const fs = require('fs'); | ||
@@ -31,4 +27,5 @@ | ||
if (match) { | ||
const varsNew = _objectSpread(_objectSpread({}, vars), match[4] ? JSON.parse(`{"${match[4].replace(/&/g, '","').replace(/=/g, '":"')}"}`) : {}); | ||
const varsNew = { ...vars, | ||
...(match[4] ? JSON.parse(`{"${match[4].replace(/&/g, '","').replace(/=/g, '":"')}"}`) : {}) | ||
}; | ||
let loaded; | ||
@@ -68,3 +65,2 @@ let newRelDir = relDir; | ||
module.exports.dump = yaml.safeDump; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJmcyIsInJlcXVpcmUiLCJwYXRoIiwiZ2V0Iiwic2V0IiwibWVyZ2VXaXRoIiwieWFtbCIsImNvbmNhdEFycmF5cyIsIm9ialZhbHVlIiwic3JjVmFsdWUiLCJldmVyeSIsIkFycmF5Iiw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Jlc3VsdCwgJzw8PCcsIFtdKS5tYXAoKGUpID0+IGxvYWRSZWN1cnNpdmUoZGlyLCByZWxEaXIsIGUsIHZhcnMpKTtcbiAgICBkZWxldGUgcmVzdWx0Wyc8PDwnXTtcbiAgICBPYmplY3Qua2V5cyhyZXN1bHQpLmZvckVhY2goKGtleSkgPT4gc2V0KHJlc3VsdCwga2V5LCBsb2FkUmVjdXJzaXZlKGRpciwgcmVsRGlyLCBnZXQocmVzdWx0LCBrZXkpLCB2YXJzKSkpO1xuICAgIHJlc3VsdCA9IHRvTWVyZ2UucmVkdWNlKChwcmV2LCBjdXIpID0+IG1lcmdlV2l0aChwcmV2LCBjdXIsIGNvbmNhdEFycmF5cyksIHJlc3VsdCk7XG4gIH1cbiAgcmV0dXJuIHJlc3VsdDtcbn07XG5cbm1vZHVsZS5leHBvcnRzLmxvYWQgPSAoZmlsZVBhdGgsIHZhcnMgPSB7fSkgPT4gbG9hZFJlY3Vyc2l2ZShcbiAgcGF0aC5kaXJuYW1lKGZpbGVQYXRoKSxcbiAgcGF0aC5kaXJuYW1lKGZpbGVQYXRoKSxcbiAgeWFtbC5zYWZlTG9hZChmcy5yZWFkRmlsZVN5bmMoZmlsZVBhdGgsICd1dGY4JykpLFxuICB2YXJzXG4pO1xuXG5tb2R1bGUuZXhwb3J0cy5kdW1wID0geWFtbC5zYWZlRHVtcDtcbiJdfQ== | ||
module.exports.dump = yaml.safeDump; |
{ | ||
"name": "yaml-boost", | ||
"version": "1.9.23", | ||
"version": "1.9.24", | ||
"description": "Yaml Parser with additional functionality.", | ||
@@ -20,3 +20,4 @@ "main": "lib/index.js", | ||
"u": "yarn upgrade --latest --force", | ||
"i": "yarn install --frozen-lockfile" | ||
"i": "yarn install --frozen-lockfile", | ||
"it": "yarn run i && yarn run t" | ||
}, | ||
@@ -34,20 +35,20 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/cli": "7.10.4", | ||
"@babel/core": "7.10.4", | ||
"@babel/plugin-proposal-object-rest-spread": "7.10.4", | ||
"@babel/register": "7.10.4", | ||
"@blackflux/eslint-plugin-rules": "1.3.30", | ||
"@blackflux/robo-config-plugin": "3.5.0", | ||
"@babel/cli": "7.11.6", | ||
"@babel/core": "7.11.6", | ||
"@babel/register": "7.11.5", | ||
"@blackflux/eslint-plugin-rules": "1.3.33", | ||
"@blackflux/robo-config-plugin": "3.9.9", | ||
"babel-eslint": "10.1.0", | ||
"chai": "4.2.0", | ||
"coveralls": "3.1.0", | ||
"eslint": "7.4.0", | ||
"eslint": "7.8.1", | ||
"eslint-config-airbnb-base": "14.2.0", | ||
"eslint-plugin-import": "2.22.0", | ||
"eslint-plugin-json": "2.1.1", | ||
"eslint-plugin-json": "2.1.2", | ||
"eslint-plugin-markdown": "1.0.2", | ||
"eslint-plugin-mocha": "7.0.1", | ||
"js-gardener": "2.0.164", | ||
"eslint-plugin-mocha": "8.0.0", | ||
"js-gardener": "2.0.167", | ||
"nyc": "15.1.0", | ||
"semantic-release": "17.1.1" | ||
"semantic-release": "17.1.1", | ||
"babel-preset-latest-node": "4.1.0" | ||
}, | ||
@@ -54,0 +55,0 @@ "keywords": [ |
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
10018
45