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mVjdG9yeSgpKSB7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cbiAgY29uc3QgcmVsZXZhbnRGaWxlcyA9IGZzXG4gICAgLnJlYWRkaXJTeW5jKGRpcm5hbWUpXG4gICAgLmZpbHRlcigoZikgPT4gZiA9PT0gYmFzZW5hbWUgfHwgKGYuc3RhcnRzV2l0aChgJHtiYXNlbmFtZX0uYCkgJiYgZi5sYXN0SW5kZXhPZignLicpIDw9IGJhc2VuYW1lLmxlbmd0aCkpO1xuICBpZiAocmVsZXZhbnRGaWxlcy5pbmNsdWRlcyhiYXNlbmFtZSkpIHtcbiAgICByZXR1cm4gZmlsZXBhdGg7XG4gIH1cbiAgaWYgKHJlbGV2YW50RmlsZXMubGVuZ3RoID09PSAxKSB7XG4gICAgcmV0dXJuIHBhdGguam9pbihkaXJuYW1lLCByZWxldmFudEZpbGVzWzBdKTtcbiAgfVxuICByZXR1cm4gbnVsbDtcbn07XG4iXX0= |
@@ -0,1 +1,7 @@ | ||
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; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(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 assert = require('assert'); | ||
@@ -14,5 +20,7 @@ | ||
assert(options instanceof Object && !Array.isArray(options)); | ||
const ctx = Object.assign({ | ||
const ctx = _objectSpread({ | ||
treatAs: null | ||
}, options); | ||
assert(Object.keys(ctx).length === 1, 'Unexpected Option provided!'); | ||
@@ -53,2 +61,2 @@ assert(ctx.treatAs === null || typeof ctx.treatAs === 'string'); | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dpYy9zbWFydC1yZWFkLmpzIl0sIm5hbWVzIjpbImFzc2VydCIsInJlcXVpcmUiLCJmcyIsInlhbWwiLCJ4bWxQYXJzZXIiLCJnZXRFeHQiLCJtb2R1bGUiLCJleHBvcnRzIiwiZmlsZXBhdGgiLCJvcHRpb25zIiwiT2JqZWN0IiwiQXJyYXkiLCJpc0FycmF5IiwiY3R4IiwiYXNzaWduIiwidHJlYXRBcyIsImtleXMiLCJsZW5ndGgiLCJyZXN1bHQiLCJKU09OIiwicGFyc2UiLCJyZWFkRmlsZVN5bmMiLCJsb2FkIiwic3BsaXQiLCJ0cmltIiwicG9wIl0sIm1hcHBpbmdzIjoiQUFBQSxNQUFNQSxNQUFNLEdBQUdDLE9BQU8sQ0FBQyxRQUFELENBQXRCOztBQUNBLE1BQU1DLEVBQUUsR0FBR0QsT0FBTyxDQUFDLElBQUQsQ0FBbEI7O0FBQ0EsTUFBTUUsSUFBSSxHQUFHRixPQUFPLENBQUMsWUFBRCxDQUFwQjs7QUFDQSxNQUFNRyxTQUFTLEdBQUdILE9BQU8sQ0FBQyxvQkFBRCxDQUF6Qjs7QUFDQSxNQUFNSSxNQUFNLEdBQUdKLE9BQU8sQ0FBQyxpQkFBRCxDQUF0Qjs7QUFHQUssTUFBTSxDQUFDQyxPQUFQLEdBQWlCLENBQUNDLFFBQUQsRUFBV0MsT0FBTyxHQUFHLEVBQXJCLEtBQTRCO0FBQzNDVCxFQUFBQSxNQUFNLENBQUMsT0FBT1EsUUFBUCxLQUFvQixRQUFyQixDQUFOO0FBQ0F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nJyk7XG5cbiAgbGV0IHJlc3VsdDtcbiAgc3dpdGNoIChjdHgudHJlYXRBcyB8fCBnZXRFeHQoZmlsZXBhdGgpKSB7XG4gICAgY2FzZSAnanNvbic6XG4gICAgICByZXN1bHQgPSBKU09OLnBhcnNlKGZzLnJlYWRGaWxlU3luYyhmaWxlcGF0aCwgJ3V0ZjgnKSk7XG4gICAgICBicmVhaztcbiAgICBjYXNlICd4bWwnOlxuICAgICAgcmVzdWx0ID0geG1sUGFyc2VyLnBhcnNlKGZzLnJlYWRGaWxlU3luYyhmaWxlcGF0aCwgJ3V0ZjgnKSwgb3B0aW9ucyk7XG4gICAgICBicmVhaztcbiAgICBjYXNlICd5bWwnOlxuICAgIGNhc2UgJ3lhbWwnOlxuICAgICAgcmVzdWx0ID0geWFtbC5sb2FkKGZpbGVwYXRoLCB7fSk7XG4gICAgICBicmVhaztcbiAgICBjYXNlICdqcyc6XG4gICAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgaW1wb3J0L25vLWR5bmFtaWMtcmVxdWlyZSxnbG9iYWwtcmVxdWlyZVxuICAgICAgcmVzdWx0ID0gcmVxdWlyZShmaWxlcGF0aCk7XG4gICAgICBicmVhaztcbiAgICBkZWZhdWx0OlxuICAgICAgcmVzdWx0ID0gZnMucmVhZEZpbGVTeW5jKGZpbGVwYXRoLCAndXRmOCcpLnNwbGl0KCdcXG4nKTtcbiAgICAgIGlmIChyZXN1bHRbcmVzdWx0Lmxlbmd0aCAtIDFdLnRyaW0oKSA9PT0gJycpIHtcbiAgICAgICAgcmVzdWx0LnBvcCgpO1xuICAgICAgfVxuICAgICAgYnJlYWs7XG4gIH1cbiAgcmV0dXJuIHJlc3VsdDtcbn07XG4iXX0= |
@@ -0,1 +1,7 @@ | ||
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; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(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 assert = require('assert'); | ||
@@ -29,3 +35,4 @@ | ||
assert(options instanceof Object && !Array.isArray(options)); | ||
const ctx = Object.assign({ | ||
const ctx = _objectSpread({ | ||
treatAs: null, | ||
@@ -37,2 +44,3 @@ mergeStrategy: (existing, changeset) => changeset, | ||
}, options); | ||
assert(Object.keys(ctx).length === 5, 'Unexpected Option provided!'); | ||
@@ -90,2 +98,2 @@ assert(ctx.treatAs === null || typeof ctx.treatAs === 'string'); | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dpYy9zbWFydC13cml0ZS5qcyJdLCJuYW1lcyI6WyJhc3NlcnQiLCJyZXF1aXJlIiwiZnMiLCJwYXRoIiwiaXNFcXVhbCIsImNsb25lRGVlcCIsImZzRXh0cmEiLCJzdHJpbmdpZnkiLCJ5YW1sIiwib2JqZWN0QWxpZ24iLCJzbWFydFJlYWQiLCJ4bWxQYXJzZXIiLCJnZXRFeHQiLCJtb2R1bGUiLCJleHBvcnRzIiwiZmlsZXBhdGgiLCJjb250ZW50Iiwib3B0aW9ucyIsIk9iamVjdCIsIkFycmF5IiwiaXNBcnJheSIsImN0eCIsImFzc2lnbiIsInRyZWF0QXMiLCJtZXJnZVN0cmF0ZWd5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uZW5zdXJlRGlyU3luYyhwYXRoLmRpcm5hbWUoZmlsZXBhdGgpKTtcbiAgICBpZiAoY3R4LmtlZXBPcmRlcikge1xuICAgICAgb2JqZWN0QWxpZ24obWVyZ2VkQ29udGVudCwgY3VycmVudENvbnRlbnQpO1xuICAgIH1cbiAgICBsZXQgY29udGVudFN0cmluZztcbiAgICBzd2l0Y2ggKGN0eC50cmVhdEFzIHx8IGV4dCkge1xuICAgICAgY2FzZSAneW1sJzpcbiAgICAgIGNhc2UgJ3lhbWwnOlxuICAgICAgICBjb250ZW50U3RyaW5nID0geWFtbC5kdW1wKG1lcmdlZENvbnRlbnQpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3htbCc6XG4gICAgICAgIGNvbnRlbnRTdHJpbmcgPSB4bWxQYXJzZXIuc3RyaW5naWZ5KG1lcmdlZENvbnRlbnQsIG9wdGlvbnMpO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2pzb24nOlxuICAgICAgICBjb250ZW50U3RyaW5nID0gYCR7Y3R4LnByZXR0eVxuICAgICAgICAgID8gc3RyaW5naWZ5KG1lcmdlZENvbnRlbnQpXG4gICAgICAgICAgOiBKU09OLnN0cmluZ2lmeShtZXJnZWRDb250ZW50LCBudWxsLCAyKX1cXG5gO1xuICAgICAgICBicmVhaztcbiAgICAgIGRlZmF1bHQ6XG4gICAgICAgIGFzc2VydChBcnJheS5pc0FycmF5KG1lcmdlZENvbnRlbnQpKTtcbiAgICAgICAgY29udGVudFN0cmluZyA9IGAke21lcmdlZENvbnRlbnQuam9pbignXFxuJyl9XFxuYDtcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICAgIGZzLndyaXRlRmlsZVN5bmMoZmlsZXBhdGgsIGNvbnRlbnRTdHJpbmcpO1xuICAgIHJldHVybiB0cnVlO1xuICB9XG4gIHJldHVybiBmYWxzZTtcbn07XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIj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4gICAgICAgIGFzc2VydChBcnJheS5pc0FycmF5KG1lcmdlZENvbnRlbnQpKTtcbiAgICAgICAgY29udGVudFN0cmluZyA9IGAke21lcmdlZENvbnRlbnQuam9pbignXFxuJyl9XFxuYDtcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICAgIGZzLndyaXRlRmlsZVN5bmMoZmlsZXBhdGgsIGNvbnRlbnRTdHJpbmcpO1xuICAgIHJldHVybiB0cnVlO1xuICB9XG4gIHJldHVybiBmYWxzZTtcbn07XG4iXX0= |
@@ -22,2 +22,2 @@ const fs = require('fs'); | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9sb2dpYy93YWxrLWRpci5qcyJdLCJuYW1lcyI6WyJmcyIsInJlcXVpcmUiLCJwYXRoIiwibW9kdWxlIiwiZXhwb3J0cyIsImRpcnBhdGgiLCJyZXN1bHQiLCJmaWxlcyIsImZpbGVwYXRoIiwicG9wIiwic3RhdCIsImxzdGF0U3luYyIsImlzRGlyZWN0b3J5IiwicmVhZGRpclN5bmMiLCJmb3JFYWNoIiwiZiIsInB1c2giLCJqb2luIiwiaXNGaWxlIiwicmVsYXRpdmUiLCJsZW5ndGgiXSwibWFwcGluZ3MiOiJBQUFBLE1BQU1BLEVBQUUsR0FBR0MsT0FBTyxDQUFDLElBQUQsQ0FBbEI7O0FBQ0EsTUFBTUMsSUFBSSxHQUFHRCxPQUFPLENBQUMsTUFBRCxDQUFwQjs7QUFFQUUsTUFBTSxDQUFDQyxPQUFQLEdBQWtCQyxPQUFELElBQWE7QUFDNUIsUUFBTUMsTUFBTSxHQUFHLEVBQWY7QUFFQSxRQUFNQyxLQUFLLEdBQUcsQ0FBQ0YsT0FBRCxDQUFkOztBQUNBLEtBQUc7QUFDRCxVQUFNRyxRQUFRLEdBQUdELEtBQUssQ0FBQ0UsR0FBTixFQUFqQjtBQUNBLFVBQU1DLElBQUksR0FB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KSk7XG4gICAgfVxuICB9IHdoaWxlIChmaWxlcy5sZW5ndGggIT09IDApO1xuXG4gIHJldHVybiByZXN1bHQ7XG59O1xuIl19 |
@@ -13,2 +13,2 @@ const xmlJs = require('xml-js'); | ||
module.exports.stringify = obj => `${xmlJs.js2xml(obj.data).replace(/(?=[/?]>)/g, obj.meta.spaceSelfClosing ? ' ' : '')}`; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3htbC1wYXJzZXIuanMiXSwibmFtZXMiOlsieG1sSnMiLCJyZXF1aXJlIiwibW9kdWxlIiwiZXhwb3J0cyIsInBhcnNlIiwieG1sIiwiZGF0YSIsInhtbDJqcyIsImNhcHR1cmVTcGFjZXNCZXR3ZWVuRWxlbWVudHMiLCJtZXRhIiwic3BhY2VTZWxmQ2xvc2luZyIsInNlYXJjaCIsInN0cmluZ2lmeSIsIm9iaiIsImpzMnhtbCIsInJlcGxhY2UiXSwibWFwcGluZ3MiOiJBQUFBLE1BQU1BLEtBQUssR0FBR0MsT0FBTyxDQUFDLFFBQUQsQ0FBckI7O0FBRUFDLE1BQU0sQ0FBQ0MsT0FBUCxDQUFlQyxLQUFmLEdBQXVCQyxHQUFHLEtBQUs7QUFDN0JDLEVBQUFBLElBQUksRUFBRU4sS0FBSyxDQUFDTyxNQUFOLENBQWFGLEdBQWIsRUFBa0I7QUFBRUcsSUFBQUEsNEJBQTRCLEVBQUU7QUFBaEMsR0FBbEIsQ0FEdUI7QUFFN0JDLEVBQUFBLElBQUksRUFBRTtBQUNKQyxJQUFBQSxnQkFBZ0IsRUFBRUwsR0FBRyxDQUFDQSxHQUFHLENBQUNNLE1BQUosQ0FBVyxTQUFYLENBQUQsQ0FBSCxLQUErQjtBQUQ3QztBQUZ1QixDQUFMLENBQTFCOztBQU1BVCxNQUFNLENBQUNDLE9BQVAsQ0FBZVMsU0FBZixHQUEyQkMsR0FBRyxJQ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2UoLyg/PVsvP10+KS9nLCBvYmoubWV0YS5zcGFjZVNlbGZDbG9zaW5nID8gJyAnIDogJycpXG59YDtcbiJdfQ== |
{ | ||
"name": "smart-fs", | ||
"version": "1.9.2", | ||
"version": "1.9.3", | ||
"description": "Abstraction Layer for File Management.", | ||
@@ -50,11 +50,11 @@ "main": "lib/index.js", | ||
"@babel/register": "7.5.5", | ||
"@blackflux/eslint-plugin-rules": "1.0.24", | ||
"@blackflux/robo-config-plugin": "2.1.4", | ||
"@blackflux/eslint-plugin-rules": "1.1.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.53", | ||
"js-gardener": "2.0.59", | ||
"nyc": "14.1.1", | ||
"semantic-release": "15.13.18", | ||
"semantic-release": "15.13.19", | ||
"tmp": "0.1.0" | ||
@@ -61,0 +61,0 @@ }, |
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
39012
189