New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

idb-wrapper

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

idb-wrapper - npm Package Compare versions

Comparing version 1.7.1 to 1.7.2

2

bower.json

@@ -5,4 +5,4 @@ {

"main": "idbstore.js",
"version": "1.7.1",
"version": "1.7.2",
"dependencies": {}
}

@@ -18,3 +18,3 @@ {

"footer": "",
"copyright": "Copyright © 2016 <a href='http://jensarps.de/' target='_blank'>Jens Arps</a>",
"copyright": "Copyright © 2017 <a href='http://jensarps.de/' target='_blank'>Jens Arps</a>",
"navType": "vertical",

@@ -21,0 +21,0 @@ "outputSourceFiles": true,

@@ -5,7 +5,7 @@ /*global window:false, self:false, define:false, module:false */

* @license IDBWrapper - A cross-browser wrapper for IndexedDB
* Version 1.7.1
* Copyright (c) 2011 - 2016 Jens Arps
* Version 1.7.2
* Copyright (c) 2011 - 2017 Jens Arps
* http://jensarps.de/
*
* Licensed under the MIT (X11) license
* Licensed under the MIT license
*/

@@ -58,3 +58,3 @@

* @name IDBStore
* @version 1.7.1
* @version 1.7.2
*

@@ -169,3 +169,3 @@ * @param {Object} [kwArgs] An options object used to configure the store and

*/
version: '1.7.1',
version: '1.7.2',

@@ -172,0 +172,0 @@ /**

/*
IDBWrapper - A cross-browser wrapper for IndexedDB
Version 1.7.1
Copyright (c) 2011 - 2016 Jens Arps
Version 1.7.2
Copyright (c) 2011 - 2017 Jens Arps
http://jensarps.de/
Licensed under the MIT (X11) license
Licensed under the MIT license
*/
(function(p,h,k){"function"===typeof define?define(h):"undefined"!==typeof module&&module.exports?module.exports=h():k[p]=h()})("IDBStore",function(){function p(a,b){var c,d;for(c in b)d=b[c],d!==u[c]&&d!==a[c]&&(a[c]=d);return a}var h=function(a){throw a;},k=function(){},r={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:h,indexes:[],implementationPreference:["indexedDB","webkitIndexedDB","mozIndexedDB","shimIndexedDB"]},q=function(a,
b){"undefined"==typeof b&&"function"==typeof a&&(b=a);"[object Object]"!=Object.prototype.toString.call(a)&&(a={});for(var c in r)this[c]="undefined"!=typeof a[c]?a[c]:r[c];this.dbName=this.storePrefix+this.storeName;this.dbVersion=parseInt(this.dbVersion,10)||1;b&&(this.onStoreReady=b);var d="object"==typeof window?window:self;this.implementation=this.implementationPreference.filter(function(a){return a in d})[0];this.idb=d[this.implementation];this.keyRange=d.IDBKeyRange||d.webkitIDBKeyRange||d.mozIDBKeyRange;
this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"};this.openDB()},t={constructor:q,version:"1.7.1",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var a=this.idb.open(this.dbName,this.dbVersion),
this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"};this.openDB()},t={constructor:q,version:"1.7.2",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var a=this.idb.open(this.dbName,this.dbVersion),
b=!1;a.onerror=function(a){var b;b="error"in a.target?"VersionError"==a.target.error.name:"errorCode"in a.target?12==a.target.errorCode:!1;if(b)this.onError(Error("The version number provided is lower than the existing one."));else a.target.error?a=a.target.error:(b="IndexedDB unknown error occurred when opening DB "+this.dbName+" version "+this.dbVersion,"errorCode"in a.target&&(b+=" with error code "+a.target.errorCode),a=Error(b)),this.onError(a)}.bind(this);a.onsuccess=function(a){if(!b)if(this.db)this.onStoreReady();

@@ -13,0 +13,0 @@ else if(this.db=a.target.result,"string"==typeof this.db.version)this.onError(Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."));else if(this.db.objectStoreNames.contains(this.storeName)){this.store=this.db.transaction([this.storeName],this.consts.READ_ONLY).objectStore(this.storeName);var d=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach(function(a){var c=a.name;if(c)if(this.normalizeIndexData(a),this.hasIndex(c)){var g=this.store.index(c);

{
"name": "idb-wrapper",
"version": "1.7.1",
"version": "1.7.2",
"description": "A cross-browser wrapper for IndexedDB",

@@ -20,17 +20,17 @@ "keywords": [

"devDependencies": {
"chai": "^3.5",
"chai": "^4.1.2",
"grunt": "^1.0.1",
"grunt-closurecompiler": "^0.9.9",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-jshint": "^1.0.0",
"grunt-jsdoc": "^2.1.0",
"grunt-contrib-jshint": "^1.1.0",
"grunt-jsdoc": "^2.2.0",
"grunt-karma": "^2.0.0",
"grunt-md2html": "^0.3.1",
"jsdoc-oblivion": "0.0.4",
"karma": "^1.2.0",
"jsdoc-oblivion": "^0.0.9",
"karma": "^1.7.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.0.0",
"karma-firefox-launcher": "^1.0.0",
"karma-mocha": "^1.1.1",
"mocha": "^3.0.2"
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "^1.0.1",
"karma-mocha": "^1.3.0",
"mocha": "^4.0.1"
},

@@ -37,0 +37,0 @@ "license": "MIT",

[![NPM version](https://badge.fury.io/js/idb-wrapper.svg)](http://badge.fury.io/js/idb-wrapper)
[![Dependency Status](https://gemnasium.com/jensarps/IDBWrapper.png)](https://gemnasium.com/jensarps/IDBWrapper)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjensarps%2FIDBWrapper.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjensarps%2FIDBWrapper?ref=badge_shield)

@@ -111,5 +112,3 @@

License
===
[MIT style (X11)](https://github.com/jensarps/IDBWrapper/blob/master/LICENSE)
## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjensarps%2FIDBWrapper.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjensarps%2FIDBWrapper?ref=badge_large)

Sorry, the diff of this file is not supported yet

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