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

fake-indexeddb

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fake-indexeddb - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

lib/addDomStringListMethods.js

6

lib/FDBDatabase.js

@@ -12,2 +12,3 @@ 'use strict';

var TransactionInactiveError = require('./errors/TransactionInactiveError');
var addDomStringListMethods = require('./addDomStringListMethods');
var validateKeyPath = require('./validateKeyPath');

@@ -63,2 +64,3 @@

this.objectStoreNames = Object.keys(rawDatabase.rawObjectStores).sort();
addDomStringListMethods(this.objectStoreNames);

@@ -87,2 +89,3 @@ this.createObjectStore = function (name, optionalParameters) {

this.objectStoreNames = objectStoreNames;
addDomStringListMethods(this.objectStoreNames);
delete this._rawDatabase.rawObjectStores[name];

@@ -110,2 +113,3 @@ }.bind(this, this.objectStoreNames.slice()));

});
addDomStringListMethods(this.objectStoreNames);

@@ -170,2 +174,2 @@ transaction._rollbackLog.push(function (store) {

module.exports = FDBDatabase;
module.exports = FDBDatabase;

@@ -16,2 +16,3 @@ 'use strict';

var TransactionInactiveError = require('./errors/TransactionInactiveError');
var addDomStringListMethods = require('./addDomStringListMethods');
var cmp = require('./cmp');

@@ -76,5 +77,6 @@ var extractKey = require('./extractKey');

this.keyPath = rawObjectStore.keyPath;
this.indexNames = Object.keys(rawObjectStore.rawIndexes).sort();
this.autoIncrement = rawObjectStore.autoIncrement;
this.transaction = transaction;
this.indexNames = Object.keys(rawObjectStore.rawIndexes).sort();
addDomStringListMethods(this.indexNames);

@@ -191,2 +193,3 @@ this.put = function (value, key) {

this.indexNames = indexNames;
addDomStringListMethods(this.indexNames);
delete this._rawObjectStore.rawIndexes[name];

@@ -249,2 +252,3 @@ }.bind(this, this.indexNames.slice()));

});
addDomStringListMethods(this.indexNames);
this._rawObjectStore.rawIndexes[name].deleted = true; // Not sure if this is supposed to happen synchronously

@@ -251,0 +255,0 @@

2

package.json
{
"name": "fake-indexeddb",
"version": "1.0.5",
"version": "1.0.6",
"description": "Fake IndexedDB: a pure JS in-memory implementation of the IndexedDB API",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/dumbmatter/fakeIndexedDB",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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