We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93d717e commit 15c5882Copy full SHA for 15c5882
lib/pouch-utils.js
@@ -1,6 +1,12 @@
1
'use strict';
2
3
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
+function _interopDefault (ex) {
4
+ if(ex && (typeof ex === 'object') && 'default' in ex) {
5
+ return ex['default'];
6
+ }
7
+ return ex;
8
+}
9
+
10
var Promise = typeof Promise === 'function' ? Promise : _interopDefault(require('pouchdb-promise'));
11
/* istanbul ignore next */
12
exports.once = function (fun) {
0 commit comments