Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
File resolution for AVA
$ npm install --save ava-files
const AvaFiles = require('ava-files');
const avaFiles = new AvaFiles({
cwd: '/path/to/cwd',
files: ['**/glob/patterns/**'],
sources: ['**/glob/patterns/**']
});
const isTest = avaFiles.makeTestMatcher();
isTest(filePath);
//=> true or false
const isSource = avaFiles.makeSourceMatcher();
isSource(filePath);
//=> true or false
avaFiles.findTestFiles().then(files => {
// files is an array of found test files
});
Type: Array
of string
glob patterns
Default:
[
'test.js',
'test-*.js',
'test',
'**/__tests__',
'**/*.test.js',
'!**/node_modules/**',
'!**/fixtures/**',
'!**/helpers/**'
]
Type: Array
of string
glob patterns
Default: empty array
Type: string
Default: process.cwd()
The base directory to search for files from
Creates a filter function that matches test paths
Creates a filter function that matches source paths
Returns a promise for an array of string paths to the found test files
MIT © James Talmage
FAQs
File resolution for AVA
The npm package ava-files receives a total of 1,599 weekly downloads. As such, ava-files popularity was classified as popular.
We found that ava-files demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.