@data-client/endpoint
Version:
Declarative Network Interface Definitions
150 lines (149 loc) • 3.7 kB
JSON
{
"name": "@data-client/endpoint",
"version": "0.14.26",
"description": "Declarative Network Interface Definitions",
"homepage": "https://dataclient.io/docs/guides/custom-protocol",
"keywords": [
"data",
"cache",
"networking",
"fetch",
"typescript",
"data fetching",
"data cache",
"api",
"normalized cache",
"subject pattern",
"declarative",
"definition",
"schema",
"async",
"ajax",
"react",
"front-end",
"mobile",
"react-native",
"ios",
"android",
"web",
"expo",
"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.4": {
"": [
"lib/index.d.ts"
],
"*": [
"lib/index.d.ts"
]
},
">=4.8": {
"": [
"ts4.8/index.d.ts"
],
"*": [
"ts4.8/index.d.ts"
]
},
">=4.2": {
"": [
"ts4.2/index.d.ts"
],
"*": [
"ts4.2/index.d.ts"
]
},
">=4.0": {
"": [
"ts4.0/index.d.ts"
],
"*": [
"ts4.0/index.d.ts"
]
},
">=3.4": {
"": [
"ts3.4/index.d.ts"
],
"*": [
"ts3.4/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"
},
"./package.json": "./package.json"
},
"type": "module",
"engines": {
"node": "^12.17 || ^13.7 || >=14"
},
"files": [
"src",
"dist",
"lib",
"ts4.8",
"ts4.2",
"ts4.0",
"ts3.4",
"node.mjs",
"legacy",
"LICENSE",
"README.md"
],
"scripts": {
"build:lib": "NODE_ENV=production BROWSERSLIST_ENV='2020' POLYFILL_TARGETS='chrome>88,safari>14' yarn g:babel --out-dir lib --ignore 'src/schemas-3.7'",
"build:legacy:lib": "NODE_ENV=production BROWSERSLIST_ENV='2018' POLYFILL_TARGETS='chrome>80,safari>13,firefox>72' yarn g:babel --out-dir legacy --ignore 'src/schemas-3.7'",
"build:js:node": "BROWSERSLIST_ENV=node12 yarn g:rollup && echo '{\"type\":\"commonjs\"}' > dist/package.json",
"build:js:browser": "BROWSERSLIST_ENV=legacy yarn g:rollup",
"build:bundle": "yarn g:runs build:js:\\*",
"build:clean": "yarn g:clean ts3.4 ts4.0 ts4.2 ts4.8",
"build": "run build:lib && run build:legacy:lib && run build:bundle",
"build:legacy-types": "yarn g:legacy-types 4.8 4.2 4.0 3.4",
"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",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com:reactive/data-client.git",
"directory": "packages/endpoint"
},
"bugs": {
"url": "https://github.com/reactive/data-client/issues"
},
"dependencies": {
"@babel/runtime": "^7.20.0"
},
"devDependencies": {
"@anansi/browserslist-config": "^1.4.2",
"@data-client/core": "workspace:*",
"@data-client/normalizr": "workspace:*",
"@js-temporal/polyfill": "^0.4.4",
"@types/jest": "^29.5.14",
"@types/node": "^22.0.0",
"immutable": "5.0.3",
"nock": "13.3.1",
"rollup-plugins": "workspace:*"
}
}