package.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "name": "engine.io-parser",
  3. "description": "Parser for the client for the realtime Engine",
  4. "license": "MIT",
  5. "version": "5.2.1",
  6. "main": "./build/cjs/index.js",
  7. "module": "./build/esm/index.js",
  8. "exports": {
  9. "import": "./build/esm/index.js",
  10. "require": "./build/cjs/index.js"
  11. },
  12. "types": "build/esm/index.d.ts",
  13. "homepage": "https://github.com/socketio/engine.io-parser",
  14. "devDependencies": {
  15. "@babel/core": "~7.9.6",
  16. "@babel/preset-env": "~7.9.6",
  17. "@types/mocha": "^9.0.0",
  18. "@types/node": "^16.9.6",
  19. "babelify": "^10.0.0",
  20. "benchmark": "^2.1.4",
  21. "expect.js": "0.3.1",
  22. "mocha": "^5.2.0",
  23. "nyc": "~15.0.1",
  24. "prettier": "^1.19.1",
  25. "rimraf": "^3.0.2",
  26. "socket.io-browsers": "^1.0.4",
  27. "ts-node": "^10.2.1",
  28. "tsify": "^5.0.4",
  29. "typescript": "^4.4.3",
  30. "zuul": "3.11.1",
  31. "zuul-ngrok": "4.0.0"
  32. },
  33. "scripts": {
  34. "compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
  35. "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
  36. "test:node": "nyc mocha -r ts-node/register test/index.ts",
  37. "test:browser": "zuul test/index.ts --no-coverage",
  38. "format:check": "prettier --check 'lib/**/*.ts' 'test/**/*.ts'",
  39. "format:fix": "prettier --write 'lib/**/*.ts' 'test/**/*.ts'",
  40. "prepack": "npm run compile"
  41. },
  42. "repository": {
  43. "type": "git",
  44. "url": "git@github.com:socketio/engine.io-parser.git"
  45. },
  46. "files": [
  47. "build/"
  48. ],
  49. "browser": {
  50. "./test/node": "./test/browser",
  51. "./build/esm/encodePacket.js": "./build/esm/encodePacket.browser.js",
  52. "./build/esm/decodePacket.js": "./build/esm/decodePacket.browser.js",
  53. "./build/cjs/encodePacket.js": "./build/cjs/encodePacket.browser.js",
  54. "./build/cjs/decodePacket.js": "./build/cjs/decodePacket.browser.js"
  55. },
  56. "engines": {
  57. "node": ">=10.0.0"
  58. }
  59. }