Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
sfdx-generator
Advanced tools
A typescript tool that generates SFDX wrappers
const sfdxGenerator = require('../compiled/sfdx-generator.js');
const path = require('path');
const root = path.resolve(__dirname, './..');
// Using sfdx from dev dependencies instead of global;
const sfdxPath = path.resolve(root, './node_modules/.bin/sfdx.cmd');
const generator = new sfdxGenerator.Generator({
SFDXPath: 'sfdx',
outputDirectory: path.resolve(root, './generated'),
templateDirectory: path.resolve(root, './templatesExample'),
fileExtension: '.ts'
});
// Generate files using sfdx output.
generator.generate().then(() => {
console.log('Generating done');
});
Read our doc here: https://coveo.github.io/sfdx-generator/
npm start
: Runs npm run build
in watch mode.npm run build
: Generage bundles and typings, create docs.npm run lint
: Lints code.npm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:).npm run generate
: Generate wrapper classes using the SFDX executable in path.There is already set a precommit
hook for formatting your code with Prettier :nail_care:
By default, there are 2 disabled git hooks. They're set up when you run the npm run semantic-release-prepare
script. They make sure:
git push
.This makes more sense in combination with automatic releases.
Made with :heart:
FAQs
A node wrapper for Salesforce DX
The npm package sfdx-generator receives a total of 0 weekly downloads. As such, sfdx-generator popularity was classified as not popular.
We found that sfdx-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.