Skip to content

Commit 8d307d6

Browse files
committed
fix shaka typo
1 parent 9d86f49 commit 8d307d6

File tree

8 files changed

+380
-388
lines changed

8 files changed

+380
-388
lines changed

examples/standalone/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@
4141
"@babel/plugin-transform-parameters": "^7.25.9",
4242
"@babel/plugin-transform-spread": "^7.25.9",
4343
"@babel/plugin-transform-template-literals": "^7.26.8",
44-
"@changesets/cli": "^2.28.1",
44+
"@changesets/cli": "^2.29.2",
4545
"@rollup/plugin-babel": "^6.0.4",
46-
"@types/node": "^20.17.28",
47-
"@vitejs/plugin-react": "^4.3.4",
46+
"@types/node": "^20.17.30",
47+
"@vitejs/plugin-react": "^4.4.1",
4848
"babel-plugin-syntax-trailing-function-commas": "^6.22.0",
4949
"concurrently": "^8.2.2",
5050
"cross-env": "^7.0.3",
5151
"jsdom": "^24.1.3",
52-
"lint-staged": "^15.5.0",
52+
"lint-staged": "^15.5.1",
5353
"nx": "^19.8.14",
5454
"prettier": "^3.5.3",
5555
"rimraf": "^5.0.10",
5656
"terser": "^5.39.0",
5757
"tslib": "^2.8.1",
58-
"typescript": "^5.8.2",
59-
"vite": "^5.4.15",
58+
"typescript": "^5.8.3",
59+
"vite": "^5.4.18",
6060
"vite-plugin-banner": "^0.7.1",
6161
"vite-plugin-merge-exports": "^0.0.0",
6262
"vitest": "^1.6.1"

packages/docs/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020
"@oplayer/torrent": "workspace:*",
2121
"@oplayer/ui": "workspace:*",
2222
"mdx-embed": "^1.1.2",
23-
"next": "^14.2.26",
23+
"next": "^14.2.28",
2424
"nextra": "2.13.4",
2525
"nextra-theme-docs": "2.13.4",
2626
"react": "^18.3.1",
2727
"react-dom": "^18.3.1",
28-
"shaka-player": "^4.14.4"
28+
"shaka-player": "^4.14.8"
2929
},
3030
"devDependencies": {
3131
"@types/react": "^18.3.20",
32-
"@types/react-dom": "^18.3.5",
33-
"sass": "^1.86.0"
32+
"@types/react-dom": "^18.3.6",
33+
"sass": "^1.86.3"
3434
}
3535
}

packages/hls/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
},
3636
"devDependencies": {
3737
"@oplayer/core": "workspace:*",
38-
"hls.js": "^1.6.0"
38+
"hls.js": "^1.6.2"
3939
}
4040
}

packages/react/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![npm](https://img.shields.io/npm/v/@oplayer/react?style=flat-square&label=@oplayer/react)](https://www.npmjs.com/package/@oplayer/react)
44
![npm bundle size](https://img.shields.io/bundlephobia/minzip/@oplayer/react?style=flat-square)
55
[![npm dm](https://img.shields.io/npm/dm/@oplayer/react?style=flat-square)](https://www.npmjs.com/package/@oplayer/react)
6-
[![jsdelivr](https://data.jsdelivr.com/v1/package/npm/@oplayer/react/badge)](https://www.jsdelivr.com/package/npm/@oplayer/react)
76

87
React wrapper for oplayer. (NOT WORKING ON REACT STRICT MODE)
98

packages/shaka/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
},
3636
"devDependencies": {
3737
"@oplayer/core": "workspace:*",
38-
"shaka-player": "^4.14.4"
38+
"shaka-player": "^4.14.8"
3939
}
4040
}

packages/shaka/src/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,7 @@ class ShakaPlugin implements PlayerPlugin {
157157
this.instance.eventManager.listen(player.$video, 'timeupdate', updateIsLive)
158158
}
159159

160-
//TODO: revert
161-
// Object.defineProperty(player, 'duration', {
162-
// get: () => {
163-
// if (this.instance) return this._duration
164-
// return player.$video.duration
165-
// }
166-
// })
167-
Object.defineProperty(player.$video, 'duration', {
160+
Object.defineProperty(player, 'duration', {
168161
get: () => {
169162
if (this.instance) return this._duration
170163
return player.$video.duration

0 commit comments

Comments
 (0)