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.
@indigov/flags-api
Advanced tools
Cross-platform Typescript SDK for the Flags service.
npm:
npm i @indigov/flags-api
yarn:
yarn add @indigov/flags-api
import Flags from '@indigov/flags-api'
const flags = new Flags('API_TOKEN', 'OFFICE_NAME', 'SOURCE_OF_REQUEST')
// e.g.
flags = new Flags('435234sdfgswdasdf', 'indigovstaging', 'northstar')
The SDK exposes 3 endpoints - documentation is in source code:
// Uses office supplied in instanttiation
flags.getFlag('bulkapi:flags:minifiedhtmlenabled').then(console.log)
// Overrriding office
flags.getFlag('bulkapi:flags:minifiedhtmlenabled', 'repkim').then(console.log)
// Fetching raw flag value
flags.getFlagValue('bulkapi:flags:minifiedhtmlenabled').then(console.log)
TODO
Maybe use ts-node-script
Tests are pending.
Tests are run using jest
backed by ts-jest
to avoid the need for transpilation.
yarn test
Bump the version in package.json
then run:
npm publish
Note: You must be logged into npm
through the CLI and part of the Indigov org.
FAQs
Strongly typed React/Node client for the Flags service
The npm package @indigov/flags-api receives a total of 3 weekly downloads. As such, @indigov/flags-api popularity was classified as not popular.
We found that @indigov/flags-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 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.
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.