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.1.2 to 0.1.3

2

package.json
{
"name": "nano-staged",
"version": "0.1.2",
"version": "0.1.3",
"description": "Tool to run commands only on git staged files",

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

@@ -18,3 +18,3 @@ import { normalize, relative, resolve, isAbsolute } from 'path'

for (let pattern of Object.keys(config)) {
let matches = glob(pattern, { globstar: true, filepath: true, extended: true })
let matches = glob(pattern, { filepath: true, extended: true })

@@ -31,3 +31,3 @@ for (let { path, type, rename } of entries) {

if (stagedFiles.indexOf(path) === -1) {
if (!stagedFiles.includes(path)) {
if (type === CHANGED_CODE) {

@@ -34,0 +34,0 @@ changedFiles.push(path)

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