Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@commercetools-test-data/cart
Advanced tools
This package provides the data model for the commercetools platform Cart
representations
https://docs.commercetools.com/api/projects/carts#representations
$ pnpm add -D @commercetools-test-data/cart
import {
Cart,
CartDraft,
type TCart,
type TCartDraft,
} from '@commercetools-test-data/cart';
const cart = Cart.random().build<TCart>();
const cartDraft = CartDraft.random().build<TCartDraft>();
// Presets
const emptyCartDraft = CartDraft.presets.empty().build<TCartDraft>();
import {
CustomLineItem,
CustomLineItemDraft,
type TCustomLineItem,
type TCustomLineItemDraft,
} from '@commercetools-test-data/cart';
const customLineItem = CustomLineItem.random().build<TCustomLineItem>();
const customLineItemDraft =
CustomLineItemDraft.random().build<TCustomLineItemDraft>();
import {
LineItem,
LineItemDraft,
type TLineItem,
type TLineItemDraft,
} from '@commercetools-test-data/cart';
const lineItem = LineItem.random().build<TLineItem>();
const lineItemDraft = LineItemDraft.random().build<TLineItemDraft>();
// Presets
const emptyLineItemDraft = LineItemDraft.presets
.empty()
.build<TLineItemDraft>();
FAQs
Data model for commercetools API Cart
The npm package @commercetools-test-data/cart receives a total of 2,785 weekly downloads. As such, @commercetools-test-data/cart popularity was classified as popular.
We found that @commercetools-test-data/cart 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.