knifecycle
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -0,1 +1,5 @@ | ||
## [5.0.4](https://github.com/nfroidure/knifecycle/compare/v5.0.3...v5.0.4) (2019-01-12) | ||
## [5.0.3](https://github.com/nfroidure/knifecycle/compare/v5.0.2...v5.0.3) (2019-01-12) | ||
@@ -2,0 +6,0 @@ |
@@ -16,2 +16,3 @@ "use strict"; | ||
exports.autoName = autoName; | ||
exports.parseName = parseName; | ||
exports.type = type; | ||
@@ -341,3 +342,3 @@ exports.initializer = initializer; | ||
function autoName(initializer) { | ||
const functionName = (initializer.name || '').split(' ').pop().replace(/^init(?:ialize)?([A-Z])/, (_, $1) => $1.toLowerCase()); | ||
const functionName = parseName(initializer.name || ''); | ||
@@ -350,2 +351,6 @@ if (!functionName) { | ||
} | ||
function parseName(functionName) { | ||
return functionName.split(' ').pop().replace(/^init(?:ialize)?([A-Z])/, (_, $1) => $1.toLowerCase()); | ||
} | ||
/** | ||
@@ -352,0 +357,0 @@ * Decorator to set an initializer type. |
{ | ||
"name": "knifecycle", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "Manage your NodeJS processes's lifecycle.", | ||
@@ -76,15 +76,15 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.5", | ||
"@babel/core": "^7.1.6", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/preset-env": "^7.1.6", | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.2.0", | ||
"@babel/preset-env": "^7.2.3", | ||
"@babel/register": "^7.0.0", | ||
"babel-eslint": "^10.0.1", | ||
"browserify": "^16.2.3", | ||
"commitizen": "^3.0.4", | ||
"commitizen": "^3.0.5", | ||
"conventional-changelog-cli": "^2.0.11", | ||
"coveralls": "^3.0.2", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"eslint": "^5.9.0", | ||
"eslint-plugin-prettier": "^3.0.0", | ||
"eslint": "^5.12.0", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"jsarch": "^1.3.0", | ||
@@ -99,6 +99,6 @@ "jsdoc-to-markdown": "^4.0.1", | ||
"metapak": "^2.0.0", | ||
"metapak-nfroidure": "9.0.3", | ||
"metapak-nfroidure": "9.0.4", | ||
"mocha": "^5.2.0", | ||
"nyc": "^13.0.1", | ||
"prettier": "^1.14.3", | ||
"prettier": "^1.15.3", | ||
"sinon": "^7.1.1" | ||
@@ -105,0 +105,0 @@ }, |
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
201944
3559