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/**']
});
avaFiles.isTest(filePath);
//=> true or false
avaFiles.isSource(filePath);
//=> true or false
avaFiles.findTestFiles().then(files => {
// files is an array of found test files
});
avaFiles.findTestHelpers().then(files => {
// files is an array of found test helpers
});
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: []
Type: string
Default: process.cwd()
The base directory to search for files from.
Validate if filePath
is a test file.
Type: string
Path to the file.
Validate if filePath
is a source file.
Type: string
Path to the file.
Returns a Promise
for an Array
of string
paths to the found test files.
Returns a Promise
for an Array
of string
paths to the found helper 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.