kad-chromestorage
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -12,2 +12,3 @@ var _ = require('lodash') | ||
KadChromeStorage.prototype.get = function (key, cb) { | ||
var self = this | ||
chrome.storage.local.get(this._prefix + key, function (items) { | ||
@@ -19,6 +20,6 @@ if (!cb) { | ||
cb(new Error('error while retrieving key ' + key)) | ||
} else if (!_.has(items, key)) { | ||
} else if (!_.has(items, self._prefix + key)) { | ||
cb(new Error('key not found ' + key)) | ||
} else { | ||
cb(null, items[key]) | ||
cb(null, items[self._prefix + key]) | ||
} | ||
@@ -25,0 +26,0 @@ }) |
{ | ||
"name": "kad-chromestorage", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "an interface to chrome storage for kad", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
4422
68