stx-persist-rocksdb
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -1,8 +0,8 @@ | ||
var rocksdb = require('rocksdb'); | ||
const rocksdb = require('rocksdb'); | ||
var define = function (object, key, value) { | ||
Object.defineProperty(object, key, { value: value, configurable: true }); | ||
const define = function (object, key, value) { | ||
Object.defineProperty(object, key, { value, configurable: true }); | ||
}; | ||
var PersistRocksDB = function (name) { | ||
const PersistRocksDB = function (name) { | ||
this.db = rocksdb(name); | ||
@@ -12,6 +12,4 @@ }; | ||
define(PersistRocksDB.prototype, 'start', function () { | ||
var this$1 = this; | ||
return new Promise( | ||
function (resolve, reject) { return this$1.db.open(function (error) { return error ? reject(error) : resolve(); }); } | ||
(resolve, reject) => this.db.open(error => error ? reject(error) : resolve()) | ||
) | ||
@@ -21,3 +19,3 @@ }); | ||
define(PersistRocksDB.prototype, 'store', function (key, value) { | ||
this.db.put(key, JSON.stringify(value), function (error) { | ||
this.db.put(key, JSON.stringify(value), error => { | ||
if (error) { | ||
@@ -29,4 +27,12 @@ console.error(error); | ||
define(PersistRocksDB.prototype, 'store', function (key, value) { | ||
this.db.put(key, JSON.stringify(value), error => { | ||
if (error) { | ||
console.error(error); | ||
} | ||
}); | ||
}); | ||
define(PersistRocksDB.prototype, 'remove', function (key) { | ||
this.db.del(key, function (error) { | ||
this.db.del(key, error => { | ||
if (error) { | ||
@@ -39,3 +45,3 @@ console.error(error); | ||
define(PersistRocksDB.prototype, 'load', function (loadLeaf) { | ||
var iterator = this.db.iterator({ | ||
const iterator = this.db.iterator({ | ||
keyAsBuffer: false, | ||
@@ -45,4 +51,4 @@ valueAsBuffer: false | ||
return new Promise(function (resolve, reject) { | ||
var consumeIterator = function (error, key, value) { | ||
return new Promise((resolve, reject) => { | ||
const consumeIterator = (error, key, value) => { | ||
if (error) { | ||
@@ -63,10 +69,8 @@ reject(error); | ||
define(PersistRocksDB.prototype, 'stop', function () { | ||
var this$1 = this; | ||
return new Promise(function (resolve, reject) { return this$1.db.close( | ||
function (error) { return error ? reject(error) : resolve(); } | ||
); }) | ||
return new Promise((resolve, reject) => this.db.close( | ||
error => error ? reject(error) : resolve() | ||
)) | ||
}); | ||
export { PersistRocksDB }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXMuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCByb2Nrc2RiID0gcmVxdWlyZSgncm9ja3NkYicpXG5cbmNvbnN0IGRlZmluZSA9IGZ1bmN0aW9uIChvYmplY3QsIGtleSwgdmFsdWUpIHtcbiAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iamVjdCwga2V5LCB7IHZhbHVlLCBjb25maWd1cmFibGU6IHRydWUgfSlcbn1cblxuY29uc3QgUGVyc2lzdFJvY2tzREIgPSBmdW5jdGlvbiAobmFtZSkge1xuICB0aGlzLmRiID0gcm9ja3NkYihuYW1lKVxufVxuXG5kZWZpbmUoUGVyc2lzdFJvY2tzREIucHJvdG90eXBlLCAnc3RhcnQnLCBmdW5jdGlvbiAoKSB7XG4gIHJldHVybiBuZXcgUHJvbWlzZShcbiAgICAocmVzb2x2ZSwgcmVqZWN0KSA9PiB0aGlzLmRiLm9wZW4oZXJyb3IgPT4gZXJyb3IgPyByZWplY3QoZXJyb3IpIDogcmVzb2x2ZSgpKVxuICApXG59KVxuXG5kZWZpbmUoUGVyc2lzdFJvY2tzREIucHJvdG90eXBlLCAnc3RvcmUnLCBmdW5jdGlvbiAoa2V5LCB2YWx1ZSkge1xuICB0aGlzLmRiLnB1dChrZXksIEpTT04uc3RyaW5naWZ5KHZhbHVlKSwgZXJyb3IgPT4ge1xuICAgIGlmIChlcnJvcikge1xuICAgICAgY29uc29sZS5lcnJvcihlcnJvcilcbiAgICB9XG4gIH0pXG59KVxuXG5kZWZpbmUoUGVyc2lzdFJvY2tzREIucHJvdG90eXBlLCAncmVtb3ZlJywgZ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0VBQzNELE1BQU0sUUFBUSxHQUFHLElBQUksQ0FBQyxFQUFFLENBQUMsUUFBUSxDQUFDO0lBQ2hDLFdBQVcsRUFBRSxLQUFLO0lBQ2xCLGFBQWEsRUFBRSxLQUFLO0dBQ3JCLEVBQUM7O0VBRUYsT0FBTyxJQUFJLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxNQUFNLEtBQUs7SUFDdEMsTUFBTSxlQUFlLEdBQUcsQ0FBQyxLQUFLLEVBQUUsR0FBRyxFQUFFLEtBQUssS0FBSztNQUM3QyxJQUFJLEtBQUssRUFBRTtRQUNULE1BQU0sQ0FBQyxLQUFLLEVBQUM7T0FDZCxNQUFNLElBQUksR0FBRyxJQUFJLEtBQUssRUFBRTtRQUN2QixRQUFRLENBQUMsR0FBRyxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLEVBQUM7UUFDaEMsUUFBUSxDQUFDLElBQUksQ0FBQyxlQUFlLEVBQUM7T0FDL0IsTUFBTTtRQUNMLE9BQU8sR0FBRTtPQUNWO01BQ0Y7O0lBRUQsUUFBUSxDQUFDLElBQUksQ0FBQyxlQUFlLEVBQUM7R0FDL0IsQ0FBQztDQUNILEVBQUM7O0FBRUYsTUFBTSxDQUFDLGNBQWMsQ0FBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLFlBQVk7RUFDbkQsT0FBTyxJQUFJLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxNQUFNLEtBQUssSUFBSSxDQUFDLEVBQUUsQ0FBQyxLQUFLO0lBQ25ELEtBQUssSUFBSSxLQUFLLEdBQUcsTUFBTSxDQUFDLEtBQUssQ0FBQyxHQUFHLE9BQU8sRUFBRTtHQUMzQyxDQUFDO0NBQ0gsQ0FBQzs7OzsifQ== |
@@ -29,2 +29,10 @@ 'use strict'; | ||
define(PersistRocksDB.prototype, 'store', function (key, value) { | ||
this.db.put(key, JSON.stringify(value), error => { | ||
if (error) { | ||
console.error(error); | ||
} | ||
}); | ||
}); | ||
define(PersistRocksDB.prototype, 'remove', function (key) { | ||
@@ -31,0 +39,0 @@ this.db.del(key, error => { |
{ | ||
"name": "stx-persist-rocksdb", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "RocksDB persistence plugin for stx", | ||
@@ -38,14 +38,11 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"coveralls": "^3.0.2", | ||
"istanbul": "next", | ||
"nodemon": "^1.18.7", | ||
"rollup": "0.67.3", | ||
"rollup-plugin-buble": "0.19.4", | ||
"nodemon": "^1.19.1", | ||
"rollup": "1.20.1", | ||
"rollup-plugin-local-resolve": "^1.0.7", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"standard": "^12.0.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"standard": "^14.0.2", | ||
"stx": "latest", | ||
"tap-difflet": "0.7.1", | ||
"tape": "^4.9.1" | ||
"tap-difflet": "0.7.2", | ||
"tape": "^4.11.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10824
8
138