package.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "name": "socket.io-parser",
  3. "version": "4.2.0",
  4. "description": "socket.io protocol parser",
  5. "repository": {
  6. "type": "git",
  7. "url": "https://github.com/socketio/socket.io-parser.git"
  8. },
  9. "files": [
  10. "build/"
  11. ],
  12. "main": "./build/cjs/index.js",
  13. "module": "./build/esm/index.js",
  14. "types": "./build/esm/index.d.ts",
  15. "exports": {
  16. "import": {
  17. "node": "./build/esm-debug/index.js",
  18. "default": "./build/esm/index.js"
  19. },
  20. "require": "./build/cjs/index.js"
  21. },
  22. "dependencies": {
  23. "@socket.io/component-emitter": "~3.1.0",
  24. "debug": "~4.3.1"
  25. },
  26. "devDependencies": {
  27. "@babel/core": "~7.9.6",
  28. "@babel/preset-env": "~7.9.6",
  29. "@types/debug": "^4.1.5",
  30. "@types/node": "^14.11.1",
  31. "babelify": "~10.0.0",
  32. "benchmark": "2.1.2",
  33. "expect.js": "0.3.1",
  34. "mocha": "3.2.0",
  35. "prettier": "^2.1.2",
  36. "rimraf": "^3.0.2",
  37. "socket.io-browsers": "^1.0.0",
  38. "typescript": "^4.0.3",
  39. "zuul": "3.11.1",
  40. "zuul-ngrok": "4.0.0"
  41. },
  42. "scripts": {
  43. "compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
  44. "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
  45. "test:node": "mocha --reporter dot --bail test/index.js",
  46. "test:browser": "zuul test/index.js --no-coverage",
  47. "format:fix": "prettier --write --parser typescript 'lib/**/*.ts' 'test/**/*.js'",
  48. "format:check": "prettier --check --parser typescript 'lib/**/*.ts' 'test/**/*.js'",
  49. "prepack": "npm run compile"
  50. },
  51. "license": "MIT",
  52. "engines": {
  53. "node": ">=10.0.0"
  54. },
  55. "__npminstall_done": true,
  56. "_from": "socket.io-parser@4.2.0",
  57. "_resolved": "https://registry.npmmirror.com/socket.io-parser/-/socket.io-parser-4.2.0.tgz"
  58. }