localstorage-down
Advanced tools
Comparing version 0.4.1 to 0.4.2
13
index.js
@@ -186,2 +186,15 @@ var util = require('util') | ||
ld.destroy = function (name, callback) { | ||
try { | ||
Object.keys(localStorage) | ||
.forEach(function (key) { | ||
if (key.substring(0, name.length + 1) == (name + "!")) { | ||
localStorage.removeItem(key) | ||
} | ||
}) | ||
callback() | ||
} catch (e) { | ||
// fail gracefully if no localStorage | ||
} | ||
} | ||
@@ -188,0 +201,0 @@ |
{ | ||
"name" : "localstorage-down" | ||
, "description" : "A Node.js and browserify leveldown API implementation that maps to localstorage in the browser" | ||
, "contributors" : [ | ||
"Anton Whalley <antonwhalley@vodafone.ie> (https://github.com/no9)", | ||
"Adam Shih (https://github.com/adamshih)" | ||
"name": "localstorage-down", | ||
"description": "A Node.js and browserify leveldown API implementation that maps to localstorage in the browser", | ||
"contributors": [ | ||
"Anton Whalley <antonwhalley@vodafone.ie> (https://github.com/no9)", | ||
"Adam Shih (https://github.com/adamshih)" | ||
], | ||
"keywords": [ | ||
"leveldb", | ||
"localstorage", | ||
"leveldown", | ||
"levelup" | ||
], | ||
"version": "0.4.2", | ||
"main": "index.js", | ||
"dependencies": { | ||
"abstract-leveldown": "0.11.3" | ||
}, | ||
"devDependencies": { | ||
"tape": "2.3.2", | ||
"levelup": "^0.18.2" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/no9/localstorage-down.git" | ||
}, | ||
"browser": { | ||
"bindings": false | ||
}, | ||
"testling": { | ||
"files": [ | ||
"tests/test.js" | ||
], | ||
"browsers": [ | ||
"iexplore/10.0", | ||
"chrome/30.0", | ||
"chrome/31.0", | ||
"firefox/25.0", | ||
"firefox/24.0", | ||
"opera/15.0", | ||
"opera/16.0", | ||
"opera/17.0", | ||
"safari/5.0.5", | ||
"safari/5.1", | ||
"firefox/nightly", | ||
"opera/next", | ||
"chrome/canary", | ||
"iphone/6.0", | ||
"ipad/6.0", | ||
"safari/6.0", | ||
"android-browser/4.2" | ||
] | ||
, "keywords": [ | ||
"leveldb", | ||
"localstorage", | ||
"leveldown", | ||
"levelup" | ||
] | ||
, "version" : "0.4.1" | ||
, "main" : "index.js" | ||
, "dependencies" : { | ||
"abstract-leveldown": "0.11.3" | ||
} | ||
, "devDependencies" : { | ||
"tape": "2.3.2" | ||
} | ||
, "repository" : { | ||
"type" : "git" | ||
, "url" : "https://github.com/no9/localstorage-down.git" | ||
} | ||
,"browser": { | ||
"bindings": false | ||
} | ||
,"testling": { | ||
"files": ["tests/test.js"], | ||
"browsers": ["iexplore/10.0", "chrome/30.0","chrome/31.0","firefox/25.0","firefox/24.0", "opera/15.0","opera/16.0","opera/17.0","safari/5.0.5","safari/5.1","firefox/nightly","opera/next","chrome/canary","iphone/6.0","ipad/6.0","safari/6.0", "android-browser/4.2"] | ||
} | ||
, "license" : "MIT" | ||
, "gypfile" : false | ||
}, | ||
"license": "MIT", | ||
"gypfile": false | ||
} |
@@ -73,3 +73,3 @@ # localstorage-down | ||
(http://localhost:9966)[http://localhost:9966] | ||
[http://localhost:9966](http://localhost:9966) | ||
@@ -76,0 +76,0 @@ Listen to John Cage : |
@@ -28,2 +28,3 @@ var tape = require('tape') | ||
require('./custom-tests.js').all(leveldown, tape, testCommon) | ||
@@ -30,0 +31,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
21112
9
493
2