UNPKG

@sanity/client

Version:

Client for retrieving, creating and patching data from Sanity.io

119 lines 4.21 kB
{ "name": "@sanity/client", "version": "8.4.0", "description": "Client for retrieving, creating and patching data from Sanity.io", "keywords": [ "api", "client", "cms", "content", "fetch", "headless", "realtime", "sanity" ], "homepage": "https://www.sanity.io/", "bugs": { "url": "https://github.com/sanity-io/client/issues" }, "license": "MIT", "author": "Sanity.io <hello@sanity.io>", "repository": { "type": "git", "url": "git+https://github.com/sanity-io/client.git" }, "files": [ "dist", "src" ], "type": "module", "sideEffects": false, "types": "./dist/index.d.ts", "exports": { ".": { "react-server": "./dist/index.js", "sanity-function": "./dist/index.js", "deno": "./dist/index.js", "bun": "./dist/index.js", "workerd": "./dist/index.js", "worker": "./dist/index.js", "node": { "import": "./dist/index.node.js", "default": "./dist/index.node.js" }, "default": "./dist/index.js" }, "./csm": "./dist/csm.js", "./stega": "./dist/stega.js", "./media-library": "./dist/media-library.js", "./package.json": "./package.json" }, "dependencies": { "eventsource": "^5.1.0", "get-it": "^9.5.0", "obug": "^2.1.4", "rxjs": "^7.8.2" }, "devDependencies": { "@changesets/cli": "^2.31.1", "@cloudflare/vitest-pool-workers": "^0.21.3", "@edge-runtime/types": "^4.0.0", "@edge-runtime/vm": "^5.0.0", "@sanity/pkg-utils": "^12.1.2", "@types/json-diff": "^1.0.3", "@types/node": "^22.20.1", "@types/react": "^19.2.18", "@vercel/stega": "1.1.0", "@vitest/browser": "^4.1.10", "@vitest/browser-playwright": "^4.1.10", "@vitest/coverage-v8": "^4.1.10", "eventsource-encoder": "^1.0.2", "happy-dom": "^20.11.2", "json-diff": "^1.0.6", "knip": "^6.32.2", "ls-engines": "^0.10.1", "next": "^16.3.1", "oxfmt": "^0.63.0", "oxlint": "^1.78.0", "oxlint-tsgolint": "^7.0.2001", "pkg-pr-new": "^0.0.88", "playwright": "^1.62.1", "typescript": "7.0.2", "undici": "^7.29.0", "vitest": "^4.1.10" }, "browserslist": "extends @sanity/browserslist-config", "engines": { "node": ">=22.12.0" }, "inlinedDependencies": { "@vercel/stega": "1.1.0" }, "scripts": { "build": "pkg build --strict && pkg --strict", "coverage": "vitest run --coverage", "lint": "oxlint", "release": "changeset publish", "test": "vitest", "test:browser": "vitest run --config ./vitest.browser.config.ts", "test:bun": "bun run vitest run", "test:deno": "deno run -A --node-modules-dir=manual npm:vitest run --config ./vitest.deno.config.ts", "test:happy-dom": "vitest run --config ./vitest.happy-dom.config.ts", "test:integration": "vitest run --config ./vitest.integration.config.ts", "test:integration:bun": "bun run vitest run --config ./vitest.integration.config.ts", "test:integration:deno": "deno run -A --node-modules-dir=manual npm:vitest run --config ./vitest.integration.config.ts", "test:integration:node": "vitest run --config ./vitest.integration.config.ts", "test:integration:vercel-edge": "vitest run --config ./vitest.integration.vercel-edge.config.ts", "test:integration:workerd": "vitest run --config ./vitest.integration.workerd.config.ts", "test:next": "vitest run --config ./vitest.next.config.ts", "test:packaging": "vitest run --config ./vitest.packaging.config.ts", "test:react-server": "vitest run --config ./vitest.react-server.config.ts", "test:vercel-edge": "vitest run --config ./vitest.vercel-edge.config.ts", "test:workerd": "vitest run --config ./vitest.workerd.config.ts", "format": "oxfmt", "format:check": "oxfmt --check", "knip": "knip", "typecheck": "tsc --noEmit", "generate:context": "node scripts/prune-context-spec.mjs src/context/openapi.json .tmp/context-openapi.pruned.json && pnpm --package=typescript@5.9.3 --package=openapi-typescript@7.13.0 dlx openapi-typescript .tmp/context-openapi.pruned.json -o src/context/types.gen.ts && oxfmt src/context/openapi.json src/context/types.gen.ts" } }