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

core-validate-commit

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-validate-commit - npm Package Compare versions

Comparing version 3.12.0 to 3.12.1

8

bin/cmd.js

@@ -64,3 +64,3 @@ #!/usr/bin/env node

function loadPatch(uri, cb) {
var h = http
let h = http
if (~uri.protocol.indexOf('https')) {

@@ -73,3 +73,3 @@ h = https

h.get(uri, (res) => {
var buf = ''
let buf = ''
res.on('data', (chunk) => {

@@ -114,4 +114,4 @@ buf += chunk

if (parsed.out) tap.pipe(fs.createWriteStream(parsed.out))
var count = 0
var total = args.length
let count = 0
let total = args.length

@@ -118,0 +118,0 @@ v.on('commit', (c) => {

@@ -65,3 +65,3 @@ 'use strict'

if (!opts.detailed) return out
var col = msg.column || 0
const col = msg.column || 0
const diff = str.slice(0, col) + chalk.red(str.slice(col, l))

@@ -68,0 +68,0 @@ return `${out}

@@ -81,3 +81,3 @@ 'use strict'

function findLineAndColumn(body, str) {
for (var i = 0; i < body.length; i++) {
for (let i = 0; i < body.length; i++) {
const l = body[i]

@@ -84,0 +84,0 @@ if (~l.indexOf('Fixes')) {

@@ -31,3 +31,3 @@ 'use strict'

}
var failed = false
let failed = false
for (let i = 0; i < parsed.body.length; i++) {

@@ -34,0 +34,0 @@ const line = parsed.body[i]

@@ -20,3 +20,3 @@ 'use strict'

let lineNum = end + 1
for (var i = 0; i < extra.length; i++) {
for (let i = 0; i < extra.length; i++) {
if (extra[i]) {

@@ -23,0 +23,0 @@ lineNum += i

@@ -26,5 +26,5 @@ 'use strict'

}
var line = -1
var column = -1
for (var i = 0; i < context.body.length; i++) {
let line = -1
let column = -1
for (let i = 0; i < context.body.length; i++) {
const l = context.body[i]

@@ -31,0 +31,0 @@ if (~l.indexOf('PR-URL') && ~l.indexOf(context.prUrl)) {

@@ -9,2 +9,3 @@ 'use strict'

, 'bootstrap'
, 'cli'
, 'deps'

@@ -112,3 +113,3 @@ , 'doc'

} else {
var failed = false
let failed = false
for (const sub of parsed.subsystems) {

@@ -115,0 +116,0 @@ if (!~subs.indexOf(sub)) {

{
"name": "core-validate-commit",
"version": "3.12.0",
"version": "3.12.1",
"description": "Validate the commit message for a particular commit in node core",

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

@@ -35,4 +35,10 @@ # core-validate-commit

```
Valid subsystems are defined in [lib/rules/subsystem.js](./lib/rules/subsystem.js).
To see a list of valid subsystems:
```bash
$ core-validate-commit --list-subsystem
```
Valid subsystems are also defined in [lib/rules/subsystem.js](./lib/rules/subsystem.js).
## Test

@@ -39,0 +45,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