zapier-async-storage
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -9,3 +9,3 @@ 'use strict'; | ||
function getIndexedDB() { | ||
var getIndexedDB = function getIndexedDB() { | ||
if (typeof window.indexedDB !== 'undefined') { | ||
@@ -28,3 +28,3 @@ return window.indexedDB; | ||
throw new Error('Unable to find IndexedDB'); | ||
} | ||
}; | ||
@@ -135,4 +135,2 @@ var READ_ONLY = 'readonly'; | ||
// console.info('dbConnection.onupgradeneeded', { name, storeName, oldVersion, newVersion }); | ||
try { | ||
@@ -492,1 +490,2 @@ dbInstance.createObjectStore(storeName); | ||
exports.createStorageInstance = createInstance; | ||
exports.getIndexedDB = getIndexedDB; |
@@ -95,4 +95,2 @@ 'use strict'; | ||
// console.info('dbConnection.onupgradeneeded', { name, storeName, oldVersion, newVersion }); | ||
try { | ||
@@ -99,0 +97,0 @@ dbInstance.createObjectStore(storeName); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
function getIndexedDB() { | ||
var getIndexedDB = function getIndexedDB() { | ||
if (typeof window.indexedDB !== 'undefined') { | ||
@@ -25,4 +25,4 @@ return window.indexedDB; | ||
throw new Error('Unable to find IndexedDB'); | ||
} | ||
}; | ||
exports.default = getIndexedDB; |
{ | ||
"name": "zapier-async-storage", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Minimalist wrapper for IndexedDB", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31733
894