Skip to content

Commit

Permalink
support promise-less environments
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosantoscode committed Oct 21, 2018
1 parent 7fe562e commit f22cbca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict'

var Promise = require('es6-promise')

module.exports = function (userFunction) {
var args = [].slice.call(arguments, 1)
return new Promise(function (resolve, reject) {
Expand Down
7 changes: 3 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"homepage": "https://github.com/fabiosantoscode/user-async-function#readme",
"devDependencies": {
"coveralls": "^3.0.2",
"es6-promise": "^4.2.4",
"istanbul": "^1.1.0-alpha.1",
"pre-commit": "^1.2.2",
"standard": "^12.0.1",
Expand All @@ -31,5 +30,8 @@
"pre-commit": [
"test",
"lint"
]
],
"dependencies": {
"es6-promise": "^4.2.5"
}
}

0 comments on commit f22cbca

Please sign in to comment.