Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

changelog-version

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

changelog-version - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

10

CHANGELOG.md

@@ -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 @@

4

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc