Comparing version 0.4.7 to 0.4.8
@@ -75,3 +75,3 @@ /* eslint no-shadow: 0 */ | ||
context$2$0.next = 2; | ||
return regeneratorRuntime.awrap(_lodash2['default'].reduce(this.tables, function callee$2$0(promise, table) { | ||
return regeneratorRuntime.awrap(Promise.all(_lodash2['default'].map(this.tables, function callee$2$0(table) { | ||
return regeneratorRuntime.async(function callee$2$0$(context$3$0) { | ||
@@ -82,12 +82,8 @@ var _this = this; | ||
case 0: | ||
context$3$0.next = 2; | ||
return regeneratorRuntime.awrap(promise); | ||
case 2: | ||
if (!_lodash2['default'].isFunction(connection)) { | ||
context$3$0.next = 7; | ||
context$3$0.next = 5; | ||
break; | ||
} | ||
context$3$0.next = 5; | ||
context$3$0.next = 3; | ||
return regeneratorRuntime.awrap(connection().then(function callee$3$0(connection) { | ||
@@ -111,11 +107,11 @@ return regeneratorRuntime.async(function callee$3$0$(context$4$0) { | ||
case 5: | ||
context$3$0.next = 9; | ||
case 3: | ||
context$3$0.next = 7; | ||
break; | ||
case 7: | ||
context$3$0.next = 9; | ||
case 5: | ||
context$3$0.next = 7; | ||
return regeneratorRuntime.awrap(table.sync(connection)); | ||
case 9: | ||
case 7: | ||
case 'end': | ||
@@ -125,3 +121,3 @@ return context$3$0.stop(); | ||
}, null, _this2); | ||
}, Promise.resolve())); | ||
}))); | ||
@@ -128,0 +124,0 @@ case 2: |
{ | ||
"name": "nothinkdb", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"description": "Functional toolkit for rethinkdb", | ||
@@ -5,0 +5,0 @@ "main": "lib/nothinkdb.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
32283
687