UNPKG

@ch1/rpc

Version:

JavaScript Remote Procedure Call (RPC)

116 lines (115 loc) 2.62 kB
{ "name": "@ch1/rpc", "description": "JavaScript Remote Procedure Call (RPC)", "keywords": [ "rpc", "remote", "procedure", "call", "parallel", "worker", "socket", "socket.io", "webworker", "postMessage" ], "version": "1.3.1", "author": { "name": "Michael J. Bennett", "email": "dev@michaeljbennett.info", "url": "https://michaeljbennett.info" }, "contributors": [], "license": "LGPL-3.0", "private": false, "repository": { "type": "git", "url": "https://github.com/bennett000/ch1-rpc" }, "homepage": "https://github.com/bennett000/ch1-rpc", "bugs": { "url": "https://github.com/bennett000/ch1-rpc/issues" }, "engines": { "node": ">=4.0.0" }, "main": "dist/index.cjs.js", "module": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "prebuild": "rimraf ./dist", "build": "tsc", "postbuild": "rollup --input dist/index.js --format cjs --file dist/index.cjs.js --sourcemap", "precommit": "lint-staged", "pretest": "rimraf coverage/ && rimraf ./dist", "test": "jest", "test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand", "test:watch": "jest --watch" }, "devDependencies": { "@types/jest": "^23.1.1", "@types/node": "^10.3.5", "husky": "^0.14.3", "jest": "^23.1.0", "lint-staged": "^7.2.0", "prettier": "^1.13.5", "rimraf": "^2.6.2", "rollup": "^0.65.2", "ts-jest": "^22.4.6", "typescript": "^3.0.3" }, "lint-staged": { "*.{ts,js,json,css,md}": [ "prettier --write --single-quote --trailing-comma all --print-width 78", "git add" ] }, "jest": { "collectCoverage": true, "collectCoverageFrom": [ "src/**/*.{ts,tsx}", "!**/node_modules/**", "!**/coverage/**", "!**/dist/**", "!**/*.d.ts", "!**/interfaces.ts", "!**/index.ts" ], "coverageDirectory": "coverage/", "coveragePathIgnorePatterns": [ "/node_modules/", "/coverage/", "/dist/" ], "coverageReporters": [ "json", "lcov", "text", "html" ], "coverageThreshold": { "global": { "branches": 80, "functions": 80, "lines": 80, "statements": 90 } }, "modulePathIgnorePatterns": [ "/coverage/", "/dist/" ], "transform": { "^.+\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ] } }