package.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "name": "socket.io-parser",
  3. "version": "4.2.6",
  4. "description": "socket.io protocol parser",
  5. "homepage": "https://github.com/socketio/socket.io/tree/main/packages/socket.io-client#readme",
  6. "repository": {
  7. "type": "git",
  8. "url": "git+https://github.com/socketio/socket.io.git"
  9. },
  10. "bugs": {
  11. "url": "https://github.com/socketio/socket.io/issues"
  12. },
  13. "files": [
  14. "build/"
  15. ],
  16. "main": "./build/cjs/index.js",
  17. "module": "./build/esm/index.js",
  18. "types": "./build/esm/index.d.ts",
  19. "exports": {
  20. "import": {
  21. "node": "./build/esm-debug/index.js",
  22. "development": "./build/esm-debug/index.js",
  23. "default": "./build/esm/index.js"
  24. },
  25. "require": "./build/cjs/index.js"
  26. },
  27. "dependencies": {
  28. "@socket.io/component-emitter": "~3.1.0",
  29. "debug": "~4.4.1"
  30. },
  31. "scripts": {
  32. "compile": "rimraf ./build && tsc && tsc -p tsconfig.esm.json && ./postcompile.sh",
  33. "test": "npm run format:check && npm run compile && if test \"$BROWSERS\" = \"1\" ; then npm run test:browser; else npm run test:node; fi",
  34. "test:node": "mocha --reporter dot --bail test/index.js",
  35. "test:browser": "wdio",
  36. "format:fix": "prettier --write --parser typescript '*.js' 'lib/**/*.ts' 'test/**/*.js'",
  37. "format:check": "prettier --check --parser typescript '*.js' 'lib/**/*.ts' 'test/**/*.js'",
  38. "prepack": "npm run compile"
  39. },
  40. "license": "MIT",
  41. "engines": {
  42. "node": ">=10.0.0"
  43. }
  44. }