package.json 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {
  2. "_from": "hls.js",
  3. "_id": "hls.js@1.6.7",
  4. "_inBundle": false,
  5. "_integrity": "sha512-QW2fnwDGKGc9DwQUGLbmMOz8G48UZK7PVNJPcOUql1b8jubKx4/eMHNP5mGqr6tYlJNDG1g10Lx2U/qPzL6zwQ==",
  6. "_location": "/hls.js",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "tag",
  10. "registry": true,
  11. "raw": "hls.js",
  12. "name": "hls.js",
  13. "escapedName": "hls.js",
  14. "rawSpec": "",
  15. "saveSpec": null,
  16. "fetchSpec": "latest"
  17. },
  18. "_requiredBy": [
  19. "#USER",
  20. "/"
  21. ],
  22. "_resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.6.7.tgz",
  23. "_shasum": "1b45ed55dfc92e06edc15b98e6374bd13f78af65",
  24. "_spec": "hls.js",
  25. "_where": "C:\\Users\\Administrator\\Desktop\\项目\\直播\\liveH5-v3",
  26. "authors": "Guillaume du Pontavice <g.du.pontavice@gmail.com>",
  27. "bugs": {
  28. "url": "https://github.com/video-dev/hls.js/issues"
  29. },
  30. "bundleDependencies": false,
  31. "deprecated": false,
  32. "description": "JavaScript HLS client using MediaSourceExtension",
  33. "devDependencies": {
  34. "@babel/core": "7.28.0",
  35. "@babel/helper-module-imports": "7.27.1",
  36. "@babel/plugin-proposal-class-properties": "7.18.6",
  37. "@babel/plugin-proposal-object-rest-spread": "7.20.7",
  38. "@babel/plugin-proposal-optional-chaining": "7.21.0",
  39. "@babel/plugin-transform-object-assign": "7.27.1",
  40. "@babel/preset-env": "7.28.0",
  41. "@babel/preset-typescript": "7.27.1",
  42. "@babel/register": "7.27.1",
  43. "@microsoft/api-documenter": "7.26.29",
  44. "@microsoft/api-extractor": "7.52.8",
  45. "@rollup/plugin-alias": "5.1.1",
  46. "@rollup/plugin-babel": "6.0.4",
  47. "@rollup/plugin-commonjs": "28.0.6",
  48. "@rollup/plugin-node-resolve": "16.0.1",
  49. "@rollup/plugin-replace": "6.0.2",
  50. "@rollup/plugin-terser": "0.4.4",
  51. "@rollup/plugin-typescript": "12.1.4",
  52. "@svta/common-media-library": "0.15.1",
  53. "@types/chai": "4.3.20",
  54. "@types/chart.js": "2.9.41",
  55. "@types/mocha": "10.0.10",
  56. "@types/sinon-chai": "3.2.12",
  57. "@typescript-eslint/eslint-plugin": "8.35.1",
  58. "@typescript-eslint/parser": "8.35.1",
  59. "babel-loader": "10.0.0",
  60. "babel-plugin-transform-remove-console": "6.9.4",
  61. "chai": "4.5.0",
  62. "chart.js": "2.9.4",
  63. "chromedriver": "138.0.0",
  64. "doctoc": "2.2.1",
  65. "es-check": "9.1.4",
  66. "eslint": "8.57.1",
  67. "eslint-config-prettier": "10.1.5",
  68. "eslint-plugin-import": "2.32.0",
  69. "eslint-plugin-mocha": "10.5.0",
  70. "eslint-plugin-n": "17.20.0",
  71. "eslint-plugin-no-for-of-loops": "1.0.1",
  72. "eslint-plugin-promise": "7.2.1",
  73. "eventemitter3": "5.0.1",
  74. "http-server": "14.1.1",
  75. "husky": "9.1.7",
  76. "jsonpack": "1.1.5",
  77. "karma": "6.4.4",
  78. "karma-chrome-launcher": "3.2.0",
  79. "karma-coverage": "2.2.1",
  80. "karma-mocha": "2.0.1",
  81. "karma-mocha-reporter": "2.2.5",
  82. "karma-rollup-preprocessor": "github:jlmakes/karma-rollup-preprocessor#7a7268d91149307b3cf2888ee4e65ccd079955a3",
  83. "karma-sinon-chai": "2.0.2",
  84. "karma-sourcemap-loader": "0.4.0",
  85. "lint-staged": "16.1.2",
  86. "markdown-styles": "3.2.0",
  87. "micromatch": "4.0.8",
  88. "mocha": "11.7.1",
  89. "node-fetch": "3.3.2",
  90. "npm-run-all2": "8.0.4",
  91. "prettier": "3.5.3",
  92. "promise-polyfill": "8.3.0",
  93. "rollup": "4.44.1",
  94. "rollup-plugin-istanbul": "5.0.0",
  95. "sauce-connect-launcher": "1.3.2",
  96. "selenium-webdriver": "4.34.0",
  97. "semver": "7.7.2",
  98. "sinon": "19.0.5",
  99. "sinon-chai": "3.7.0",
  100. "typescript": "5.8.3",
  101. "url-toolkit": "2.2.5",
  102. "wrangler": "4.22.0"
  103. },
  104. "exports": {
  105. ".": {
  106. "import": "./dist/hls.mjs",
  107. "require": "./dist/hls.js"
  108. },
  109. "./light": {
  110. "import": "./dist/hls.light.mjs",
  111. "require": "./dist/hls.light.js"
  112. },
  113. "./dist/*": "./dist/*",
  114. "./package.json": "./package.json"
  115. },
  116. "files": [
  117. "dist/**/*",
  118. "src/**/*"
  119. ],
  120. "homepage": "https://github.com/video-dev/hls.js",
  121. "license": "Apache-2.0",
  122. "main": "./dist/hls.js",
  123. "module": "./dist/hls.mjs",
  124. "name": "hls.js",
  125. "publishConfig": {
  126. "access": "public"
  127. },
  128. "repository": {
  129. "type": "git",
  130. "url": "git+https://github.com/video-dev/hls.js.git"
  131. },
  132. "scripts": {
  133. "build": "rollup --config && npm run build:types",
  134. "build:ci": "rollup --config && tsc --build tsconfig-lib.json && api-extractor run && npm run build:copy-types && es-check",
  135. "build:copy-types": "cp ./dist/hls.d.ts ./dist/hls.d.mts && cp ./dist/hls.d.ts ./dist/hls.js.d.ts",
  136. "build:debug": "rollup --config --configType full --configType demo",
  137. "build:types": "tsc --build tsconfig-lib.json && api-extractor run --local && npm run build:copy-types",
  138. "build:watch": "rollup --config --configType full --configType demo --watch",
  139. "dev": "run-p build:watch serve",
  140. "docs": "doctoc ./docs/API.md && api-documenter markdown -i api-extractor -o api-extractor/api-documenter && rm api-extractor/api-documenter/index.md && npm run docs-md-to-html",
  141. "docs-md-to-html": "generate-md --layout github --input api-extractor/api-documenter --output api-docs",
  142. "lint": "eslint --cache src/ tests/ --ext .js --ext .ts",
  143. "lint:fix": "npm run lint -- --fix",
  144. "lint:quiet": "npm run lint -- --quiet",
  145. "lint:staged": "lint-staged",
  146. "prepare": "husky",
  147. "pretest": "npm run lint",
  148. "prettier": "prettier --cache --write .",
  149. "prettier:verify": "prettier --cache --check .",
  150. "sanity-check": "npm run lint && npm run prettier:verify && npm run type-check && npm run build && es-check && npm run docs && npm run test:unit",
  151. "serve": "http-server -o /demo .",
  152. "start": "npm run dev",
  153. "test": "npm run test:unit && npm run test:func",
  154. "test:func": "BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
  155. "test:func:light": "BABEL_ENV=development HLSJS_LIGHT=1 mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
  156. "test:func:sauce": "SAUCE=1 UA=safari OS='OS X 10.15' BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
  157. "test:unit": "karma start karma.conf.js",
  158. "test:unit:debug": "DEBUG_UNIT_TESTS=1 karma start karma.conf.js --auto-watch --no-single-run --browsers Chrome",
  159. "test:unit:watch": "karma start karma.conf.js --auto-watch --no-single-run",
  160. "type-check": "tsc --noEmit",
  161. "type-check:watch": "npm run type-check -- --watch"
  162. },
  163. "types": "./dist/hls.d.ts",
  164. "version": "1.6.7"
  165. }