This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alan Shaw
committed
Jan 23, 2020
1 parent
d7eb0e8
commit 08425af
Showing
73 changed files
with
601 additions
and
957 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
'use strict' | ||
|
||
const callbackify = require('callbackify') | ||
|
||
module.exports = (config) => ({ | ||
wantlist: callbackify.variadic(require('./wantlist')(config)), | ||
stat: callbackify.variadic(require('./stat')(config)), | ||
unwant: callbackify.variadic(require('./unwant')(config)) | ||
module.exports = config => ({ | ||
wantlist: require('./wantlist')(config), | ||
stat: require('./stat')(config), | ||
unwant: require('./unwant')(config) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,8 @@ | ||
'use strict' | ||
|
||
const nodeify = require('promise-nodeify') | ||
const callbackify = require('callbackify') | ||
const { collectify } = require('../lib/converters') | ||
|
||
module.exports = config => { | ||
const rm = require('./rm-async-iterator')(config) | ||
|
||
return { | ||
get: callbackify.variadic(require('./get')(config)), | ||
stat: callbackify.variadic(require('./stat')(config)), | ||
put: callbackify.variadic(require('./put')(config)), | ||
rm: (input, options, callback) => { | ||
if (typeof options === 'function') { | ||
callback = options | ||
options = {} | ||
} | ||
return nodeify(collectify(rm)(input, options), callback) | ||
}, | ||
_rmAsyncIterator: rm | ||
} | ||
} | ||
module.exports = config => ({ | ||
get: require('./get')(config), | ||
stat: require('./stat')(config), | ||
put: require('./put')(config), | ||
rm: require('./rm')(config) | ||
}) |
Oops, something went wrong.