Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@harvest-profit/model-helpers
Advanced tools
You can find the documentation here
You will need an NPM access token to access this repo.
Simply run the following to install:
yarn add @harvest-profit/model-helpers
To use this package, just give it a try!
import { Contract } from '@harvest-profit/model-helpers';
const contractUrl = Contract.translateContractTypeToName('hedge_to_arrive');
console.log(contractUrl); // Outputs: `Hedge To Arrive`
You should NEVER be checking what type the contract is, or setting the contract type without using the module defined types. Example:
// Example of BAD
if (contract.type_name === 'cashsale') {
// ... do something
}
// Example of GOOD
if (Contract.isCashSaleType(contract.type_name)) {
// ... do something
}
Clone this repo, and begin committing changes. PRs are preferred over committing directly to master.
To run tests locally on your machine, run the following:
yarn run test
To preview documentation locally on your machine, run the following:
yarn run build-docs
After merging your pull request, consider updating the documentation with the following command:
yarn run publish-docs
This package is published as a Private NPM Module.
To publish to the private NPM registry, simply run the following, after bumping the package.json
version:
# Publish using Yarn
yarn publish
# Or publish using NPM
npm publish
Copyright 2017-Present Harvest Profit. This repo contains private code. No copying or external use permitted.
FAQs
All the calculations
The npm package @harvest-profit/model-helpers receives a total of 21 weekly downloads. As such, @harvest-profit/model-helpers popularity was classified as not popular.
We found that @harvest-profit/model-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
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.