From 5eee57739b8c1909585da1734a25ce2383688755 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 13 Oct 2019 23:33:22 +0300 Subject: [PATCH] Add manifest (Level/community#83) Cherry-picked from Level/leveldown#685. Closes #144. --- leveldown.js | 14 +++++++++++++- package.json | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/leveldown.js b/leveldown.js index 4452190b..efb31f62 100644 --- a/leveldown.js +++ b/leveldown.js @@ -13,7 +13,19 @@ function LevelDOWN (location) { throw new Error('constructor requires a location string argument') } - AbstractLevelDOWN.call(this) + AbstractLevelDOWN.call(this, { + bufferKeys: true, + snapshots: true, + permanence: true, + seek: true, + clear: true, + createIfMissing: true, + errorIfExists: true, + additionalMethods: { + approximateSize: true, + compactRange: true + } + }) this.location = location this.context = binding.db_init() diff --git a/package.json b/package.json index fa7f2c4b..25368a22 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "prepublishOnly": "npm run dependency-check" }, "dependencies": { - "abstract-leveldown": "~6.1.1", + "abstract-leveldown": "~6.2.2", "napi-macros": "~2.0.0", "node-gyp-build": "~4.1.0" },