apollo-link-timeout
Version:
Abort requests that take longer than a specified timeout period
91 lines (90 loc) • 2.42 kB
JSON
{
"name": "apollo-link-timeout",
"version": "5.1.0",
"description": "Abort requests that take longer than a specified timeout period",
"peerDependencies": {
"@apollo/client": "^3.0.0"
},
"devDependencies": {
"@apollo/client": "^3.13.9",
"@types/jest": "^23.1.1",
"@types/node": "^10.3.4",
"graphql": "^15.3.0",
"graphql-tag": "^2.11.0",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"ts-jest": "^28.0.8",
"tslint": "^5.8.0",
"typescript": "^4.9.5"
},
"main": "./lib/cjs/cjs.js",
"types": "./lib/types/timeoutLink.d.ts",
"exports": {
".": {
"import": "./lib/esm/timeoutLink.js",
"require": "./lib/cjs/cjs.js",
"types": "./lib/types/timeoutLink.d.ts"
}
},
"repository": {
"type": "git",
"url": "https://github.com/drcallaway/apollo-link-timeout"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"build": "yarn build:cjs && yarn build:esm && yarn build:types",
"build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json",
"build:esm": "tsc -p tsconfig.esm.json && echo '{\"type\": \"module\"}' > lib/esm/package.json && node scripts/fix_apollo_import.mjs",
"build:types": "tsc -p tsconfig.types.json",
"lint": "tslint src/*.ts* src/**/*.ts*",
"test": "yarn test:unit && yarn test:integration",
"test:integration": "node __tests__/integration/run.mjs",
"test:unit": "jest",
"prepublish": "yarn lint && yarn test:unit && yarn build",
"deploy": "yarn publish && git push"
},
"keywords": [
"graphql",
"apollo",
"apollo-link",
"timeout"
],
"author": "Dustin Callaway <drcallaway@gmail.com>",
"license": "MIT",
"files": [
"lib",
"src"
],
"jest": {
"globals": {
"ts-jest": {
"useESM": true
}
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"moduleNameMapper": {
"(.+)\\.js": "$1"
},
"testEnvironment": "./__tests__/fixedEnvironment.js",
"transformIgnorePatterns": [
"__tests__/fixedEnvironment.js",
"/node_modules/"
],
"testPathIgnorePatterns": [
"__tests__/integration/",
"/node_modules/",
"/lib/"
],
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx)$",
"transform": {
".(ts|tsx)": "ts-jest"
}
}
}