Comparing version 1.3.2 to 1.3.3
{ | ||
"name": "tsubaki", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Promisify with native promises.", | ||
@@ -35,8 +35,11 @@ "main": "index.js", | ||
"devDependencies": { | ||
"eslint": "^6.1.0", | ||
"eslint-config-aqua": "^6.0.1", | ||
"jest": "^24.8.0" | ||
"eslint": "^6.8.0", | ||
"eslint-config-aqua": "^7.1.2", | ||
"eslint-config-prettier": "^6.7.0", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"jest": "^24.8.0", | ||
"prettier": "^1.19.1" | ||
}, | ||
"eslintConfig": { | ||
"extends": "aqua/node" | ||
"extends": "aqua/prettier/node" | ||
}, | ||
@@ -43,0 +46,0 @@ "engines": { |
@@ -15,6 +15,10 @@ const nodeVersion = parseInt(process.versions.node.split('.'), 10); | ||
return new Promise((resolve, reject) => | ||
fn.apply(this, [...args, (err, res) => { | ||
if (err) return reject(err); | ||
return resolve(res); | ||
}])); | ||
fn.apply(this, [ | ||
...args, | ||
(err, res) => { | ||
if (err) return reject(err); | ||
return resolve(res); | ||
}, | ||
]), | ||
); | ||
} | ||
@@ -25,2 +29,2 @@ Object.defineProperty(newFunction, 'name', { value: name }); | ||
module.exports = fn => nodeVersion >= 8 ? require('util').promisify(fn) : promisify(fn); | ||
module.exports = fn => (nodeVersion >= 8 ? require('util').promisify(fn) : promisify(fn)); |
Sorry, the diff of this file is not supported yet
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
6501
54
6