git ssb

3+

Dominic / ssb-blobs



Commit 03ad7657f11965b991c027e2b67673e2f52fab17

Provide getSlice method

cel committed on 6/3/2017, 4:27:27 AM
Parent: 2b6465e604e3510c4512fec6f6f3dfce1b407702

Files changed

index.jschanged
inject.jschanged
package.jsonchanged
index.jsView
@@ -5,8 +5,9 @@
55 var Level = require('level')
66
77 exports.manifest = {
88 get: 'source',
9 + getSlice: 'source',
910 add: 'sink',
1011 rm: 'async',
1112 ls: 'source',
1213 has: 'async',
@@ -22,9 +23,9 @@
2223
2324 exports.version = require('./package.json').version
2425
2526 exports.permissions = {
26- anonymous: {allow: ['has', 'get', 'changes', 'createWants']},
27 + anonymous: {allow: ['has', 'get', 'getSlice', 'changes', 'createWants']},
2728 }
2829
2930 exports.init = function (sbot, config) {
3031 var blobs = Inject(
inject.jsView
@@ -269,8 +269,9 @@
269269 }
270270 },
271271 size: blobs.size,
272272 get: blobs.get,
273 + getSlice: blobs.getSlice,
273274 add: blobs.add,
274275 rm: blobs.rm,
275276 ls: blobs.ls,
276277 changes: function () {
package.jsonView
@@ -9,18 +9,17 @@
99 },
1010 "dependencies": {
1111 "cont": "^1.0.3",
1212 "level": "^1.4.0",
13- "multiblob": "^1.10.0",
13 + "multiblob": "^1.11.0",
1414 "pull-level": "^1.5.2",
1515 "pull-notify": "^0.1.0",
1616 "pull-stream": "^3.3.0",
1717 "ssb-ref": "^2.3.0"
1818 },
1919 "devDependencies": {
2020 "interleavings": "^0.3.1",
2121 "mkdirp": "^0.5.1",
22- "multiblob": "^1.9.3",
2322 "osenv": "^0.1.3",
2423 "pull-bitflipper": "^0.1.0",
2524 "rimraf": "^2.5.2",
2625 "secret-stack": "^2.5.1",

Built with git-ssb-web