
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@commercetools/composable-commerce-test-data
Advanced tools
Data models for commercetools platform APIs
This package provides access to all the test data models used in the commercetools APIs.
$ pnpm add -D @commercetools/composable-commerce-test-data
This package gives you access to all the test data models available. In order to make sure consumers only pull the models they need, you need to import each one independently.
import {
ChanelGraphql,
ChannelDraftGraphql,
TChannelGraphql,
TChannelDraftGraphql,
} from '@commercetools/composable-commerce-test-data/channel';
import {
ProductRest,
ProductDraftRest,
TProductRest,
TProductDraftRest,
} from '@commercetools/composable-commerce-test-data/product';
// This is how to build read models
const channelGraphqlModel: TChannelGraphql = ChannelGraphql.random().build();
const productRestModel: TProductRest = ProductRest.random().build();
// This is how to build write models
const channelDraftGraphqlModel: TChannelDraftGraphql =
ChannelDraftGraphql.random().build();
const productDraftRestModel: TProductDraftRest =
ProductDraftRest.random().build();
// Some models also provide presets you can use like this
const foodStoreChannelGraphql: TChannelGraphql = ChannelGraphql.presets
.foodStore()
.build();
const happyCowMilkProductRest: TProductRest = ProductRest.presets
.happyCowMilk()
.build();
(head to the respective data model directory for more details)
FAQs
Data models for commercetools platform APIs
The npm package @commercetools/composable-commerce-test-data receives a total of 2,125 weekly downloads. As such, @commercetools/composable-commerce-test-data popularity was classified as popular.
We found that @commercetools/composable-commerce-test-data demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.