Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@spotify-confidence/openfeature-server-provider
Advanced tools
![](https://img.shields.io/badge/lifecycle-beta-a0c3d2.svg)
JavaScript implementation of the Confidence OpenFeature web provider, to be used in conjunction wth the OpenFeature JS SDK. This implements the dynamic paradigm of OpenFeature.
To add the packages to your dependencies run:
yarn add @openfeature/server-sdk @spotify-confidence/openfeature-server-provider @openfeature/core
import { createConfidenceServerProvider } from '@spotify-confidence/openfeature-server-provider';
import { OpenFeature } from '@openfeature/server-sdk';
const provider = createConfidenceServerProvider({
clientSecret: 'your-client-secret',
fetchImplementation: fetch,
timeout: 1000,
});
OpenFeature.setProvider(provider);
const client = OpenFeature.getClient();
client
.getBooleanValue('flagname.bool', false, {
targetingKey: `your targeting key`,
})
.then(result => {
console.log('result:', result);
});
The region option is used to set the region for the network request to the Confidence backend. When the region is not set, the default (global) region will be used.
The current regions are: eu
and us
, the region can be set as follows:
const provider = createConfidenceServerProvider({
region: 'eu', // or 'us'
// ... other options
});
The timeout option is used to set the timeout for the network request to the Confidence backend. When the timeout is reached, default values will be returned.
See apply concept.
Backend apply is the only supported method in the ConfidenceServerProvider
.
FAQs
Unknown package
The npm package @spotify-confidence/openfeature-server-provider receives a total of 88 weekly downloads. As such, @spotify-confidence/openfeature-server-provider popularity was classified as not popular.
We found that @spotify-confidence/openfeature-server-provider demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.