dynogels-promise
Advanced tools
Comparing version 1.0.3 to 1.0.4
'use strict' | ||
const _ = require('lodash') | ||
const async = require('async') | ||
const _ = require('lodash') | ||
const Promise = require('bluebird') | ||
@@ -70,3 +71,3 @@ const internals = {} | ||
module.exports = (models, config, callback) => { | ||
module.exports = Promise.promisify((models, config, callback) => { | ||
async.eachSeries( | ||
@@ -83,2 +84,2 @@ _.keys(models), | ||
) | ||
} | ||
}) |
const Promise = require('bluebird') | ||
const dynogels = require('./dynamodb') | ||
const dynogelsModel = dynogels.model | ||
dynogels.model = function (name, model) { | ||
if (model) { | ||
Promise.promisifyAll(model) | ||
} | ||
return dynogelsModel.apply(dynogels, arguments) | ||
} | ||
Promise.promisifyAll(dynogels) | ||
module.exports = dynogels |
{ | ||
"name": "dynogels-promise", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Promisified dynogels module", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
68854
2296