Skip to content

Commit

Permalink
Build and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
evertonfraga committed Mar 4, 2020
1 parent e21f759 commit c9161f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ var isDirectory = function isDirectory(path) {
return fs.lstat(path);
}).then(function (stats) {
return stats.isDirectory();
}).catch(function () {
})["catch"](function () {
return false;
});
}; // String -> Promise String
Expand Down Expand Up @@ -177,7 +177,7 @@ var safeDownloadArchived = function safeDownloadArchived(url) {
return checksum(fileHash)(filePath);
}).then(function () {
return filePath;
}).catch(function () {
})["catch"](function () {
return fs.exists(archiveDir).then(function (exists) {
return !exists ? fs.mkdir(archiveDir) : null;
}).then(function () {
Expand Down Expand Up @@ -252,7 +252,7 @@ var test = function test() {
return safeDownloadArchived(archiveUrl)(archiveHash)(fileHash)(filePath);
}).then(function () {
return true;
}).catch(false).finally(function () {
})["catch"](false)["finally"](function () {
return httpMock.close();
});
};
Expand Down
8 changes: 4 additions & 4 deletions lib/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ module.exports = function (_ref) {

return resolve(data);
});
}).catch(function (e) {
})["catch"](function (e) {
return n > 0 && attempt(n - 1);
});
};
Expand Down Expand Up @@ -493,7 +493,7 @@ module.exports = function (_ref) {
swarmProcess.stderr.on('data', handleProcessOutput); //swarmProcess.on('close', () => setTimeout(restart, 2000));

var restart = function restart() {
return startProcess(swarmSetup).then(resolve).catch(reject);
return startProcess(swarmSetup).then(resolve)["catch"](reject);
};

var error = function error() {
Expand Down Expand Up @@ -559,7 +559,7 @@ module.exports = function (_ref) {
var testHash = "c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7";
return uploadData(swarmUrl)(testFile).then(function (hash) {
return hash === testHash;
}).catch(function () {
})["catch"](function () {
return false;
});
}; // String -> String ~> Promise Bool
Expand Down Expand Up @@ -670,4 +670,4 @@ module.exports = function (_ref) {
fromString: fromString,
toString: toString
};
};
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swarm-js",
"version": "0.1.39",
"version": "0.1.40",
"description": "Swarm tools for JavaScript.",
"main": "lib/api-node.js",
"browser": "lib/api-browser.js",
Expand Down

0 comments on commit c9161f5

Please sign in to comment.