Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "fsify", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"authors": [ | ||
@@ -35,9 +35,10 @@ "Tobias Reich <tobias@electerious.com>" | ||
"coveralls": "cat ./coverage/lcov.info | coveralls", | ||
"test": "istanbul cover _mocha" | ||
"test": "istanbul cover node_modules/mocha/bin/_mocha" | ||
}, | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"coveralls": "^2.12.0", | ||
"coveralls": "^2.13.1", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^3.2.0" | ||
"mocha": "^3.4.1", | ||
"uuid": "^3.0.1" | ||
}, | ||
@@ -44,0 +45,0 @@ "dependencies": { |
# fsify | ||
[![Travis Build Status](https://travis-ci.org/electerious/fsify.svg?branch=master)](https://travis-ci.org/electerious/fsify) [![Coverage Status](https://coveralls.io/repos/github/electerious/fsify/badge.svg?branch=master)](https://coveralls.io/github/electerious/fsify?branch=master) [![Dependencies](https://david-dm.org/electerious/fsify.svg)](https://david-dm.org/electerious/fsify#info=dependencies) | ||
[![Travis Build Status](https://travis-ci.org/electerious/fsify.svg?branch=master)](https://travis-ci.org/electerious/fsify) [![AppVeyor Status](https://ci.appveyor.com/api/projects/status/q5eqc7vv8ndyx2ib?svg=true)](https://ci.appveyor.com/project/electerious/fsify) [![Coverage Status](https://coveralls.io/repos/github/electerious/fsify/badge.svg?branch=master)](https://coveralls.io/github/electerious/fsify?branch=master) [![Dependencies](https://david-dm.org/electerious/fsify.svg)](https://david-dm.org/electerious/fsify#info=dependencies) | ||
@@ -171,3 +171,3 @@ Convert an array of objects into a persistent or temporary directory structure. | ||
- `persistent` `{?Boolean}` - Keep directories and files even when the process exists. Defaults to `true`. | ||
- `force` `{?Boolean}` - Allow deleting the current working directory and outside. | ||
- `force` `{?Boolean}` - Allow deleting the current working directory and outside. Defaults to `false`. | ||
@@ -174,0 +174,0 @@ ### Returns |
@@ -64,3 +64,3 @@ 'use strict' | ||
if (isPlainObj(opts)===false) { | ||
throw new Error(`'opts' must be an object`) | ||
throw new Error(`'opts' must be an object, null or undefined`) | ||
} | ||
@@ -67,0 +67,0 @@ |
@@ -36,2 +36,6 @@ 'use strict' | ||
if (contents!=null && Array.isArray(contents)===false) { | ||
throw new Error(`Entry type is 'directory' and 'contents' must be an array, null or undefined`) | ||
} | ||
return parseStructure(contents, absolutePath) | ||
@@ -46,2 +50,6 @@ .then((contens) => entry.contents = contens) | ||
if (Array.isArray(contents)===true) { | ||
throw new Error(`Entry type is 'file', but 'contents' is an array and should be a string or a buffer`) | ||
} | ||
return resolve(entry) | ||
@@ -48,0 +56,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
18391
322
5