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

changez

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

changez - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

dist/blueprint-mock.d.ts

2

dist/lib/changelog.js

@@ -38,2 +38,4 @@ "use strict";

return nunjucks.render(this.blueprint.getTemplateName(), {
org: this.repo.org,
repo: this.repo.repo,
version: version,

@@ -40,0 +42,0 @@ codename: codename,

@@ -0,1 +1,6 @@

export interface Issue {
org: string;
repo: string;
id: string;
}
export declare class Commit {

@@ -11,5 +16,5 @@ raw: string;

bcMessage: string;
closes: string[];
closes: Issue[];
constructor(raw?: string);
toString(): string;
}

2

dist/lib/index.d.ts

@@ -1,4 +0,4 @@

export { Commit } from './commit';
export { Commit, Issue } from './commit';
export { IBlueprint } from './blueprint';
export { Changelog } from './changelog';
export { GitRepo } from './util/git';
export declare class GitRepo {
pathToRepo: string;
constructor(pathToRepo?: string);
org: string;
repo: string;
constructor(pathToRepo?: string, remote?: string);
currentBranch(): string;

@@ -20,3 +22,4 @@ rawCommits({debug, format, from, to}: {

}): string;
private computeRemoteInfo(remote);
private executeCommand(command, args, debug);
}

@@ -6,5 +6,7 @@ "use strict";

var GitRepo = (function () {
function GitRepo(pathToRepo) {
function GitRepo(pathToRepo, remote) {
if (pathToRepo === void 0) { pathToRepo = '.'; }
if (remote === void 0) { remote = 'origin'; }
this.pathToRepo = path_1.resolve(pathToRepo);
this.computeRemoteInfo(remote);
}

@@ -32,2 +34,7 @@ GitRepo.prototype.currentBranch = function () {

};
GitRepo.prototype.computeRemoteInfo = function (remote) {
var remoteUrlParts = this.executeCommand('remote', ['get-url', remote], undefined).split('/');
this.repo = remoteUrlParts.pop();
this.org = remoteUrlParts.pop();
};
GitRepo.prototype.executeCommand = function (command, args, debug) {

@@ -34,0 +41,0 @@ args.unshift(command);

{
"name": "changez",
"version": "2.0.0",
"version": "2.0.1",
"description": "Yet another flexible changelog generator.",

@@ -28,3 +28,2 @@ "main": "./dist/lib/index.js",

"chai": "^3.5.0",
"changez-angular": "^1.0.1",
"mocha": "^3.1.2",

@@ -31,0 +30,0 @@ "ts-node": "^1.6.0",

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