Commit 03ad7657f11965b991c027e2b67673e2f52fab17
Provide getSlice method
cel committed on 6/3/2017, 4:27:27 AMParent: 2b6465e604e3510c4512fec6f6f3dfce1b407702
Files changed
index.js | changed |
inject.js | changed |
package.json | changed |
index.js | |||
---|---|---|---|
@@ -5,8 +5,9 @@ | |||
5 | 5 … | var Level = require('level') | |
6 | 6 … | ||
7 | 7 … | exports.manifest = { | |
8 | 8 … | get: 'source', | |
9 … | + getSlice: 'source', | ||
9 | 10 … | add: 'sink', | |
10 | 11 … | rm: 'async', | |
11 | 12 … | ls: 'source', | |
12 | 13 … | has: 'async', | |
@@ -22,9 +23,9 @@ | |||
22 | 23 … | ||
23 | 24 … | exports.version = require('./package.json').version | |
24 | 25 … | ||
25 | 26 … | exports.permissions = { | |
26 | - anonymous: {allow: ['has', 'get', 'changes', 'createWants']}, | ||
27 … | + anonymous: {allow: ['has', 'get', 'getSlice', 'changes', 'createWants']}, | ||
27 | 28 … | } | |
28 | 29 … | ||
29 | 30 … | exports.init = function (sbot, config) { | |
30 | 31 … | var blobs = Inject( |
inject.js | ||
---|---|---|
@@ -269,8 +269,9 @@ | ||
269 | 269 … | } |
270 | 270 … | }, |
271 | 271 … | size: blobs.size, |
272 | 272 … | get: blobs.get, |
273 … | + getSlice: blobs.getSlice, | |
273 | 274 … | add: blobs.add, |
274 | 275 … | rm: blobs.rm, |
275 | 276 … | ls: blobs.ls, |
276 | 277 … | changes: function () { |
package.json | ||
---|---|---|
@@ -9,18 +9,17 @@ | ||
9 | 9 … | }, |
10 | 10 … | "dependencies": { |
11 | 11 … | "cont": "^1.0.3", |
12 | 12 … | "level": "^1.4.0", |
13 | - "multiblob": "^1.10.0", | |
13 … | + "multiblob": "^1.11.0", | |
14 | 14 … | "pull-level": "^1.5.2", |
15 | 15 … | "pull-notify": "^0.1.0", |
16 | 16 … | "pull-stream": "^3.3.0", |
17 | 17 … | "ssb-ref": "^2.3.0" |
18 | 18 … | }, |
19 | 19 … | "devDependencies": { |
20 | 20 … | "interleavings": "^0.3.1", |
21 | 21 … | "mkdirp": "^0.5.1", |
22 | - "multiblob": "^1.9.3", | |
23 | 22 … | "osenv": "^0.1.3", |
24 | 23 … | "pull-bitflipper": "^0.1.0", |
25 | 24 … | "rimraf": "^2.5.2", |
26 | 25 … | "secret-stack": "^2.5.1", |
Built with git-ssb-web