package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "name": "eventsource-parser",
  3. "version": "3.0.6",
  4. "description": "Streaming, source-agnostic EventSource/Server-Sent Events parser",
  5. "sideEffects": false,
  6. "type": "module",
  7. "types": "./dist/index.d.ts",
  8. "module": "./dist/index.js",
  9. "main": "./dist/index.cjs",
  10. "exports": {
  11. ".": {
  12. "source": "./src/index.ts",
  13. "import": "./dist/index.js",
  14. "require": "./dist/index.cjs",
  15. "default": "./dist/index.js"
  16. },
  17. "./stream": {
  18. "source": "./src/stream.ts",
  19. "import": "./dist/stream.js",
  20. "require": "./dist/stream.cjs",
  21. "default": "./dist/stream.js"
  22. },
  23. "./package.json": "./package.json"
  24. },
  25. "typesVersions": {
  26. "*": {
  27. "stream": [
  28. "./dist/stream.d.ts"
  29. ]
  30. }
  31. },
  32. "engines": {
  33. "node": ">=18.0.0"
  34. },
  35. "browserslist": [
  36. "node >= 20",
  37. "chrome >= 71",
  38. "safari >= 14.1",
  39. "firefox >= 105",
  40. "edge >= 79"
  41. ],
  42. "files": [
  43. "dist",
  44. "!dist/stats.html",
  45. "src",
  46. "stream.js"
  47. ],
  48. "scripts": {
  49. "build": "pkg-utils build && pkg-utils --strict",
  50. "clean": "rimraf dist coverage",
  51. "lint": "eslint . && tsc --noEmit",
  52. "posttest": "npm run lint",
  53. "prebuild": "npm run clean",
  54. "prepublishOnly": "npm run build",
  55. "test": "npm run test:node",
  56. "test:bun": "bun test",
  57. "test:deno": "deno run --allow-write --allow-net --allow-run --allow-sys --allow-ffi --allow-env --allow-read npm:vitest",
  58. "test:node": "vitest --reporter=verbose"
  59. },
  60. "author": "Espen Hovlandsdal <espen@hovlandsdal.com>",
  61. "keywords": [
  62. "sse",
  63. "eventsource",
  64. "server-sent-events"
  65. ],
  66. "devDependencies": {
  67. "@sanity/pkg-utils": "^8.0.0",
  68. "@sanity/semantic-release-preset": "^5.0.0",
  69. "@types/node": "^20.19.0",
  70. "@typescript-eslint/eslint-plugin": "^7.0.0",
  71. "@typescript-eslint/parser": "^7.0.0",
  72. "eslint": "^8.51.0",
  73. "eslint-config-prettier": "^9.1.0",
  74. "eslint-config-sanity": "^7.1.2",
  75. "eventsource-encoder": "^1.0.1",
  76. "prettier": "^3.5.3",
  77. "rimraf": "^6.0.1",
  78. "rollup-plugin-visualizer": "^6.0.3",
  79. "semantic-release": "^24.2.3",
  80. "typescript": "^5.8.3",
  81. "vitest": "^3.1.3"
  82. },
  83. "homepage": "https://github.com/rexxars/eventsource-parser#readme",
  84. "bugs": {
  85. "url": "https://github.com/rexxars/eventsource-parser/issues"
  86. },
  87. "repository": {
  88. "type": "git",
  89. "url": "git+ssh://git@github.com/rexxars/eventsource-parser.git"
  90. },
  91. "license": "MIT",
  92. "prettier": {
  93. "bracketSpacing": false,
  94. "printWidth": 100,
  95. "semi": false,
  96. "singleQuote": true
  97. },
  98. "eslintConfig": {
  99. "parserOptions": {
  100. "ecmaFeatures": {
  101. "modules": true
  102. },
  103. "ecmaVersion": 9,
  104. "sourceType": "module"
  105. },
  106. "extends": [
  107. "sanity",
  108. "sanity/typescript",
  109. "prettier"
  110. ],
  111. "ignorePatterns": [
  112. "lib/**/"
  113. ]
  114. }
  115. }