{"name":"safari-14-idb-fix","version":"1.0.6","description":"Working around a Safari 14 IndexedDB bug","homepage":"https://github.com/jakearchibald/safari-14-idb-fix","main":"./dist/cjs-compat/index.js","module":"./dist/esm-compat/index.js","types":"./dist/esm/index.d.ts","exports":{".":{"require":"./dist/cjs/index.js","import":"./dist/esm/index.js"},"./dist/*":"./dist/*/index.js","./package.json":"./package.json"},"scripts":{"build":"rollup -c"},"license":"Apache-2.0","devDependencies":{"@babel/core":"^7.14.6","@babel/preset-env":"^7.14.5","@rollup/plugin-babel":"^5.3.0","del":"^6.0.0","prettier":"^2.3.1","rollup":"^2.52.1","rollup-plugin-terser":"^7.0.2","typescript":"^4.3.3"},"gitHead":"17aa6cefcad5af4af1fcb87d4904d02874ccf366","_id":"safari-14-idb-fix@1.0.6","_nodeVersion":"16.5.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-oTEQOdMwRX+uCtWCKT1nx2gAeSdpr8elg/2gcaKUH00SJU2xWESfkx11nmXwTRHy7xfQoj1o4TTQvdmuBosTnA==","shasum":"cbaabc33a4500c44b5c432d6c525b0ed9b68bb65","tarball":"http://registry-npm.ywwl.com/safari-14-idb-fix/download/safari-14-idb-fix-1.0.6.tgz","fileCount":23,"unpackedSize":24029,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhNiOkCRA9TVsSAnZWagAAHvkP/RwvYsGAVNSUAOtONSoa\nvm+6RsxIg4SlNGOQI55OTmVVIHP41KZZt1i2dFmAs2DE7sx3bLVZpG5chf/x\nB+vijfkeZIVYnrGXq6MKsDrlLaWkiP0DzMhGCiyb0f3Efpy8+v6XxgAFDRxw\n2kfC8yXwfErOBLUOrqDJZrdjnk2LjZvEsZnO6SBpr7z3JqBswRXY1O2KoUIW\npW6KHTUvYW10dqDSswnSv/Vdss9PTOtf8TlmtBpR4hmWX5i98vB7q/BX8Q/1\npxAUjb4pmeQncnhPMWCyJ06E2mPnVPZalQMAp1RjWa/DLJUZg1eC25fHqLnw\nXuvg/WIGEwxzFBQlgIaFVBQRop2v4IG83mY/Ijjj9rl5zQUAa1ZVOD4FCa3h\n2K6LNK3lOA9ovhsYE48jZo8/VCNS8pF0hKQM6kEWxC8XGpMZ0rwvZJB1nt2/\nQvBLU7SK9j5g3gMPgcRkdOEmM6WTnl+auT+3snFWujWSj9aqi5Qui3mAc8si\nYhAzYjPDLt6eI4V5CnsnbfwBEKBmXpsbPUamXvwDT9hRCpMdCyfBkPGoWQtu\nasdAnwE6ST3Jn32Mewc97ado0hhhQ5AMZkTv4T89lXF2zG02BWiuMZlMwpY2\nQxD5ltvO90qBQHbTyr+4X4laoXctG/JxciIAwltWzaCj8gyuiR8Q93myH4Ri\nEiko\r\n=UyIt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmwUjDKYYmBY5Vo6PtITL/r53cNSLgscBitP8cegM/9AiEA7eeQC+T7anIIiAowUtbUQ3rPWJEnrEbaA2Eb15gh0hE="}],"size":6423,"noattachment":false,"key":"/safari-14-idb-fix/-/safari-14-idb-fix-1.0.6.tgz"},"_npmUser":{"name":"jaffathecake","email":"jaffathecake@gmail.com"},"directories":{},"maintainers":[{"name":"jaffathecake","email":"jaffathecake@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/safari-14-idb-fix_1.0.6_1630938020837_0.13922438092897482"},"_hasShrinkwrap":false,"readme":"# Safari 14 IndexedDB fix\n\nSafari 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.\n\nThis library (well, function) works around the issue and tells you when IndexedDB is actually available.\n\nTo install:\n\n```\nnpm i safari-14-idb-fix\n```\n\nTo use:\n\n```js\nimport idbReady from 'safari-14-idb-fix';\n\nidbReady().then(() => {\n  // Safari has definitely figured out where IndexedDB is.\n  // You can use IndexedDB as usual.\n});\n```\n\n## All bundles\n\nA modern build tool will handle the above example fine, but if you need a specific build:\n\n- `safari-14-idb-fix/dist/index.js` EcmaScript module.\n- `safari-14-idb-fix/dist/index.cjs` CommonJS module.\n- `safari-14-idb-fix/dist/iife.min.js` Minified plain JS, which creates an `idbReady` global.\n","publish_time":1630938020970,"_cnpm_publish_time":1630938020970,"dist-tags":{"latest":"3.0.0"}}