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

nano-staged

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nano-staged - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

11

lib/pipeliner.js

@@ -68,2 +68,3 @@ import { resolve } from 'path'

let notMatchingPatterns = []
let pad = output.size

@@ -78,3 +79,3 @@ for (let stringCmd of toArray(cmds)) {

if (skiped) {
log(` ${pico.bold(pico.gray(pattern.padEnd(output.size)))} ${stringCmd}`)
log(` ${pico.bold(pico.gray(pattern.padEnd(pad)))} | SKIPPED | ${stringCmd}`)
continue

@@ -87,5 +88,5 @@ }

log(` ${pico.bold(pico.green(pattern.padEnd(output.size)))} ${stringCmd}`)
log(` ${pico.bold(pico.green(pattern.padEnd(pad)))} | SUCCESS | ${stringCmd}`)
} catch (err) {
log(` ${pico.bold(pico.red(pattern.padEnd(output.size)))} ${stringCmd}`)
log(` ${pico.bold(pico.red(pattern.padEnd(pad)))} | FAILED | ${stringCmd}`)
output.errors.push(pico.red(`${stringCmd}:\n`) + err)

@@ -98,4 +99,4 @@ skiped = true

` ${pico.bold(
pico.yellow(pattern.padEnd(output.size))
)} no staged files matching the pattern were found.`
pico.yellow(pattern.padEnd(pad))
)} | SKIPPED | no files matching the pattern were found.`
)

@@ -102,0 +103,0 @@ notMatchingPatterns.push(pattern)

{
"name": "nano-staged",
"version": "0.4.2",
"version": "0.4.3",
"description": "Tool to run commands only on git staged files",

@@ -5,0 +5,0 @@ "author": "Usman Yunusov <usman.iunusov@gmail.com>",

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