UNPKG

@data-client/rest

Version:

Quickly define typed REST resources and endpoints

151 lines (150 loc) 4.03 kB
{ "name": "@data-client/rest", "version": "0.14.25", "description": "Quickly define typed REST resources and endpoints", "homepage": "https://dataclient.io/rest", "repository": { "type": "git", "url": "git+ssh://git@github.com:reactive/data-client.git", "directory": "packages/rest" }, "bugs": { "url": "https://github.com/reactive/data-client/issues" }, "keywords": [ "REST", "CRUD", "networking", "fetch", "data", "cache", "model", "resource", "typescript", "HTTP", "path-to-regexp", "path template", "data fetching", "data cache", "api", "normalized cache", "subject pattern", "endpoint", "mutation", "front-end", "mobile", "react-native", "ios", "android", "web", "json", "async", "promise" ], "sideEffects": false, "main": "dist/index.js", "react-native": "legacy/index.js", "module": "legacy/index.js", "unpkg": "dist/index.umd.min.js", "types": "lib/index.d.ts", "typesVersions": { ">=5.0": { "": [ "lib/index.d.ts" ], "next": [ "lib/next/index.d.ts" ], "*": [ "lib/index.d.ts" ] }, ">=4.1": { "": [ "ts4.1/index.d.ts" ], "next": [ "ts4.1/next/index.d.ts" ], "*": [ "ts4.1/index.d.ts" ] }, ">=4.0": { "": [ "ts4.0/index.d.ts" ], "next": [ "ts4.0/next/index.d.ts" ], "*": [ "ts4.0/index.d.ts" ] } }, "exports": { ".": { "module": "./lib/index.js", "import": "./node.mjs", "require": "./dist/index.js", "browser": "./lib/index.js", "react-native": "./lib/index.js", "default": "./lib/index.js" }, "./next": { "types": "./lib/next/index.d.ts", "require": "./dist/next.js", "browser": "./lib/next/index.js", "react-native": "./lib/next/index.js", "default": "./lib/next/index.js" }, "./package.json": "./package.json" }, "type": "module", "engines": { "node": "^12.17 || ^13.7 || >=14" }, "files": [ "src", "dist", "lib", "node.mjs", "legacy", "ts4.0", "ts4.1", "LICENSE", "README.md" ], "scripts": { "build:lib": "NODE_ENV=production BROWSERSLIST_ENV='2020' POLYFILL_TARGETS='chrome>88,safari>14' yarn g:babel --out-dir lib", "build:legacy:lib": "NODE_ENV=production BROWSERSLIST_ENV='2018' POLYFILL_TARGETS='chrome>80,safari>13,firefox>72' yarn g:babel --out-dir legacy", "build:js:node": "BROWSERSLIST_ENV=node12 yarn g:rollup", "build:js:browser": "BROWSERSLIST_ENV=legacy yarn g:rollup", "build:bundle": "yarn g:runs build:js:\\* && echo '{\"type\":\"commonjs\"}' > dist/package.json", "build:clean": "yarn g:clean ts4.0 ts4.1 index.d.ts next.d.ts", "build:legacy-types": "yarn g:downtypes lib ts4.0 --to=4.0 && yarn g:downtypes lib ts4.1 --to=4.1 && yarn g:copy --up 1 ./src-4.1-types/**/*.d.ts ./ts4.0/ && yarn g:copy --up 1 ./src-4.1-types/**/*.d.ts ./ts4.1 && yarn g:copy --up 1 ./src-4.0-types/**/*.d.ts ./ts4.0", "build": "run build:lib && run build:legacy:lib && run build:bundle", "dev": "run build:lib -w", "prepare": "run build:lib", "prepack": "run prepare && run build:bundle && run build:legacy:lib", "tsc:ci": "yarn g:tsc --project tsconfig.test.json", "typecheck": "run tsc:ci" }, "author": "Nathaniel Tucker <me@ntucker.me> (https://github.com/ntucker)", "funding": "https://github.com/sponsors/ntucker", "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.20.0", "@data-client/endpoint": "^0.14.25", "path-to-regexp": "^6.3.0" }, "devDependencies": { "@anansi/browserslist-config": "^1.4.2", "@data-client/react": "workspace:*", "@data-client/test": "workspace:*", "@types/jest": "^29.5.14", "@types/node": "^22.0.0", "nock": "13.3.1", "rollup-plugins": "workspace:*" } }