Comparing version 1.9.8 to 1.10.0
@@ -61,6 +61,6 @@ /** | ||
function FS() { | ||
let tmpFsBucket = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0]; | ||
let publicFsBucket = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
let privateFsBucket = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; | ||
let sharedFsBucket = arguments.length <= 3 || arguments[3] === undefined ? null : arguments[3]; | ||
let tmpFsBucket = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
let publicFsBucket = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
let privateFsBucket = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
let sharedFsBucket = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; | ||
@@ -143,3 +143,3 @@ _classCallCheck(this, FS); | ||
value: function getFolder(name) { | ||
let msIdentifier = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
let msIdentifier = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
@@ -220,3 +220,3 @@ if (FS.FOLDERS.indexOf(name) === -1) { | ||
value: function shared() { | ||
let microservice = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0]; | ||
let microservice = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
@@ -223,0 +223,0 @@ microservice = microservice || this.kernel.microservice(); |
@@ -154,3 +154,3 @@ /** | ||
getPath: function getPath() { | ||
let pathStr = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0]; | ||
let pathStr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; | ||
@@ -177,3 +177,3 @@ return _path2.default.join(_this.cwd, pathStr); | ||
copyFile: function copyFile(sourcePath, destinationPath) { | ||
let callback = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; | ||
let callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
@@ -206,3 +206,3 @@ let absSourcePath = _path2.default.join(_this.cwd, sourcePath); | ||
create: function create(options) { | ||
let callback = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
@@ -226,3 +226,3 @@ let error = new Error(`You do not have rights for this operation on bucket ${ options.Bucket }`); | ||
destroy: function destroy() { | ||
let callback = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0]; | ||
let callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | ||
@@ -256,3 +256,3 @@ let error = new Error('You do not have rights for this operation'); | ||
headObject: function headObject(pathStr) { | ||
let callback = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
@@ -287,3 +287,3 @@ let responseObj = { | ||
listContents: function listContents(pathStr, marker) { | ||
let callback = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; | ||
let callback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
@@ -341,3 +341,3 @@ let absPath = _path2.default.join(_this.cwd, pathStr); | ||
readdirp: function readdirp(pathStr) { | ||
let callback = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
@@ -371,3 +371,3 @@ let absPath = _path2.default.join(_this.cwd, pathStr); | ||
mkdirp: function mkdirp(pathStr) { | ||
let callback = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
@@ -399,3 +399,3 @@ let absPath = _path2.default.join(_this.cwd, pathStr); | ||
rmdirp: function rmdirp(pathStr) { | ||
let callback = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
@@ -465,3 +465,3 @@ let absPath = _path2.default.join(_this.cwd, pathStr); | ||
value: function _readdirp(dir) { | ||
let basePath = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
let basePath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; | ||
@@ -468,0 +468,0 @@ let _files = []; |
@@ -32,3 +32,3 @@ /** | ||
function Registry(s3, bucket) { | ||
let registryFile = arguments.length <= 2 || arguments[2] === undefined ? Registry.REGISTRY_FILE : arguments[2]; | ||
let registryFile = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Registry.REGISTRY_FILE; | ||
@@ -235,3 +235,3 @@ _classCallCheck(this, Registry); | ||
value: function _readS3Object(key, cb) { | ||
let lastModified = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; | ||
let lastModified = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
@@ -366,3 +366,3 @@ let payload = { | ||
value: function createFromFS(fs) { | ||
let registryFile = arguments.length <= 1 || arguments[1] === undefined ? Registry.REGISTRY_FILE : arguments[1]; | ||
let registryFile = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Registry.REGISTRY_FILE; | ||
@@ -369,0 +369,0 @@ return new Registry(fs.s3, fs.bucket, fs.getPath(registryFile)); |
{ | ||
"name": "deep-fs", | ||
"version": "1.9.8", | ||
"version": "1.10.0", | ||
"description": "DEEP File System Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
51104