
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@justeattakeaway/cc-braze-adapter
Advanced tools
This is the package for the new braze adapter running on v4 of the Braze SDK.
For the older version please see the fozzie components repo f-braze-aapter
.
To install the package run one of the following:
yarn add @justeattakewaway/cc-braze-adapter
npm install @justeattakewaway/cc-braze-adapter
You will also need to install the peer dependency of @braze/web-sdk
:
yarn add @braze/web-sdk
npm install @braze/web-sdk
To use the adapter you first have to call the function with an Object containing following parameters
{
apiKey: "THIS IS THE BRAZE API KEY",
sdkEndpoint: "ENDPOINT FOR BRAZE SDK",
userId: "THE GLOBAL USER ID"
}
Example adapter call:
import brazeAdapter from "@justeattakeaway/cc-braze-adapter";
const adapter = brazeAdapter({
apiKey: 'THIS IS THE BRAZE API KEY',
sdkEndpoint: 'ENDPOINT FOR BRAZE SDK',
userId: 'THE GLOBAL USER ID'
});
Once the adapter function has been called you then need to do the following to use the adapter. Callback have been used instead of promises as cards maybe returned more than once (updates to cards return if braze gets updates). This is something that you should factor into integration.
adapter.initalise((cards) => {
// do somthing with cards
}, (error) => {
// do somthing with errors
})
The adapter source can get obtained by using the source attribute on adapter.
adapter.source
FAQs
The promotion card component of content cards
The npm package @justeattakeaway/cc-braze-adapter receives a total of 0 weekly downloads. As such, @justeattakeaway/cc-braze-adapter popularity was classified as not popular.
We found that @justeattakeaway/cc-braze-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.