@squared-functions/module
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -1,2 +0,2 @@ | ||
/* @squared-functions/module 0.3.2 | ||
/* @squared-functions/module 0.3.3 | ||
https://github.com/anpham6/squared-functions */ | ||
@@ -13,3 +13,3 @@ | ||
.split('.') | ||
.map(value => parseInt(value)); | ||
.map(value => +value); | ||
} | ||
@@ -35,2 +35,6 @@ checkVersion(major, minor, patch = 0) { | ||
} | ||
replaceExtension(value, ext) { | ||
const index = value.lastIndexOf('.'); | ||
return (index !== -1 ? value.substring(0, index) : value) + '.' + ext; | ||
} | ||
writeFail(description, message) { | ||
@@ -37,0 +41,0 @@ console.log(`${chalk.bgRed.bold.white('FAIL')}: ${description} (${message})`); |
{ | ||
"name": "@squared-functions/module", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "Module extension class for squared-functions", | ||
@@ -18,5 +18,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@squared-functions/types": "^0.3.6", | ||
"@squared-functions/types": "^0.3.9", | ||
"chalk": "^4.1.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
3236
49