veplayer-mp-douyin
Advanced tools
Comparing version 1.2.7-alpha.5 to 1.2.8-rc.0
@@ -40,2 +40,6 @@ "use strict"; | ||
}, | ||
enableTapActive: { | ||
type: Boolean, | ||
value: true, | ||
}, | ||
}, | ||
@@ -287,3 +291,3 @@ data: { | ||
const { mode, loadedMeta, paused, ended, videoId, customControls, interactState, controls } = this.data; | ||
const { enablePlayGesture, interactiveConfig } = this.properties; | ||
const { enablePlayGesture, interactiveConfig, enableTapActive } = this.properties; | ||
if (!customControls) { | ||
@@ -304,3 +308,3 @@ return; | ||
// 由外部交互的的时候关闭内部交互 | ||
if (controls !== "custom" /* ControlsStates.CUSTOM */ || !enablePlayGesture) { | ||
if (controls !== "custom" /* ControlsStates.CUSTOM */ || !(customControls && enableTapActive)) { | ||
return; | ||
@@ -307,0 +311,0 @@ } |
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.PKG = 'douyin'; | ||
exports.VERSION = '1.2.7-alpha.5'; | ||
exports.VERSION = '1.2.8-rc.0'; | ||
/** | ||
@@ -30,0 +30,0 @@ * 控制栏状态枚举 |
@@ -434,10 +434,9 @@ "use strict"; | ||
onTimeupdate(e) { | ||
const { seeking, paused } = this.data; | ||
const { seeking } = this.data; | ||
const { currentTime, duration } = e.detail; | ||
let ext = {}; | ||
if (this.isReplay && paused) { | ||
ext = { paused: false }; | ||
this.isReplay = false; | ||
} | ||
const data = Object.assign({ currentTime: currentTime || 0, duration: duration || 0, playPercent: duration > 0 ? Math.floor((currentTime / duration) * 100) : 0 }, ext); | ||
const data = { | ||
currentTime: currentTime || 0, | ||
duration: duration || 0, | ||
playPercent: duration > 0 ? Math.floor((currentTime / duration) * 100) : 0, | ||
}; | ||
if (seeking) { | ||
@@ -463,3 +462,2 @@ // /* 开发工具中不会触发onSeekComplete */ | ||
}; | ||
this.isReplay = true; | ||
if (seeking) { | ||
@@ -466,0 +464,0 @@ _data.seeking = false; |
@@ -5,3 +5,3 @@ "use strict"; | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
const xgplayer_service_miniprogram_1 = require("xgplayer-service-miniprogram"); | ||
const xgplayer_service_miniprogram_1 = require("xgplayer-service-miniprogram/index.js"); | ||
const index_1 = require("../xgerror/index"); | ||
@@ -8,0 +8,0 @@ function serviceRequest(playAuthToken, playDomain) { |
{ | ||
"name": "veplayer-mp-douyin", | ||
"version": "1.2.7-alpha.5", | ||
"version": "1.2.8-rc.0", | ||
"license": "MIT", | ||
"miniprogramType": "tt-npm", | ||
"description": "小程序播放器抖音原生版", | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"files": [ | ||
"dist", | ||
"README.md", | ||
"postinstall.js" | ||
], | ||
"scripts": { | ||
"release": "npm version patch && npm run build && npm publish --tag latest --registry=https://registry.npmjs.org", | ||
"release:alpha": "npm version prerelease --preid=alpha && npm run build && npm publish --tag alpha --registry=https://registry.npmjs.org", | ||
"build": "TRANSFORM_TYPE=douyin gulp -f ../../scripts/gulp.file.ts --cwd ../../packages/douyin/", | ||
"postinstall": "node postinstall.js" | ||
}, | ||
"main": "src/index.js", | ||
"main": "./index.js", | ||
"exports": { | ||
"components": { | ||
"veplayer": "dist/index" | ||
"veplayer": "./index" | ||
} | ||
@@ -31,3 +16,13 @@ }, | ||
"xgplayer-service-miniprogram": "^0.5.0" | ||
}, | ||
"devDependencies": { | ||
"@byted/lux-core": "^1.3.0", | ||
"@byted/lux-cli": "^1.2.3" | ||
}, | ||
"scripts": { | ||
"build": "TRANSFORM_TYPE=douyin gulp -f ../../scripts/gulp.file.ts --cwd .", | ||
"postinstall": "node postinstall.js", | ||
"postbuild": "lux release commit", | ||
"version:rc": "lux version --preid rc" | ||
} | ||
} | ||
} |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
339508
122
5520
2
2
3
2