changez-angular
Advanced tools
Comparing version 2.1.0 to 2.1.1
12
index.js
@@ -12,7 +12,7 @@ "use strict"; | ||
var BC_MARKER = /^BREAKING CHANGE(S?:?\s*)/i; | ||
// 1111111111111111111111111111111111111111111111 | ||
// 2222222222222 4444444444444 666666666666666 8888888888888888888888888888888 | ||
// 33333 5555555 77777 999999999999999999999 | ||
// 10101010 111111111 121212 | ||
var CLOSES_MATCHER = /\s+((close(s|d)?)|(fix(es|ed)?)|(resolve(s|d)?))\s+((([^\/ ]+)\/([^\/ ]+))?#(\d+))\s+/ig; | ||
// 111111111111111111111111111111111111111111111 | ||
// 2222222222222 4444444444444 666666666666666 8888888888888888888888888888888 | ||
// 33333 5555555 77777 9999999999999999999999 | ||
// 10101010 111111111 1212 | ||
var CLOSES_MATCHER = /(?:^|\s+)((close(s|d)?)|(fix(es|ed)?)|(resolve(s|d)?))\s+((([^\/ ]+)\/([^\/ ]+))?#(\d+))(?:\s+|$)/ig; | ||
// 9 = org; 10 = repo; 11=issue | ||
@@ -101,5 +101,5 @@ var typeWhiteList = ['feat', 'fix', 'perf']; | ||
return ' '; | ||
}); | ||
}).trim(); | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = new AngularBlueprint(); |
@@ -45,3 +45,9 @@ "use strict"; | ||
}); | ||
it('should extract the closes markers at the start of the body text', function () { | ||
var commit = blueprint.parseMessage('ABC123\nfix(abc): some title\nCloses #44'); | ||
chai_1.expect(commit.body).to.equal(''); | ||
chai_1.expect(commit.bcMessage).to.equal(''); | ||
chai_1.expect(commit.closes).to.eql([{ org: undefined, repo: undefined, id: '44' }]); | ||
}); | ||
}); | ||
}); |
@@ -52,3 +52,10 @@ import {AngularBlueprint} from '.'; | ||
}); | ||
it('should extract the closes markers at the start of the body text', () => { | ||
const commit = blueprint.parseMessage('ABC123\nfix(abc): some title\nCloses #44'); | ||
expect(commit.body).to.equal(''); | ||
expect(commit.bcMessage).to.equal(''); | ||
expect(commit.closes).to.eql([{ org: undefined, repo: undefined, id: '44' }]); | ||
}); | ||
}); | ||
}); |
12
index.ts
@@ -17,7 +17,7 @@ import {resolve} from 'path'; | ||
// 1111111111111111111111111111111111111111111111 | ||
// 2222222222222 4444444444444 666666666666666 8888888888888888888888888888888 | ||
// 33333 5555555 77777 999999999999999999999 | ||
// 10101010 111111111 121212 | ||
const CLOSES_MATCHER = /\s+((close(s|d)?)|(fix(es|ed)?)|(resolve(s|d)?))\s+((([^\/ ]+)\/([^\/ ]+))?#(\d+))\s+/ig; | ||
// 111111111111111111111111111111111111111111111 | ||
// 2222222222222 4444444444444 666666666666666 8888888888888888888888888888888 | ||
// 33333 5555555 77777 9999999999999999999999 | ||
// 10101010 111111111 1212 | ||
const CLOSES_MATCHER = /(?:^|\s+)((close(s|d)?)|(fix(es|ed)?)|(resolve(s|d)?))\s+((([^\/ ]+)\/([^\/ ]+))?#(\d+))(?:\s+|$)/ig; | ||
// 9 = org; 10 = repo; 11=issue | ||
@@ -115,5 +115,5 @@ | ||
return ' '; | ||
}); | ||
}).trim(); | ||
} | ||
export default new AngularBlueprint(); |
{ | ||
"name": "changez-angular", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "The angular blueprint for the changez utility", | ||
@@ -8,3 +8,4 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "tsc && mocha -R spec 'index.spec.js'" | ||
"test": "tsc && mocha -R spec 'index.spec.js'", | ||
"build": "tsc" | ||
}, | ||
@@ -11,0 +12,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
18314
11
370