Socket
Socket
Sign inDemoInstall

fake-indexeddb

Package Overview
Dependencies
10
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-beta.3 to 4.0.0-beta.5

auto/index.js

2

build/cjs/lib/extractKey.js

@@ -49,3 +49,3 @@ "use strict";

if (!object.hasOwnProperty(identifier)) {
if (object === undefined || object === null || !object.hasOwnProperty(identifier)) {
return;

@@ -52,0 +52,0 @@ }

@@ -17,5 +17,3 @@ "use strict";

const structuredCloneWrapper = input => {
// @ts-expect-error
if (typeof structuredClone !== "undefined") {
// @ts-expect-error
return structuredClone(input);

@@ -22,0 +20,0 @@ }

@@ -39,3 +39,3 @@ import valueToKey from "./valueToKey.js"; // http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-steps-for-extracting-a-key-from-a-value-using-a-key-path

if (!object.hasOwnProperty(identifier)) {
if (object === undefined || object === null || !object.hasOwnProperty(identifier)) {
return;

@@ -42,0 +42,0 @@ }

@@ -7,5 +7,3 @@ // Built-in structuredClone arrived in Node 17, so we need to keep this file around as long as we support Node 16

const structuredCloneWrapper = input => {
// @ts-expect-error
if (typeof structuredClone !== "undefined") {
// @ts-expect-error
return structuredClone(input);

@@ -12,0 +10,0 @@ }

{
"name": "fake-indexeddb",
"version": "4.0.0-beta.3",
"version": "4.0.0-beta.5",
"description": "Fake IndexedDB: a pure JS in-memory implementation of the IndexedDB API",

@@ -32,4 +32,4 @@ "homepage": "https://github.com/dumbmatter/fakeIndexedDB",

"./auto": {
"import": "./auto.js",
"require": "./auto.cjs"
"import": "./auto/index.mjs",
"require": "./auto/index.js"
},

@@ -86,5 +86,2 @@ "./auto.cjs": "./auto.cjs",

},
"engines": {
"node": ">=12.0.0"
},
"types": "./types.d.ts",

@@ -109,35 +106,34 @@ "scripts": {

"files": [
"auto.cjs",
"auto",
"auto.d.ts",
"auto.js",
"build",
"lib/*.d.ts",
"lib",
"types.d.ts"
],
"dependencies": {
"realistic-structured-clone": "^2.0.1"
"realistic-structured-clone": "^3.0.0"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.7",
"@babel/plugin-transform-modules-commonjs": "^7.17.7",
"@babel/preset-env": "^7.16.11",
"@babel/preset-typescript": "^7.16.7",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.21",
"@babel/cli": "^7.18.6",
"@babel/core": "^7.18.6",
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@types/mocha": "^9.1.1",
"@types/node": "^18.0.0",
"babel-plugin-add-module-exports": "^1.0.4",
"babelify": "^10.0.0",
"browserify": "^17.0.0",
"core-js": "^3.21.1",
"glob": "^7.2.0",
"core-js": "^3.23.3",
"glob": "^8.0.3",
"husky": "^7.0.4",
"jest": "^27.5.1",
"lint-staged": "^12.3.6",
"jest": "^28.1.2",
"lint-staged": "^12.5.0",
"mocha": "^9.2.2",
"node-qunit-phantomjs": "^1.6.3",
"prettier": "^2.6.0",
"prettier": "^2.7.1",
"qunitjs": "^1.23.1",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0",
"typescript": "4.6.2"
"typescript": "4.7.4"
},

@@ -144,0 +140,0 @@ "lint-staged": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc