Socket
Socket
Sign inDemoInstall

safari-14-idb-fix

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safari-14-idb-fix - npm Package Compare versions

Comparing version 2.0.3 to 3.0.0

dist/iife.min.js

28

package.json
{
"name": "safari-14-idb-fix",
"version": "2.0.3",
"version": "3.0.0",
"description": "Working around a Safari 14 IndexedDB bug",
"homepage": "https://github.com/jakearchibald/safari-14-idb-fix",
"main": "./dist/cjs-compat/index.cjs",
"module": "./dist/esm-compat/index.js",
"types": "./dist/esm/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.cjs",
"import": "./dist/esm/index.js"
"module": "./dist/index.js",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./dist/cjs": "./dist/cjs/index.cjs",
"./dist/cjs-compat": "./dist/cjs-compat/index.cjs",
"./dist/esm": "./dist/esm/index.js",
"./dist/esm-compat": "./dist/esm-compat/index.js",
"./dist/iife": "./dist/iife/index-min.js",
"./dist/iife-compat": "./dist/iife-compat/index-min.js",
"./dist/cjs": "./dist/index.cjs",
"./dist/cjs-compat": "./dist/index.cjs",
"./dist/esm": "./dist/index.js",
"./dist/esm-compat": "./dist/index.js",
"./dist/iife": "./dist/iife.min.js",
"./dist/iife-compat": "./dist/iife.min.js",
"./package.json": "./package.json"

@@ -32,5 +33,2 @@ },

"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.5",
"@rollup/plugin-babel": "^5.3.0",
"del": "^6.0.0",

@@ -37,0 +35,0 @@ "prettier": "^2.3.1",

# Safari 14 IndexedDB fix
Safari on macOS Big Sur 11.4 and iOS 14.6 has a [nasty bug](https://bugs.webkit.org/show_bug.cgi?id=226547) where IndexedDB requests get lost and never resolve.
Safari on macOS Big Sur 11.4 and iOS 14.6 has a [nasty bug](https://bugs.webkit.org/show_bug.cgi?id=226547) where IndexedDB requests get lost and never resolve. The issue was fixed in Safari 14.7.

@@ -19,3 +19,3 @@ This library (well, function) works around the issue and tells you when IndexedDB is actually available.

idbReady().then(() => {
// Safari has figured out where IndexedDB is.
// Safari has definitely figured out where IndexedDB is.
// You can use IndexedDB as usual.

@@ -27,9 +27,6 @@ });

A modern build tool will handle the above example fine, but if you need some different builds:
A modern build tool will handle the above example fine, but if you need a specific build:
- `safari-14-idb-fix/dist/cjs` CommonJS module.
- `safari-14-idb-fix/dist/cjs-compat` CommonJS module, transpiled for older browsers.
- `safari-14-idb-fix/dist/esm` EcmaScript module.
- `safari-14-idb-fix/dist/esm-compat` EcmaScript module, transpiled for older browsers.
- `safari-14-idb-fix/dist/iife` Minified plain JS, which creates an `idbReady` global.
- `safari-14-idb-fix/dist/iife-compat` As above, but transpiled for older browsers.
- `safari-14-idb-fix/dist/index.js` EcmaScript module.
- `safari-14-idb-fix/dist/index.cjs` CommonJS module.
- `safari-14-idb-fix/dist/iife.min.js` Minified plain JS, which creates an `idbReady` global.
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