Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

localforage-sessionstoragewrapper

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localforage-sessionstoragewrapper - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

9

bower.json
{
"name": "localforage-sessionstoragewrapper",
"version": "1.1.0",
"main": [

@@ -22,11 +21,3 @@ "src/localforage-sessionstoragewrapper.js"

"localforage": ">=1.2.1"
},
"devDependencies": {
"es6-promise": "~1.0.0",
"requirejs": "~2.1.10",
"mocha": "~1.18.2",
"expect": "~0.3.1",
"assert": "~0.1.0",
"modernizr": "~2.8.1"
}
}

7

package.json

@@ -9,3 +9,3 @@ {

],
"version": "1.1.0",
"version": "1.2.0",
"homepage": "https://github.com/thgreasi/localForage-sessionStorageWrapper",

@@ -31,2 +31,3 @@ "repository": {

"load-grunt-tasks": "^0.4.0",
"localforage": ">=1.2.1",
"mocha": "^1.18.2",

@@ -42,5 +43,5 @@ "phantomjs": "^1.9.7-12",

},
"dependencies": {
"promise": "^5.0.0"
"peerDependencies": {
"localforage": ">=1.2.1"
}
}
localForage-sessionStorageWrapper
=================================
[![npm](https://img.shields.io/npm/dm/localForage-sessionStorageWrapper.svg)](https://www.npmjs.com/package/localforage-sessionstoragewrapper)
A sessionStorage driver for [localForage](https://github.com/mozilla/localForage).
# Requirements
* [localForage](https://github.com/mozilla/localForage) v1.2.1+
# Installation
`npm i localforage-sessionstoragewrapper`
## Example
[jsfiddle](https://jsfiddle.net/m8o7t2pd/)

@@ -25,3 +25,3 @@ (function() {

} catch (e) {
}

@@ -58,2 +58,11 @@

function _getKeyPrefix(options, defaultConfig) {
var keyPrefix = options.name + '/';
if (options.storeName !== defaultConfig.storeName) {
keyPrefix += options.storeName + '/';
}
return keyPrefix;
}
// Config the sessionStorage backend, using options set in the config.

@@ -69,3 +78,3 @@ function _initStorage(options) {

dbInfo.keyPrefix = dbInfo.name + '/';
dbInfo.keyPrefix = _getKeyPrefix(options, self._defaultConfig);

@@ -72,0 +81,0 @@ self._dbInfo = dbInfo;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc