
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@boozt/sfmc-request
Advanced tools
sfmc-request
Many years ago, one decided to take matters into their own hands and build a module that would help people avoid the unbearable burden of dealing with unexpected responses from the Marketing Cloud API.
The hero tried to use the existing SDKs and thoughtfully inspect the documentation. After some time of careful research, his labors were rewarded and this package was born.
At the moment, this is limited but quite useful functionality that will be expanded later.
import { Client, DataExtensionRowAsync, DataExtensionRow } from '@boozt/sfmc-request'
const client = new ClientProvider(SFMC_BASE_URL, SFMC_SOAP_URL, SFMC_TOKEN_URL, [
{ name: SFMC_UNIT_NAME, clientId: SFMC_CLIENT_ID, clientSecret: SFMC_CLIENT_SECRET }
]).getClient(SFMC_UNIT_NAME)
const requestAsync = new DataExtensionRowAsync(client)
const requestSync = new DataExtensionRow(client)
const upsertResult = await requestAsync.upsert(TARGET_DE_KEY, upsertData)
if (upsertResult.ok) {
logger.status(`Update successful, requestId: ${upsertResult.value.requestId}`)
} else if (upsertResult.ok === false) {
return res.status(500).send(upsertResult.error.message)
}
const deleteResult = await requestSync.delete({ key: TARGET_DE_KEY }, deleteData)
if (deleteResult.ok) {
logger.status(`Deletion successful, requestId: ${deleteResult.value.RequestID}`)
} else if (deleteResult.ok === false) {
return res.status(500).send(JSON.stringify(deleteResult.error))
}
FAQs
SFMC Request
We found that @boozt/sfmc-request demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.