package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "name": "jsdom",
  3. "version": "20.0.3",
  4. "description": "A JavaScript implementation of many web standards",
  5. "keywords": [
  6. "dom",
  7. "html",
  8. "whatwg",
  9. "w3c"
  10. ],
  11. "maintainers": [
  12. "Elijah Insua <tmpvar@gmail.com> (http://tmpvar.com)",
  13. "Domenic Denicola <d@domenic.me> (https://domenic.me/)",
  14. "Sebastian Mayr <sebmaster16@gmail.com> (https://blog.smayr.name/)",
  15. "Joris van der Wel <joris@jorisvanderwel.com>",
  16. "Timothy Gu <timothygu99@gmail.com> (https://timothygu.me/)",
  17. "Magne Andersson <code@zirro.se> (https://zirro.se/)",
  18. "Pierre-Marie Dartus <dartus.pierremarie@gmail.com>"
  19. ],
  20. "license": "MIT",
  21. "repository": "jsdom/jsdom",
  22. "dependencies": {
  23. "abab": "^2.0.6",
  24. "acorn": "^8.8.1",
  25. "acorn-globals": "^7.0.0",
  26. "cssom": "^0.5.0",
  27. "cssstyle": "^2.3.0",
  28. "data-urls": "^3.0.2",
  29. "decimal.js": "^10.4.2",
  30. "domexception": "^4.0.0",
  31. "escodegen": "^2.0.0",
  32. "form-data": "^4.0.0",
  33. "html-encoding-sniffer": "^3.0.0",
  34. "http-proxy-agent": "^5.0.0",
  35. "https-proxy-agent": "^5.0.1",
  36. "is-potential-custom-element-name": "^1.0.1",
  37. "nwsapi": "^2.2.2",
  38. "parse5": "^7.1.1",
  39. "saxes": "^6.0.0",
  40. "symbol-tree": "^3.2.4",
  41. "tough-cookie": "^4.1.2",
  42. "w3c-xmlserializer": "^4.0.0",
  43. "webidl-conversions": "^7.0.0",
  44. "whatwg-encoding": "^2.0.0",
  45. "whatwg-mimetype": "^3.0.0",
  46. "whatwg-url": "^11.0.0",
  47. "ws": "^8.11.0",
  48. "xml-name-validator": "^4.0.0"
  49. },
  50. "peerDependencies": {
  51. "canvas": "^2.5.0"
  52. },
  53. "peerDependenciesMeta": {
  54. "canvas": {
  55. "optional": true
  56. }
  57. },
  58. "devDependencies": {
  59. "@domenic/eslint-config": "^3.0.0",
  60. "benchmark": "^2.1.4",
  61. "browserify": "^17.0.0",
  62. "chai": "^4.3.7",
  63. "eslint": "^8.28.0",
  64. "eslint-plugin-html": "^7.1.0",
  65. "eslint-plugin-jsdom-internal": "link:./scripts/eslint-plugin",
  66. "js-yaml": "^4.1.0",
  67. "karma": "^6.4.1",
  68. "karma-browserify": "^8.1.0",
  69. "karma-chrome-launcher": "^3.1.1",
  70. "karma-mocha": "^2.0.1",
  71. "karma-mocha-webworker": "^1.3.0",
  72. "minimatch": "^5.1.0",
  73. "mocha": "^10.1.0",
  74. "mocha-sugar-free": "^1.4.0",
  75. "pngjs": "^6.0.0",
  76. "rimraf": "^3.0.2",
  77. "server-destroy": "^1.0.1",
  78. "watchify": "^4.0.0",
  79. "webidl2js": "^17.1.0",
  80. "yargs": "^17.6.2"
  81. },
  82. "browser": {
  83. "canvas": false,
  84. "vm": "./lib/jsdom/vm-shim.js",
  85. "./lib/jsdom/living/websockets/WebSocket-impl.js": "./lib/jsdom/living/websockets/WebSocket-impl-browser.js"
  86. },
  87. "scripts": {
  88. "prepare": "yarn convert-idl && yarn generate-js-globals",
  89. "pretest": "yarn prepare && yarn init-wpt",
  90. "test-wpt": "mocha test/web-platform-tests/run-wpts.js",
  91. "test-tuwpt": "mocha test/web-platform-tests/run-tuwpts.js",
  92. "test-mocha": "mocha",
  93. "test-api": "mocha test/api",
  94. "test": "mocha test/index.js",
  95. "test-browser-iframe": "karma start test/karma.conf.js",
  96. "test-browser-worker": "karma start test/karma-webworker.conf.js",
  97. "test-browser": "yarn test-browser-iframe && yarn test-browser-worker",
  98. "lint": "eslint . --cache --ext .js,.html",
  99. "init-wpt": "git submodule update --init --recursive",
  100. "reset-wpt": "rimraf ./test/web-platform-tests/tests && yarn init-wpt",
  101. "update-wpt": "git submodule update --recursive --remote && cd test/web-platform-tests/tests && python3 wpt.py manifest --path ../wpt-manifest.json",
  102. "update-authors": "git log --format=\"%aN <%aE>\" | sort -f | uniq > AUTHORS.txt",
  103. "benchmark": "node ./benchmark/runner",
  104. "benchmark-browser": "node ./benchmark/runner --bundle",
  105. "convert-idl": "node ./scripts/webidl/convert.js",
  106. "generate-js-globals": "node ./scripts/generate-js-globals.js"
  107. },
  108. "main": "./lib/api.js",
  109. "engines": {
  110. "node": ">=14"
  111. }
  112. }