zapier-async-storage
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -59,6 +59,9 @@ 'use strict'; | ||
}).catch(function (error) { | ||
// `InvalidStateError` occurs in Firefox private mode. When this happens | ||
// we need to use an in-memory storage solution instead of relying of | ||
// IndexedDB. | ||
if (error.name && error.name === 'InvalidStateError') { | ||
var name = error.name; | ||
// `InvalidStateError` occurs in Firefox private mode. | ||
// `SecurityError` occurs in Safari. | ||
// When this happens we need to use an in-memory storage solution | ||
// instead of relying of IndexedDB. | ||
if (name && name === 'InvalidStateError' || name === 'SecurityError') { | ||
return (0, _memory2.default)(memoryStorage); | ||
@@ -65,0 +68,0 @@ } |
@@ -593,6 +593,9 @@ 'use strict'; | ||
}).catch(function (error) { | ||
// `InvalidStateError` occurs in Firefox private mode. When this happens | ||
// we need to use an in-memory storage solution instead of relying of | ||
// IndexedDB. | ||
if (error.name && error.name === 'InvalidStateError') { | ||
var name = error.name; | ||
// `InvalidStateError` occurs in Firefox private mode. | ||
// `SecurityError` occurs in Safari. | ||
// When this happens we need to use an in-memory storage solution | ||
// instead of relying of IndexedDB. | ||
if (name && name === 'InvalidStateError' || name === 'SecurityError') { | ||
return createMemoryDriver(memoryStorage); | ||
@@ -599,0 +602,0 @@ } |
{ | ||
"name": "zapier-async-storage", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Minimalist wrapper for IndexedDB", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1224
41574
16
1