Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@spotify-confidence/openfeature-server-provider
Advanced tools
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
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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.