Comparing version 1.3.0 to 1.3.1
@@ -0,0 +0,0 @@ module.exports = { |
{ | ||
"name": "tsubaki", | ||
"version": "1.3.0", | ||
"description": "Promisify with native promises.", | ||
"main": "index.js", | ||
"typings": "./typings/index.d.ts", | ||
"author": { | ||
"name": "Crawl", | ||
"email": "icrawltogo@gmail.com" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "vzwGrey" | ||
} | ||
], | ||
"license": "MIT", | ||
"scripts": { | ||
"pretest": "eslint .", | ||
"test": "jest --verbose" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/iCrawl/tsubaki.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/iCrawl/tsubaki/issues" | ||
}, | ||
"keywords": [ | ||
"promisify", | ||
"native", | ||
"promises" | ||
], | ||
"homepage": "https://github.com/iCrawl/tsubaki#readme", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@types/node": "^8.0.47", | ||
"eslint": "^4.10.0", | ||
"eslint-config-aqua": "^2.0.1", | ||
"jest": "^21.2.1", | ||
"typescript": "^2.5.3" | ||
}, | ||
"eslintConfig": { | ||
"extends": "aqua" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
} | ||
"name": "tsubaki", | ||
"version": "1.3.1", | ||
"description": "Promisify with native promises.", | ||
"main": "index.js", | ||
"typings": "./typings/index.d.ts", | ||
"author": { | ||
"name": "Crawl", | ||
"email": "icrawltogo@gmail.com" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "vzwGrey" | ||
} | ||
], | ||
"license": "MIT", | ||
"scripts": { | ||
"pretest": "eslint .", | ||
"test": "jest --verbose" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/iCrawl/tsubaki.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/iCrawl/tsubaki/issues" | ||
}, | ||
"keywords": [ | ||
"promisify", | ||
"native", | ||
"promises" | ||
], | ||
"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" | ||
}, | ||
"eslintConfig": { | ||
"extends": "aqua/src/node" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
} | ||
} |
@@ -25,3 +25,3 @@ # Tsubaki | ||
## Useage | ||
## Usage | ||
@@ -28,0 +28,0 @@ ```js |
@@ -1,2 +0,2 @@ | ||
const nodeVersion = process.versions.node.split('.')[0]; | ||
const nodeVersion = parseInt(process.versions.node.split('.'), 10); | ||
@@ -17,5 +17,4 @@ /** | ||
if (err) return reject(err); | ||
else return resolve(res); | ||
}]) | ||
); | ||
return resolve(res); | ||
}])); | ||
} | ||
@@ -26,2 +25,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)); |
@@ -0,0 +0,0 @@ const promisify = require('./promisify'); |
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
5854
50