You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
3.3 KiB

5 years ago
Update sinon to v8.1.1 and fix abort tracking in mediaRequestsAborted (#724) * Update sinon to v8.1.1 and fix abort tracking in mediaRequestsAborted * Add check to media-segment-request for empty responseText when handling partial data This was not needed in the past, as the responseText property of a sinon response was anually set by VHS' test helpers. However, sinon now clears out the responseText property on a response, the mime type override trick doesn't work like it would in a browser. The additional check to the code should prove harmless, and acts as a guard against browsers which don't implement the mime type override trick in the same way. * Add an abortFn callback to media-segment-request to fix abort tracking in mediaRequestsAborted In the previously used version of sinon (v1.10.3), aborts of requests triggered the XHR callback. In the XHR standard however, this does not happen. Later versions of sinon fixed this issue. VHS' use of the old sinon lead to tests relying on broken behavior to verify abort tracking in mediaRequestsAborted. To properly use mediaRequestsAborted, aborts are tracked on loadend, part of XHR's [request error steps](https://xhr.spec.whatwg.org/#request-error-steps), and called back via the abortFn to increment mediaRequestsAborted * Skip id3 with partial data handling tests until they no longer rely on segments being fully requested A couple of tests checking for id3 frames surfacing from partial data handling were found to rely on the segment finishing its request before the data was surfaced. These tests are skipped until a fix can be made such that they rely only on partial data. * No longer override sinon's abort behavior for tests * No longer work around sinon's response types in standardXHRResponse With a newer sinon version, a few workarounds needed in test-helpers are no longer needed. * Skip partial data caption tests until they no longer rely on full segment responses
6 years ago
  1. {
  2. "name": "@videojs/http-streaming",
  3. "version": "2.0.0",
  4. "description": "Play back HLS and DASH with Video.js, even where it's not natively supported",
  5. "main": "dist/videojs-http-streaming.cjs.js",
  6. "module": "dist/videojs-http-streaming.es.js",
  7. "repository": {
  8. "type": "git",
  9. "url": "git@github.com:videojs/http-streaming.git"
  10. },
  11. "scripts": {
  12. "prenetlify": "npm run build",
  13. "netlify": "node scripts/netlify.js",
  14. "build-test": "cross-env-shell TEST_BUNDLE_ONLY=1 'npm run build'",
  15. "build-prod": "cross-env-shell NO_TEST_BUNDLE=1 'npm run build'",
  16. "build": "npm-run-all -s clean -p build:*",
  17. "build:js": "rollup -c scripts/rollup.config.js",
  18. "docs": "npm-run-all docs:*",
  19. "docs:api": "jsdoc src -g plugins/markdown -r -d docs/api",
  20. "docs:toc": "doctoc --notitle README.md",
  21. "docs:images": "node ./scripts/create-docs-images.js",
  22. "clean": "shx rm -rf ./dist ./test/dist && shx mkdir -p ./dist ./test/dist",
  23. "lint": "vjsstandard",
  24. "prepublishOnly": "npm-run-all build-prod && vjsverify --verbose",
  25. "start": "npm-run-all -p server watch",
  26. "server": "karma start scripts/karma.conf.js --singleRun=false --auto-watch",
  27. "test": "npm-run-all lint build-test && karma start scripts/karma.conf.js",
  28. "preversion": "npm test",
  29. "version": "is-prerelease || npm run update-changelog && git add CHANGELOG.md",
  30. "update-changelog": "conventional-changelog -p videojs -i CHANGELOG.md -s",
  31. "watch": "npm-run-all -p watch:*",
  32. "watch:js": "npm run build:js -- -w"
  33. },
  34. "keywords": [
  35. "videojs",
  36. "videojs-plugin"
  37. ],
  38. "author": "Brightcove, Inc",
  39. "license": "Apache-2.0",
  40. "vjsstandard": {
  41. "ignore": [
  42. "dist",
  43. "docs",
  44. "deploy",
  45. "test/dist",
  46. "utils",
  47. "src/*.worker.js"
  48. ]
  49. },
  50. "files": [
  51. "CONTRIBUTING.md",
  52. "dist/",
  53. "docs/",
  54. "index.html",
  55. "scripts/",
  56. "src/"
  57. ],
  58. "dependencies": {
  59. "@babel/runtime": "^7.5.5",
  60. "@videojs/vhs-utils": "^2.2.0",
  61. "aes-decrypter": "3.0.1",
  62. "global": "^4.3.2",
  63. "m3u8-parser": "4.4.2",
  64. "mpd-parser": "0.10.1",
  65. "mux.js": "5.6.6",
  66. "video.js": "^6 || ^7"
  67. },
  68. "devDependencies": {
  69. "@gkatsev/rollup-plugin-bundle-worker": "^1.0.2",
  70. "@videojs/generator-helpers": "~1.2.0",
  71. "d3": "^3.4.8",
  72. "es5-shim": "^4.5.13",
  73. "es6-shim": "^0.35.5",
  74. "jsdoc": "BrandonOCasey/jsdoc#feat/plugin-from-cli",
  75. "karma": "^4.0.0",
  76. "lodash": "^4.17.4",
  77. "lodash-compat": "^3.10.0",
  78. "nomnoml": "^0.3.0",
  79. "rollup": "^1.19.4",
  80. "shelljs": "^0.8.2",
  81. "sinon": "^8.1.1",
  82. "url-toolkit": "^2.1.3",
  83. "videojs-contrib-eme": "^3.2.0",
  84. "videojs-contrib-quality-levels": "^2.0.4",
  85. "videojs-generate-karma-config": "~5.3.1",
  86. "videojs-generate-rollup-config": "~5.0.1",
  87. "videojs-generator-verify": "~2.0.0",
  88. "videojs-http-source-selector": "^1.1.6",
  89. "videojs-standard": "^8.0.3"
  90. },
  91. "generator-videojs-plugin": {
  92. "version": "7.6.3"
  93. },
  94. "browserslist": [
  95. "defaults",
  96. "ie 11"
  97. ],
  98. "engines": {
  99. "node": ">=8",
  100. "npm": ">=5"
  101. },
  102. "husky": {
  103. "hooks": {
  104. "pre-commit": "lint-staged"
  105. }
  106. },
  107. "lint-staged": {
  108. "*.js": [
  109. "vjsstandard --fix",
  110. "git add"
  111. ],
  112. "README.md": [
  113. "doctoc --notitle",
  114. "git add"
  115. ]
  116. }
  117. }