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.3.0 to 0.3.1

glob-to-regex/index.js

2

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

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

import { normalize, relative, resolve, isAbsolute } from 'path'
import { CHANGED_CODE, DELETED_CODE } from '../git/index.js'
import { glob } from '../glob/index.js'
import { globToRegex } from '../glob-to-regex/index.js'

@@ -18,3 +18,3 @@ export function prepareFiles({

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

@@ -21,0 +21,0 @@ for (let { path, type, rename } of entries) {

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