Comparing version 1.3.9 to 1.3.10
{ | ||
"name": "eplayer", | ||
"version": "1.3.9", | ||
"version": "1.3.10", | ||
"description": "A web-components html5 video player facing future", | ||
"main": "./packages/eplayer/eplayer.js", | ||
"module": "./packages/eplayer/index.js", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1", |
@@ -1,2 +0,2 @@ | ||
export class Eplayer extends HTMLElement { | ||
class Eplayer extends HTMLElement { | ||
constructor () { | ||
@@ -436,2 +436,4 @@ super() | ||
customElements.define('e-player', Eplayer) | ||
function getTimeStr (time) { | ||
@@ -438,0 +440,0 @@ let h = Math.floor(time / 3600) |
@@ -33,3 +33,3 @@ <p align="center"><img src="http://ww1.sinaimg.cn/large/0065Zy9egy1fvcjfzaa1lj30dw0dwwhe.jpg" alt="eplayer logo" width="200px"></p> | ||
<script type="module"> | ||
import { Eplayer } from 'https://unpkg.com/eplayer' | ||
import { Eplayer } from 'https://unpkg.com/eplayer?module' | ||
//注册 customElement | ||
@@ -36,0 +36,0 @@ customElements.define('e-player', Eplayer) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39630
10
1088