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

commitplease

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commitplease - npm Package Compare versions

Comparing version 2.7.3 to 2.7.4

18

lib/defaults.js

@@ -11,3 +11,10 @@ var defaults = {

'\\s+[^\\s\\d]+(\\s|$)',
ticketPattern: '^(Closes|Fixes) (.*#|gh-|[A-Z]{2,}-)[0-9]+',
ticketPattern: '^(' +
'(([Cc]los|[Ff]ix|[Rr]esolv)(e[sd]))' +
'|' +
'([Cc]onnects)' +
'|' +
'(([Cc]onnect|[Cc]onnects|[Cc]onnected) to)' +
')' +
' (.*#|gh-|[A-Z]{2,}-)[0-9]+',
// jQuery specific settings follow:

@@ -26,3 +33,10 @@ component: true,

'\\s+[^\\s\\d]+(\\s|$)',
ticketPattern: '^(Closes|Fixes) (.*#|gh-|[A-Z]{2,}-)[0-9]+',
ticketPattern: '^(' +
'(([Cc]los|[Ff]ix|[Rr]esolv)(e[sd]))' +
'|' +
'([Cc]onnects)' +
'|' +
'(([Cc]onnect|[Cc]onnects|[Cc]onnected) to)' +
')' +
' (.*#|gh-|[A-Z]{2,}-)[0-9]+',
// Angular specific settings follow:

@@ -29,0 +43,0 @@ types: [

2

package.json
{
"name": "commitplease",
"version": "2.7.3",
"version": "2.7.4",
"description": "Validates strings as commit messages",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -226,2 +226,13 @@ var validate = require('./lib/validate')

msg: 'Component: short message\n\n' +
'fixes #1\n' +
'fixes #123',
reasons: new Map([
[jquery3, [
'Invalid ticket reference, must be /' + jquery3.ticketPattern + '/\nWas: fixes #1',
'Invalid ticket reference, must be /' + jquery3.ticketPattern + '/\nWas: fixes #123'
]]
])
},
{
msg: 'Component: short message\n\n' +
'Fixes #1 Fixes #123',

@@ -294,2 +305,13 @@ reasons: new Map([

msg: 'Component: short message\n\n' +
'closes #1\n' +
'closes #123',
reasons: new Map([
[jquery3, [
'Invalid ticket reference, must be /' + jquery3.ticketPattern + '/\nWas: closes #1',
'Invalid ticket reference, must be /' + jquery3.ticketPattern + '/\nWas: closes #123'
]]
])
},
{
msg: 'Component: short message\n\n' +
'Closes #1 Closes #123',

@@ -413,2 +435,16 @@ reasons: new Map([

msg: 'Component: short message\n\n' +
'Connect #1\n' +
'Connect to #1\n' +
'Connects to #1\n' +
'Connected to #1'
},
{
msg: 'Component: short message\n\n' +
'connect #1\n' +
'connect to #1\n' +
'connects to #1\n' +
'connected to #1'
},
{
msg: 'Component: short message\n\n' +
'Fixes #123\n' +

@@ -597,2 +633,26 @@ 'Fixes #1 Fixes #123\n' +

{
msg: 'feat($scope): subject\n\n' +
'Closes #1\n' +
'Closes #123'
},
{
msg: 'feat($scope): subject\n\n' +
'closes #1\n' +
'closes #123'
},
{
msg: 'feat($scope): subject\n\n' +
'Connect #1\n' +
'Connect to #1\n' +
'Connects to #1\n' +
'Connected to #1'
},
{
msg: 'feat($scope): subject\n\n' +
'connect #1\n' +
'connect to #1\n' +
'connects to #1\n' +
'connected to #1'
},
{
msg: 'feat',

@@ -599,0 +659,0 @@ reasons: new Map([[angular0, [angularOpening]]])

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