Skip to content

Commit

Permalink
Provide getSlice method
Browse files Browse the repository at this point in the history
  • Loading branch information
cel authored and cel committed Jun 3, 2017
1 parent 2b6465e commit 03ad765
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -6,6 +6,7 @@ var Level = require('level')

exports.manifest = {
get: 'source',
getSlice: 'source',
add: 'sink',
rm: 'async',
ls: 'source',
Expand All @@ -23,7 +24,7 @@ exports.name = 'blobs'
exports.version = require('./package.json').version

exports.permissions = {
anonymous: {allow: ['has', 'get', 'changes', 'createWants']},
anonymous: {allow: ['has', 'get', 'getSlice', 'changes', 'createWants']},
}

exports.init = function (sbot, config) {
Expand Down
1 change: 1 addition & 0 deletions inject.js
Expand Up @@ -270,6 +270,7 @@ module.exports = function inject (blobs, set, name, opts) {
},
size: blobs.size,
get: blobs.get,
getSlice: blobs.getSlice,
add: blobs.add,
rm: blobs.rm,
ls: blobs.ls,
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"cont": "^1.0.3",
"level": "^1.4.0",
"multiblob": "^1.10.0",
"multiblob": "^1.11.0",
"pull-level": "^1.5.2",
"pull-notify": "^0.1.0",
"pull-stream": "^3.3.0",
Expand All @@ -19,7 +19,6 @@
"devDependencies": {
"interleavings": "^0.3.1",
"mkdirp": "^0.5.1",
"multiblob": "^1.9.3",
"osenv": "^0.1.3",
"pull-bitflipper": "^0.1.0",
"rimraf": "^2.5.2",
Expand Down

0 comments on commit 03ad765

Please sign in to comment.