fake-indexeddb
Advanced tools
Comparing version 4.0.0-beta.3 to 4.0.0-beta.5
@@ -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": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
259819
100
6002
2
+ Addedrealistic-structured-clone@3.0.0(transitive)
- Removedcore-js@3.37.0(transitive)
- Removedrealistic-structured-clone@2.0.4(transitive)