changelog-version
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -17,2 +17,12 @@ # Changelog | ||
## v1.0.1 - 2017-11-12 | ||
### Fixed | ||
- Fix package.json path reference | ||
## v1.0.0 - 2017-11-12 | ||
@@ -19,0 +29,0 @@ |
@@ -5,9 +5,9 @@ 'use strict' | ||
const path = require('path') | ||
const pkgInfo = require('./package.json') | ||
const regexp = /(\n+)(?!<!--)(\n)(## )(\[UNRELEASED])/gi | ||
const version = 'v' + pkgInfo.version | ||
const date = new Date().toISOString().replace(/T.*/, '') | ||
const changelogVersion = function (changelogPath) { | ||
const pkgInfo = require(path.join(process.cwd(), 'package.json')) | ||
const version = 'v' + pkgInfo.version | ||
changelogPath = changelogPath || path.join(process.cwd(), 'CHANGELOG.md') | ||
@@ -14,0 +14,0 @@ |
{ | ||
"name": "changelog-version", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Build tool to update CHANGELOG.md file with the version", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
4350
2