From 0ab399388600a2cbbb01839f7fc053a0faffc526 Mon Sep 17 00:00:00 2001 From: Florian Keller Date: Tue, 3 Apr 2018 14:48:30 +0200 Subject: [PATCH 1/2] Use native promise --- dexie-batch.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/dexie-batch.js b/dexie-batch.js index 6e47d50..0bb9058 100644 --- a/dexie-batch.js +++ b/dexie-batch.js @@ -1,5 +1,3 @@ -const Promise = require('dexie').Promise - module.exports = class DexieBatch { constructor(opts) { assertValidOptions(opts) From dbf3b4dd9c24066a5ad11d875566ef61ffa53150 Mon Sep 17 00:00:00 2001 From: Florian Keller Date: Tue, 3 Apr 2018 17:08:30 +0200 Subject: [PATCH 2/2] global export --- dexie-batch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dexie-batch.js b/dexie-batch.js index 0bb9058..de67b19 100644 --- a/dexie-batch.js +++ b/dexie-batch.js @@ -1,4 +1,4 @@ -module.exports = class DexieBatch { +window.DexieBatch = class DexieBatch { constructor(opts) { assertValidOptions(opts) this.opts = opts