|
1 | 1 | 'use strict' |
2 | 2 |
|
3 | | -module.exports = self => ({ |
4 | | - add: require('./add')(self), |
5 | | - addFromFs: require('./add-from-fs')(self), |
6 | | - addFromStream: require('./add-from-stream')(self), |
7 | | - addFromURL: require('./add-from-url')(self), |
8 | | - addPullStream: require('./add-pull-stream')(self), |
9 | | - addReadableStream: require('./add-readable-stream')(self), |
10 | | - cat: require('./cat')(self), |
11 | | - catPullStream: require('./cat-pull-stream')(self), |
12 | | - catReadableStream: require('./cat-readable-stream')(self), |
13 | | - get: require('./get')(self), |
14 | | - getPullStream: require('./get-pull-stream')(self), |
15 | | - getReadableStream: require('./get-readable-stream')(self), |
16 | | - ls: require('./ls')(self), |
17 | | - lsPullStream: require('./ls-pull-stream')(self), |
18 | | - lsReadableStream: require('./ls-readable-stream')(self) |
19 | | -}) |
| 3 | +module.exports = (self) => { |
| 4 | + const filesRegular = { |
| 5 | + add: require('./add')(self), |
| 6 | + addFromFs: require('./add-from-fs')(self), |
| 7 | + addFromStream: require('./add-from-stream')(self), |
| 8 | + addFromURL: require('./add-from-url')(self), |
| 9 | + addPullStream: require('./add-pull-stream')(self), |
| 10 | + addReadableStream: require('./add-readable-stream')(self), |
| 11 | + cat: require('./cat')(self), |
| 12 | + catPullStream: require('./cat-pull-stream')(self), |
| 13 | + catReadableStream: require('./cat-readable-stream')(self), |
| 14 | + get: require('./get')(self), |
| 15 | + getPullStream: require('./get-pull-stream')(self), |
| 16 | + getReadableStream: require('./get-readable-stream')(self), |
| 17 | + ls: require('./ls')(self), |
| 18 | + lsPullStream: require('./ls-pull-stream')(self), |
| 19 | + lsReadableStream: require('./ls-readable-stream')(self), |
| 20 | + refs: require('./refs')(self), |
| 21 | + refsReadableStream: require('./refs-readable-stream')(self), |
| 22 | + refsPullStream: require('./refs-pull-stream')(self) |
| 23 | + } |
| 24 | + filesRegular.refs.local = require('./refs-local')(self) |
| 25 | + filesRegular.refs.localReadableStream = require('./refs-local-readable-stream')(self) |
| 26 | + filesRegular.refs.localPullStream = require('./refs-local-pull-stream')(self) |
| 27 | + return filesRegular |
| 28 | +} |
0 commit comments