
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
branchio-sdk
Advanced tools
This is an unofficial sdk for branch.io. See API reference for what you can do with branch here
Features
appId
or branchKey
> npm install branchio-sdk
const branchio = require('branchio-sdk')
const client = branchio({
appId: <APP_ID>,
key: <BRANCH_IO_KEY> // initialize branchio with either appId or branch key and branch secret but not both
secret: <BRANCH_IO_SECRET>
})
const { url } = await client.link({
alias: '',
stage: 'new user',
channel: 'facebook',
feature: 'dashboard',
campaign: 'content 123',
tags: [ 'tag1', 'tag2', 'tag3' ],
data: {
'custom_bool': true,
'$og_title': 'Title',
'$og_description': 'Description',
'$og_image_url': 'https://lorempixel.com/400/400'
}
})
//=> https://example.app.link/0AjuiLcpqF
This method is use for creating a deep link. See corresponding docs here
const { url } = await client.link({
alias: '',
stage: 'new user',
channel: 'facebook',
feature: 'dashboard',
campaign: 'content 123',
tags: [ 'tag1', 'tag2', 'tag3' ],
data: {
'custom_bool': true,
'$og_title': 'Title',
'$og_description': 'Description',
'$og_image_url': 'https://lorempixel.com/400/400'
}
})
//=> https://example.app.link/0AjuiLcpqF
This method allows you to create multiple deep links at a go. See docs
const links = await client.bulkLinks([
{
stage: 'new user',
channel: 'facebook',
feature: 'dashboard',
campaign: 'content 123',
tags: [ 'tag1', 'tag2', 'tag3' ],
data: {
'custom_bool': true,
'$og_title': 'Title',
'$og_description': 'Description',
'$og_image_url': 'https://lorempixel.com/400/400'
}
},
{
stage: 'new user',
channel: 'facebook',
feature: 'dashboard',
campaign: 'content 123',
tags: [ 'tag1', 'tag2', 'tag3' ],
data: {
'custom_bool': true,
'$og_title': 'Title',
'$og_description': 'Description',
'$og_image_url': 'https://lorempixel.com/400/400'
}
}
])
// => [{ url: 'https://example.app.link/xUrsD0P' }, { url: 'https:/example.app.link/erTweDt' }]
This method is for reading details of a deep link. See corresponding docs here
const linkData = await client.readLink('https://example.app.link/0AjuiLcpqF')
//=> link data
This method is for updating details of a deep link
const client = branch({ key: '<BRANCH_IO_KEY', secret: '<BRANCH_IO_SECRET' })
const updateData = await client.updateLink({
deepLink: 'https://example.app.link/ggxaqsx1dR',
data: {
channel: 'twitter',
data: {
name: 'John',
user_id: 2481084010
}
}
})
//=> link data
...
FAQs
The Unofficial Node SDK for branch.io
The npm package branchio-sdk receives a total of 1,466 weekly downloads. As such, branchio-sdk popularity was classified as popular.
We found that branchio-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.