123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- {
- "name": "@sanity/client",
- "version": "5.4.2",
- "description": "Client for retrieving, creating and patching data from Sanity.io",
- "keywords": [
- "sanity",
- "cms",
- "headless",
- "realtime",
- "content",
- "client",
- "fetch",
- "api"
- ],
- "homepage": "https://www.sanity.io/",
- "bugs": {
- "url": "https://github.com/sanity-io/client/issues"
- },
- "repository": {
- "type": "git",
- "url": "git+ssh://git@github.com/sanity-io/client.git"
- },
- "license": "MIT",
- "author": "Sanity.io <hello@sanity.io>",
- "sideEffects": false,
- "type": "module",
- "exports": {
- ".": {
- "types": "./dist/index.d.ts",
- "browser": {
- "source": "./src/index.browser.ts",
- "require": "./dist/index.browser.cjs",
- "import": "./dist/index.browser.js"
- },
- "deno": "./dist/index.browser.js",
- "edge-light": "./dist/index.browser.js",
- "worker": "./dist/index.browser.js",
- "source": "./src/index.ts",
- "require": "./dist/index.cjs",
- "node": {
- "import": "./dist/index.cjs.js",
- "require": "./dist/index.cjs"
- },
- "import": "./dist/index.js",
- "default": "./dist/index.js"
- },
- "./package.json": "./package.json"
- },
- "main": "./dist/index.cjs",
- "unpkg": "umd/sanityClient.min.js",
- "module": "./dist/index.js",
- "source": "./src/index.ts",
- "browser": {
- "./dist/index.cjs": "./dist/index.browser.cjs",
- "./dist/index.js": "./dist/index.browser.js"
- },
- "types": "./dist/index.d.ts",
- "files": [
- "dist",
- "src",
- "umd"
- ],
- "scripts": {
- "prebuild": "npm run clean",
- "build": "pkg build --strict && pkg --strict && npm run rollup && npm run minify",
- "clean": "npx rimraf dist coverage umd/*.js",
- "coverage": "vitest run --coverage",
- "lint": "eslint . --ext .cjs,.js,.ts --max-warnings 0",
- "minify": "terser -c -m -- umd/sanityClient.js > umd/sanityClient.min.js",
- "prepublishOnly": "npm run build",
- "rollup": "NODE_ENV=production rollup -c rollup.config.cjs",
- "test": "vitest",
- "test:browser": "npm test -- --config ./vitest.browser.config.ts",
- "test:bun": "(cd runtimes/bun && bun wiptest)",
- "test:deno": "deno test --allow-read --allow-net --allow-env --fail-fast --import-map=runtimes/deno/import_map.json runtimes/deno",
- "test:deno:update_import_map": "deno run --allow-read --allow-write runtimes/deno/update_import_map.ts",
- "posttest:deno:update_import_map": "npx prettier --write runtimes/deno/import_map.json",
- "test:edge-runtime": "npm test -- --config vitest.edge.config.ts",
- "test:node-runtimes": "node --test runtimes/node | npx faucet"
- },
- "browserslist": [
- "> 0.2% and supports es6-module and supports es6-module-dynamic-import and not dead and not IE 11",
- "maintained node versions"
- ],
- "prettier": {
- "bracketSpacing": false,
- "printWidth": 100,
- "semi": false,
- "singleQuote": true
- },
- "dependencies": {
- "@sanity/eventsource": "5",
- "get-it": "^8.1",
- "rxjs": "7"
- },
- "devDependencies": {
- "@edge-runtime/types": "^2.0.8",
- "@edge-runtime/vm": "^2.1.2",
- "@rollup/plugin-commonjs": "^24.0.1",
- "@rollup/plugin-node-resolve": "^15.0.1",
- "@sanity/pkg-utils": "^2.2.13",
- "@sanity/semantic-release-preset": "^4.1.0",
- "@types/node": "^18.15.10",
- "@typescript-eslint/eslint-plugin": "^5.57.0",
- "@typescript-eslint/parser": "^5.57.0",
- "@vitest/coverage-c8": "^0.29.8",
- "eslint": "^8.36.0",
- "eslint-config-prettier": "^8.8.0",
- "eslint-plugin-prettier": "^4.2.1",
- "eslint-plugin-simple-import-sort": "^10.0.0",
- "faucet": "^0.0.4",
- "happy-dom": "^8.9.0",
- "ls-engines": "^0.9.0",
- "nock": "^13.3.0",
- "prettier": "^2.8.7",
- "prettier-plugin-packagejson": "^2.4.3",
- "rimraf": "^4.4.1",
- "rollup": "^3.20.2",
- "sse-channel": "^4.0.0",
- "terser": "^5.16.8",
- "typescript": "^5.0.2",
- "vitest": "^0.29.8",
- "vitest-github-actions-reporter": "^0.10.0"
- },
- "engines": {
- "node": ">=14.18"
- }
- }
|