Socket
Socket
Sign inDemoInstall

changelog2html

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

changelog2html - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

changes/8b1f1e4e-1dcf-11e6-b6ba-3e1d05defe79.bugfix.md

14

changelog.js

@@ -82,2 +82,3 @@ 'use strict';

let versions = {};
versions.keys = [];
fileList.forEach(file => {

@@ -89,5 +90,14 @@ let filePath = path.join(pathToChangesFolder, file.fileName);

var matches = fileRegex.exec(file.fileName);
// Add current date to local uncomitted changes
if (file.firstTag == null) {
file.firstTag = "pending";
file.tagCommit = {};
file.tagCommit.date = function() {
return new Date();
}
file.fileCommit = {};
file.fileCommit.date = function() {
return new Date();
}
file.commit = {};

@@ -100,2 +110,3 @@ file.commit.date = function() {

if (!versions[file.firstTag]) {
versions.keys.push(file.firstTag);
versions[file.firstTag] = {

@@ -119,2 +130,5 @@ date: file.tagCommit.date(),

.then(renderInfo => {
renderInfo.keys.sort();
renderInfo.keys.reverse();
console.dir(renderInfo.keys);
let html = swig.renderFile(templateFile, {

@@ -121,0 +135,0 @@ pagename: 'Changelog',

2

package.json
{
"name": "changelog2html",
"version": "0.0.11",
"version": "0.0.12",
"description": "A changelog generator which uses git tags to identify versions and dates for found changelog entry files.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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