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.
Use async fs. No more blocking code. fs-extra + bluebird promisify
$ npm install --save file-async
var fsAsync = require('file-async');
var TMP_FILE_PATH = '/tmp/file_content.js';
// touch
return fsAsync.createFile(TMP_FILE_PATH).then(function () {
// get stat
return fsAsync.stat(TMP_FILE_PATH);
})
.then(function(file_stat) {
// check
console.log(TMP_FILE_PATH, 'is a file?', file_stat.isFile());
})
.then(function() {
// remove tmp file
return fsAsync.remove(TMP_FILE_PATH);
})
.then(function() {
// exits?
return fsAsync.exists(TMP_FILE_PATH);
})
.then(function(file_exists) {
// check again
console.log(TMP_FILE_PATH, 'is a file?', file_exists);
});
Install/Update dependencies:
$ npm install --save-dev azk-dev
$ gulp editor:config
$ gulp babel:runtime:install
$ npm install
Commit
$ git add .
$ git commit -m 'Updated azk-dev.'
Show all gulp tasks:
$ gulp help
# default (lint + test, no watch)
$ gulp lint test
# test + lint + watch
$ gulp watch:lint:test
# test + watch (no-lint)
$ gulp watch:test
You can deploy package with:
$ npm run deploy [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]
This should run the following steps:
npm test
package.json
, commit and add tagFAQs
fs-extra + bluebird promisify
The npm package file-async receives a total of 9 weekly downloads. As such, file-async popularity was classified as not popular.
We found that file-async 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.