UNPKG

react-relay-network-modern

Version:

Network Layer for React Relay and Express (Batch Queries, AuthToken, Logging, Retry)

104 lines (103 loc) 3.57 kB
{ "name": "react-relay-network-modern", "version": "6.2.2", "description": "Network Layer for React Relay and Express (Batch Queries, AuthToken, Logging, Retry)", "engines": { "node": ">=14.21.3" }, "files": [ "es", "lib" ], "main": "lib/index.js", "types": "lib/index.d.ts", "repository": { "type": "git", "url": "https://github.com/relay-tools/react-relay-network-modern.git" }, "keywords": [ "relay", "react", "network layer", "batch", "express", "jwt", "auth token" ], "author": "Pavel Chertorogov @nodkz", "license": "MIT", "bugs": { "url": "https://github.com/relay-tools/react-relay-network-modern/issues" }, "homepage": "https://github.com/relay-tools/react-relay-network-modern#readme", "dependencies": { "@types/node": "^18.14.6", "core-js": "^3.29.0", "extract-files": "^9.0.0" }, "peerDependencies": { "relay-runtime": ">=1.4.0" }, "devDependencies": { "@babel/cli": "7.21.0", "@babel/core": "7.21.0", "@babel/eslint-parser": "^7.19.1", "@babel/plugin-proposal-class-properties": "7.18.6", "@babel/plugin-proposal-object-rest-spread": "7.20.7", "@babel/plugin-proposal-optional-chaining": "^7.21.0", "@babel/plugin-transform-flow-strip-types": "7.16.0", "@babel/polyfill": "7.12.1", "@babel/preset-env": "7.20.2", "@babel/preset-flow": "7.16.0", "@babel/register": "7.21.0", "babel-core": "^7.0.0-bridge.0", "babel-jest": "^29.4.3", "cz-conventional-changelog": "^3.3.0", "eslint": "^8.35.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.6.0", "eslint-module-utils": "^2.7.4", "eslint-plugin-import": "^2.27.5", "eslint-plugin-prettier": "^4.2.1", "fetch-mock": "^9.11.0", "flow-bin": "0.101.0", "form-data": "^4.0.0", "jest": "^29.4.3", "jest-environment-jsdom": "^29.4.3", "prettier": "^2.8.4", "relay-runtime": "^4.0.0", "rimraf": "^4.3.0", "semantic-release": "^15.13.12", "tslint": "^5.20.1", "tslint-config-prettier": "^1.18.0", "tslint-plugin-prettier": "^2.3.0", "typescript": "^4.8.4" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "jest": { "testEnvironment": "jsdom", "roots": [ "<rootDir>/src" ] }, "scripts": { "build": "npm run build-lib && npm run build-es", "build-lib": "rimraf lib && BABEL_ENV=lib babel src --ignore __tests__,__mocks__ -d lib && COPY_TO_FOLDER=lib npm run build-flow && COPY_TO_FOLDER=lib npm run build-dts ", "build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es && COPY_TO_FOLDER=es npm run build-flow && COPY_TO_FOLDER=es npm run build-dts", "build-flow": "echo `$1` && find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`.flow; done", "build-dts": "echo `$1` && find ./src -name '*d.ts' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`; done", "lint": "npm run eslint && npm run tslint && npm run tscheck", "eslint": "eslint --ext .js ./src", "tslint": "tslint -p . \"src/**/*.d.ts\"", "tscheck": "tsc --noEmit", "coverage": "jest --coverage --maxWorkers 2", "watch": "jest --watch", "flow": "flow", "test": "npm run coverage && npm run lint && npm run flow", "semantic-release": "semantic-release" } }