Socket
Socket
Sign inDemoInstall

zapier-async-storage

Package Overview
Dependencies
1
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.6 to 0.3.7

11

build/createInstance.js

@@ -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",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc