package.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {
  2. "name": "subscriptions-transport-ws",
  3. "version": "0.9.19",
  4. "description": "A websocket transport for GraphQL subscriptions",
  5. "main": "dist/index.js",
  6. "browser": "dist/client.js",
  7. "repository": {
  8. "type": "git",
  9. "url": "git+https://github.com/apollostack/subscriptions-transport-ws.git"
  10. },
  11. "dependencies": {
  12. "backo2": "^1.0.2",
  13. "eventemitter3": "^3.1.0",
  14. "iterall": "^1.2.1",
  15. "symbol-observable": "^1.0.4",
  16. "ws": "^5.2.0 || ^6.0.0 || ^7.0.0"
  17. },
  18. "scripts": {
  19. "clean": "rimraf browser dist coverage",
  20. "compile": "tsc",
  21. "pretest": "npm run compile",
  22. "test": "npm run testonly --",
  23. "posttest": "npm run lint",
  24. "lint": "tslint --format stylish --project ./tsconfig.json",
  25. "watch": "tsc -w",
  26. "testonly": "mocha --exit --reporter spec --full-trace ./dist/test/**/*.js",
  27. "coverage": "node ./node_modules/istanbul/lib/cli.js cover _mocha -- --exit --full-trace ./dist/test/tests.js",
  28. "postcoverage": "remap-istanbul --input coverage/coverage.raw.json --type lcovonly --output coverage/lcov.info",
  29. "browser-compile": "webpack --config \"./unpkg-webpack.config.js\"",
  30. "prepublishOnly": "npm run clean && npm run compile && npm run browser-compile"
  31. },
  32. "peerDependencies": {
  33. "graphql": ">=0.10.0"
  34. },
  35. "devDependencies": {
  36. "@types/chai": "^4.0.0",
  37. "@types/graphql": "^14.0.0",
  38. "@types/is-promise": "^2.1.0",
  39. "@types/lodash": "^4.14.109",
  40. "@types/mocha": "^5.2.5",
  41. "@types/node": "^8.0.8",
  42. "@types/sinon": "^5.0.1",
  43. "@types/ws": "^5.1.2",
  44. "chai": "^4.0.2",
  45. "graphql": "^15.3.0",
  46. "graphql-subscriptions": "^1.0.0",
  47. "istanbul": "^1.0.0-alpha.2",
  48. "lodash": "^4.17.1",
  49. "mocha": "^5.2.0",
  50. "mock-socket-with-protocol": "^7.1.0",
  51. "remap-istanbul": "^0.11.1",
  52. "rimraf": "^2.6.1",
  53. "sinon": "^6.1.4",
  54. "tslint": "^5.10.0",
  55. "typescript": "^3.9.6",
  56. "webpack": "^3.1.0"
  57. },
  58. "typings": "dist/index.d.ts",
  59. "typescript": {
  60. "definition": "dist/index.d.ts"
  61. },
  62. "license": "MIT"
  63. }