graphql-norm-stale
Version:
Staleness tracking for normalized GraphQL responses
75 lines (74 loc) • 2.12 kB
JSON
{
"name": "graphql-norm-stale",
"version": "0.6.1",
"description": "Staleness tracking for normalized GraphQL responses",
"main": "lib/index.js",
"types": "lib/index",
"repository": "https://github.com/dividab/graphql-norm-stale",
"keywords": [
"graphql",
"normalization",
"denormalization",
"cache",
"stale"
],
"author": "Jonas Kello <jonas.kello@divid.se>",
"license": "MIT",
"files": [
"/lib",
"/src",
"package.json",
"CHANGELOG.md",
"LICENSE",
"README.md"
],
"engines": {
"node": ">=12.0.0"
},
"dependencies": {
"graphql-norm": "^1.2.0"
},
"peerDependencies": {
"graphql": "^14.5.8"
},
"devDependencies": {
"@types/jest": "^24.0.15",
"@types/node": "^12.0.12",
"@typescript-eslint/eslint-plugin": "^2.3.1",
"@typescript-eslint/parser": "^2.3.1",
"codecov": "^3.5.0",
"confusing-browser-globals": "^1.0.9",
"eslint": "^6.5.0",
"eslint-config-divid": "^0.2.1",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-functional": "^1.0.0-rc.2",
"graphql": "^14.5.8",
"husky": "^2.4.1",
"jest": "^24.8.0",
"lint-staged": "^9.1.0",
"prettier": "^1.18.2",
"rimraf": "^2.6.3",
"ts-jest": "^24.0.2",
"typescript": "^3.6.3"
},
"scripts": {
"lint": "eslint './{src,tests}/**/*.ts' --ext .ts -f visualstudio ",
"build": "rimraf lib && tsc -p src",
"build-test": "rimraf lib-test && tsc -p test",
"test-coverage": "jest",
"test": "jest --no-coverage",
"test:work": "jest --no-coverage ./test/denormalize.test.ts",
"verify": "yarn lint && yarn test-coverage && yarn build",
"precommit": "lint-staged",
"report-coverage": "codecov -f coverage/lcov.info",
"preversion": "yarn verify",
"postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push --follow-tags && echo \"Successfully released version $npm_package_version!\""
},
"lint-staged": {
"*.{ts,tsx}": "eslint --ext .ts -f visualstudio",
"*.{ts,tsx,json,css}": [
"prettier --write",
"git add"
]
}
}