From 3e42ae890ad11075ed473b1f31e8a2011ef70411 Mon Sep 17 00:00:00 2001 From: Tianxiao Wang Date: Mon, 25 Mar 2019 21:33:25 +0800 Subject: [PATCH] fix: hls dependencies (#30) * fix: hls dependencies * docs: update readme --- example/package.json | 1 - packages/griffith-hls/package.json | 4 +++- packages/griffith/README-zh_CN.md | 1 - packages/griffith/README.md | 1 - yarn.lock | 15 +-------------- 5 files changed, 4 insertions(+), 18 deletions(-) diff --git a/example/package.json b/example/package.json index 6eed82b4..7e6d7cac 100644 --- a/example/package.json +++ b/example/package.json @@ -10,7 +10,6 @@ "@babel/polyfill": "^7.0.0", "@babel/runtime": "^7.1.5", "griffith": "^1.1.2", - "hls.js": "^0.12.4", "query-string": "^6.3.0", "raf": "^3.4.1", "react": "16.4.2", diff --git a/packages/griffith-hls/package.json b/packages/griffith-hls/package.json index b3a703ff..4f266f67 100644 --- a/packages/griffith-hls/package.json +++ b/packages/griffith-hls/package.json @@ -17,8 +17,10 @@ "build:cjs": "BABEL_ENV=cjs NODE_ENV=production babel es --root-mode upward -d cjs" }, "peerDependencies": { - "hls.js": ">=0.7.11 <1.0.0", "react": ">=16.3.0 <17.0.0", "react-dom": ">=16.3.0 <17.0.0" + }, + "dependencies": { + "hls.js": "0.7.11" } } diff --git a/packages/griffith/README-zh_CN.md b/packages/griffith/README-zh_CN.md index 0705c97a..0205f88d 100644 --- a/packages/griffith/README-zh_CN.md +++ b/packages/griffith/README-zh_CN.md @@ -6,7 +6,6 @@ ```bash yarn add griffith -yarn add hls.js # Griffith 播放 M3U8 视频依赖 hls.js。如果不想安装 hls.js,请看 README 的「构建选项」部分。 ``` diff --git a/packages/griffith/README.md b/packages/griffith/README.md index b6563668..258b5209 100644 --- a/packages/griffith/README.md +++ b/packages/griffith/README.md @@ -6,7 +6,6 @@ English | [简体中文](./README-zh_CN.md) ```bash yarn add griffith -yarn add hls.js # Griffith uses hls.js to play m3u8 format video. # If you don't want to install hls.js, please ref the build part. ``` diff --git a/yarn.lock b/yarn.lock index 7e8990e0..ac047291 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4196,7 +4196,7 @@ etag@~1.8.1: resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= -eventemitter3@3.1.0, eventemitter3@^3.0.0, eventemitter3@^3.1.0: +eventemitter3@^3.0.0, eventemitter3@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.0.tgz#090b4d6cdbd645ed10bf750d4b5407942d7ba163" integrity sha512-ivIvhpq/Y0uSjcHDcOIccjmYjGLcP09MFGE7ysAwkAvkXfpZlC985pH2/ui64DKazbTW/4kN3yqozUxlXzI6cA== @@ -5066,14 +5066,6 @@ hls.js@0.7.11: resolved "https://registry.yarnpkg.com/hls.js/-/hls.js-0.7.11.tgz#e8448be35a2435bad24b8b93d9e7f9c05659bb28" integrity sha1-6ESL41okNbrSS4uT2ef5wFZZuyg= -hls.js@^0.12.4: - version "0.12.4" - resolved "https://registry.yarnpkg.com/hls.js/-/hls.js-0.12.4.tgz#c155b7b2825a11117c111b781973c0ffa759006b" - integrity sha512-e8OPxQ60dBVsdkv4atdxR21KzC1mgwspM41qpozpj3Uv1Fz4CaeQy3FWoaV2O+QKKbNRvV5hW+/LipCWdrwnMQ== - dependencies: - eventemitter3 "3.1.0" - url-toolkit "^2.1.6" - hmac-drbg@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" @@ -10046,11 +10038,6 @@ url-template@^2.0.8: resolved "https://registry.yarnpkg.com/url-template/-/url-template-2.0.8.tgz#fc565a3cccbff7730c775f5641f9555791439f21" integrity sha1-/FZaPMy/93MMd19WQflVV5FDnyE= -url-toolkit@^2.1.6: - version "2.1.6" - resolved "https://registry.yarnpkg.com/url-toolkit/-/url-toolkit-2.1.6.tgz#6d03246499e519aad224c44044a4ae20544154f2" - integrity sha512-UaZ2+50am4HwrV2crR/JAf63Q4VvPYphe63WGeoJxeu8gmOm0qxPt+KsukfakPNrX9aymGNEkkaoICwn+OuvBw== - url@^0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"