Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "tsubaki", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Promisify with native promises.", | ||
@@ -34,12 +34,9 @@ "main": "index.js", | ||
"homepage": "https://github.com/iCrawl/tsubaki#readme", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@types/node": "^10.1.1", | ||
"eslint": "^4.19.1", | ||
"eslint-config-aqua": "^4.0.1", | ||
"jest": "^22.4.3", | ||
"typescript": "^2.8.3" | ||
"eslint": "^6.1.0", | ||
"eslint-config-aqua": "^6.0.1", | ||
"jest": "^24.8.0" | ||
}, | ||
"eslintConfig": { | ||
"extends": "aqua/src/node" | ||
"extends": "aqua/node" | ||
}, | ||
@@ -46,0 +43,0 @@ "engines": { |
@@ -15,3 +15,3 @@ const nodeVersion = parseInt(process.versions.node.split('.'), 10); | ||
return new Promise((resolve, reject) => | ||
fn.apply(this, [...args, (err, res) => { // eslint-disable-line no-invalid-this | ||
fn.apply(this, [...args, (err, res) => { | ||
if (err) return reject(err); | ||
@@ -25,2 +25,2 @@ return resolve(res); | ||
module.exports = fn => (nodeVersion >= 8 ? require('util').promisify(fn) : promisify(fn)); | ||
module.exports = fn => nodeVersion >= 8 ? require('util').promisify(fn) : promisify(fn); |
@@ -0,0 +0,0 @@ declare module 'tsubaki' { |
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
6359
3
8