UNPKG

batchloader

Version:

BatchLoader is a utility for data fetching layer to reduce requests via batching written in TypeScript. Inspired by Facebook's DataLoader

67 lines (66 loc) 2.41 kB
{ "name": "batchloader", "version": "0.0.22", "description": "BatchLoader is a utility for data fetching layer to reduce requests via batching written in TypeScript. Inspired by Facebook's DataLoader", "keywords": [ "TypeScript", "batch", "batchloader", "dataloader" ], "author": "Joon Ho Cho", "license": "MIT", "homepage": "https://github.com/joonhocho/batchloader#readme", "repository": { "type": "git", "url": "git+https://github.com/joonhocho/batchloader.git" }, "bugs": { "url": "https://github.com/joonhocho/batchloader/issues" }, "module": "lib/index.js", "main": "dist/node/index.js", "browser": "dist/browser/index.js", "types": "lib/index.d.ts", "sideEffects": false, "scripts": { "all": "npm run clean && npm run format && npm run lint:fix && npm run build:all && npm run test", "build:all": "npm run build:module && npm run build:node && npm run build:browser", "build:browser": "tsc -p ./tsconfig.browser.json && tscpaths -p ./tsconfig.browser.json -s ./src -o ./dist/browser", "build:module": "tsc -p ./tsconfig.module.json && tscpaths -p ./tsconfig.module.json -s ./src -o ./lib", "build:node": "tsc -p ./tsconfig.node.json && tscpaths -p ./tsconfig.node.json -s ./src -o ./dist/node", "clean": "rm -rf ./lib ./dist ./coverage", "format": "prettier --write \"./*.{js,jsx,ts,tsx}\" \"./src/**/*.{js,jsx,ts,tsx}\"", "lint": "tslint -c ./tslint.json \"src/**/*.ts\"", "lint:fix": "tslint --fix -c ./tslint.json \"src/**/*.ts\"", "precommit": "npm run all", "prepublishOnly": "npm run all", "reinstall": "rm -rf ./node_modules ./package-lock.json ./yarn.lock && yarn", "start": "npm run test", "test": "jest", "test:coverage": "jest --coverage", "test:coverage:report": "jest --coverage && cat ./coverage/lcov.info | coveralls", "test:watch": "jest --watch" }, "pre-commit": "precommit", "peerDependencies": { "tslib": "^1.10.0" }, "devDependencies": { "@types/jest": "^24.0.20", "@types/node": "^12.11.7", "coveralls": "^3.0.7", "jest": "^24.9.0", "pre-commit": "^1.2.2", "prettier": "^1.18.2", "ts-jest": "^24.1.0", "tscpaths": "^0.0.9", "tslint": "^5.20.0", "tslint-config-airbnb": "^5.11.2", "tslint-config-prettier": "^1.18.0", "typescript": "^3.6.4" }, "engines": { "node": ">=8.0.0" } }