New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

veplayer-mp-douyin

Package Overview
Dependencies
Maintainers
2
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

veplayer-mp-douyin - npm Package Compare versions

Comparing version 1.0.5-alpha.0 to 1.0.5-alpha.1

2

dist/enums/index.js

@@ -26,2 +26,2 @@ "use strict";

exports.PKG = 'veplayer-mp-douyin';
exports.VERSION = '"1.0.5-alpha.0';
exports.VERSION = '"1.0.5-alpha.1';

@@ -84,3 +84,3 @@ "use strict";

type: Number,
value: '正在加载...',
value: '',
},

@@ -120,3 +120,3 @@ },

canUseOtherType: true,
isHidden: false, // 是否隐藏video组件
isHidden: true, // 是否隐藏video组件
},

@@ -140,3 +140,3 @@ observers: {

'currentSrc': function () {
const { currentSrc, src } = this.data;
const { currentSrc, src, videoId } = this.data;
this.setData({

@@ -147,2 +147,3 @@ error: null,

});
index_2.VE_DEBUGGER.log('set currentSrc', videoId, new Date().getTime() - this._tm);
this.updateCollector({

@@ -153,4 +154,4 @@ src: currentSrc || src,

'src,definitionList,playAuthToken,playDomain': function () {
const { src, definitionList, playAuthToken, playDomain, isLoadingData } = this.data;
index_2.VE_DEBUGGER.log('sourceChange', src, playAuthToken, isLoadingData);
const { src, definitionList, playAuthToken, playDomain, isLoadingData, videoId } = this.data;
index_2.VE_DEBUGGER.log('sourceChange', videoId, `src:${!!src} playAuthToken:${!!playAuthToken} isLoadingData:${isLoadingData}`);
this.triggerCollector('break');

@@ -176,6 +177,7 @@ this.updateCollector(this.data);

});
index_2.VE_DEBUGGER.log('serviceRequest start');
this._tm = new Date().getTime();
index_2.VE_DEBUGGER.log('serviceRequest start', this.data.videoId);
(0, request_1.serviceRequest)(playAuthToken, playDomain || undefined)
.then(data => {
index_2.VE_DEBUGGER.log('serviceRequest res', data);
index_2.VE_DEBUGGER.log('serviceRequest res', this.data.videoId, new Date().getTime() - this._tm, data);
if (data.error) {

@@ -258,7 +260,8 @@ this.setData({

ready() {
const { controls, src, allowNullSource, playAuthToken } = this.properties;
const { currentSrc } = this.data;
const { controls, src, allowNullSource, playAuthToken, veDebugger, autoplay } = this.properties;
const { currentSrc, videoId } = this.data;
index_2.VE_DEBUGGER.debugger = veDebugger;
this.updateStatusOfShowLoading();
!!controls && this.focusPlayer();
index_2.VE_DEBUGGER.log('ready', !!this.media, `isHidden:${allowNullSource && !src && !currentSrc}`);
index_2.VE_DEBUGGER.log('ready', videoId, !!this.media, `isHidden:${allowNullSource && !src && !currentSrc} autoplay:${autoplay}`);
// 允许空地址起播,且src和currentSrc都是空的时候隐藏video标签

@@ -270,2 +273,7 @@ if (!src && !currentSrc && (playAuthToken || allowNullSource)) {

}
else {
this.setData({
isHidden: false,
});
}
},

@@ -361,4 +369,5 @@ /**

let { errMsg } = e.detail;
const { isLoadingData, currentSrc, allowNullSource } = this.data;
index_2.VE_DEBUGGER.log('onError', `isLoadingData:${isLoadingData} currentSrc:${!!currentSrc} allowNullSource:${allowNullSource}`);
const { isLoadingData, currentSrc, allowNullSource, videoId } = this.data;
const _t = new Date().getTime();
index_2.VE_DEBUGGER.log(videoId, 'onError', videoId, _t - this._tm, `isLoadingData:${isLoadingData} currentSrc:${!!currentSrc} allowNullSource:${allowNullSource} isReturn:${!currentSrc && (allowNullSource || isLoadingData)}`, e.detail);
if (!currentSrc && (allowNullSource || isLoadingData)) {

@@ -365,0 +374,0 @@ console.warn('The is unavailable [src] or [playAutoToken] for playback, please check~~');

@@ -18,3 +18,3 @@ "use strict";

type: String,
value: 'aspectFit',
value: 'contain',
},

@@ -27,2 +27,3 @@ },

loaded: false,
imageMode: 'aspectFit',
},

@@ -32,2 +33,17 @@ lifetimes: {

// console.log('component poster ready:', this.data);
const { mode } = this.properties;
let _mode = '';
switch (mode) {
case 'fill':
_mode = 'scaleToFill';
break;
case 'cover':
_mode = 'aspectFill';
break;
default:
_mode = 'aspectFit';
}
this.setData({
imageMode: _mode,
});
},

@@ -34,0 +50,0 @@ },

{
"name": "veplayer-mp-douyin",
"version": "1.0.5-alpha.0",
"version": "1.0.5-alpha.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "miniprogramType": "tt-npm",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc