fake-indexeddb
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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 @@ |
{ | ||
"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
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
4
1
334318
40
7953