package.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "@sanity/eventsource",
  3. "version": "5.0.1",
  4. "description": "EventSource polyfill for browser and node.js",
  5. "keywords": [
  6. "sanity",
  7. "cms",
  8. "headless",
  9. "realtime",
  10. "content",
  11. "eventsource",
  12. "polyfill"
  13. ],
  14. "homepage": "https://www.sanity.io/",
  15. "bugs": {
  16. "url": "https://github.com/sanity-io/sanity/issues"
  17. },
  18. "repository": {
  19. "type": "git",
  20. "url": "git+https://github.com/sanity-io/eventsource.git"
  21. },
  22. "license": "MIT",
  23. "author": "Sanity.io <hello@sanity.io>",
  24. "sideEffects": false,
  25. "type": "commonjs",
  26. "exports": {
  27. ".": {
  28. "types": "./node.d.ts",
  29. "browser": {
  30. "types": "./browser.d.ts",
  31. "default": "./browser.js"
  32. },
  33. "deno": "./browser.js",
  34. "edge-light": "./browser.js",
  35. "worker": "./browser.js",
  36. "node": "./node.js",
  37. "default": "./node.js"
  38. },
  39. "./browser": {
  40. "types": "./browser.d.ts",
  41. "default": "./browser.js"
  42. },
  43. "./node": {
  44. "types": "./node.d.ts",
  45. "default": "./node.js"
  46. },
  47. "./package.json": "./package.json"
  48. },
  49. "main": "./node.js",
  50. "browser": "./browser.js",
  51. "types": "./node.d.ts",
  52. "typesVersions": {
  53. "*": {
  54. "browser": [
  55. "./browser.d.ts"
  56. ],
  57. "node": [
  58. "./node.d.ts"
  59. ]
  60. }
  61. },
  62. "files": [
  63. "CHANGELOG.md",
  64. "browser.js",
  65. "browser.d.ts",
  66. "node.js",
  67. "node.d.ts"
  68. ],
  69. "scripts": {
  70. "prepublishOnly": "tsc",
  71. "test": "tsc --noEmit --emitDeclarationOnly false"
  72. },
  73. "prettier": {
  74. "semi": false,
  75. "singleQuote": true
  76. },
  77. "dependencies": {
  78. "@types/event-source-polyfill": "1.0.2",
  79. "@types/eventsource": "1.1.12",
  80. "event-source-polyfill": "1.0.31",
  81. "eventsource": "2.0.2"
  82. },
  83. "devDependencies": {
  84. "prettier": "^3.0.3",
  85. "prettier-plugin-packagejson": "^2.4.5",
  86. "typescript": "5.2.2"
  87. }
  88. }