Socket
Socket
Sign inDemoInstall

lint-staged

Package Overview
Dependencies
Maintainers
1
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lint-staged - npm Package Compare versions

Comparing version 15.0.0 to 15.0.1

4

lib/makeCmdTasks.js

@@ -27,4 +27,6 @@ import debug from 'debug'

const isFn = typeof cmd === 'function'
const resolved = isFn ? await cmd(files) : cmd
/** Pass copy of file list to prevent mutation by function from config file. */
const resolved = isFn ? await cmd([...files]) : cmd
const resolvedArray = Array.isArray(resolved) ? resolved : [resolved] // Wrap non-array command as array

@@ -31,0 +33,0 @@

{
"name": "lint-staged",
"version": "15.0.0",
"version": "15.0.1",
"description": "Lint files staged by git",

@@ -36,3 +36,3 @@ "license": "MIT",

"postversion": "npm i --package-lock-only && git commit -am \"chore(changeset): release\"",
"publish": "npx changeset tag"
"tag": "npx changeset tag"
},

@@ -39,0 +39,0 @@ "dependencies": {

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