ワンクリックで
framework
HTTP and cross-cutting behavior for the CDA SDK — request.js, fetch retries, plugins, runtime http/localstorage.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
HTTP and cross-cutting behavior for the CDA SDK — request.js, fetch retries, plugins, runtime http/localstorage.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when reviewing PRs for contentstack-javascript—API compatibility, bundles, Jest, and npm/CDN impact.
Use for the contentstack npm package API—Stack, regions, queries, and @contentstack/utils usage.
Use for npm scripts, Husky, CI, and branch workflow in contentstack-javascript.
Use for Webpack configs, multi-target dist outputs, and Babel/loader setup in contentstack-javascript.
Use for Jest e2e and TypeScript test suites, jest configs, and test layout in contentstack-javascript.
Contentstack Content Delivery (CDA) JavaScript SDK — Stack, tokens, regions, queries, sync, live preview in src/core/.
| name | framework |
| description | HTTP and cross-cutting behavior for the CDA SDK — request.js, fetch retries, plugins, runtime http/localstorage. |
The SDK isolates networking and retries in src/core/lib/request.js, with platform-specific fetch and storage under src/runtime/.
| File / area | Responsibility |
|---|---|
src/core/lib/request.js | Builds query string from stack requestParams, sets headers (X-User-Agent, content type), fetchRetry, integrates stack.plugins (onRequest / onResponse), parses JSON, maps HTTP errors to rejection objects |
src/core/lib/utils.js | Merge/deep helpers and shared utilities used by stack and modules |
src/core/stack.js | Default fetchOptions (retry policy, logHandler), merges user options, constructs requestParams for calls |
src/runtime/node/http.js, web/http.js, etc. | Platform fetch implementation wired via webpack alias runtime/http.js |
src/runtime/*/localstorage.js | Cache provider storage for each target |
request.js / stack.js (fetchOptions) and JSDoc on Stack.request.js (keep backward compatible for CDN query shapes).request.js.src/runtime/<platform>/, webpack config, and package entry fields if needed.test/ or test/typescript/ when changing request behavior; many suites load dist/node/contentstack.js — run npm run build after src/ edits..cursor/rules/javascript.mdc for style; CDA semantics in .cursor/rules/contentstack-javascript-cda.mdc