package.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "name": "socket.io-parser",
  3. "version": "4.2.4",
  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. "@babel/register": "^7.18.9",
  30. "@types/debug": "^4.1.5",
  31. "@types/node": "^14.11.1",
  32. "@wdio/cli": "^7.26.0",
  33. "@wdio/local-runner": "^7.26.0",
  34. "@wdio/mocha-framework": "^7.26.0",
  35. "@wdio/sauce-service": "^7.26.0",
  36. "@wdio/spec-reporter": "^7.26.0",
  37. "benchmark": "2.1.2",
  38. "expect.js": "0.3.1",
  39. "mocha": "^10.1.0",
  40. "prettier": "^2.1.2",
  41. "rimraf": "^3.0.2",
  42. "typescript": "^4.0.3",
  43. "wdio-geckodriver-service": "^4.0.0"
  44. },
  45. "scripts": {
  46. "compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
  47. "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
  48. "test:node": "mocha --reporter dot --bail test/index.js",
  49. "test:browser": "wdio",
  50. "format:fix": "prettier --write --parser typescript '*.js' 'lib/**/*.ts' 'test/**/*.js'",
  51. "format:check": "prettier --check --parser typescript '*.js' 'lib/**/*.ts' 'test/**/*.js'",
  52. "prepack": "npm run compile"
  53. },
  54. "license": "MIT",
  55. "engines": {
  56. "node": ">=10.0.0"
  57. }
  58. }