Socket
Socket
Sign inDemoInstall

xgplayer-flv.js

Package Overview
Dependencies
Maintainers
3
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xgplayer-flv.js - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6-0

2

package.json
{
"name": "xgplayer-flv.js",
"version": "1.0.5",
"version": "1.0.6-0",
"description": "web video player",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -19,123 +19,116 @@ /*

import EventEmitter from 'events';
import EventEmitter from 'events'
class Log {
static e (tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG) { tag = Log.GLOBAL_TAG }
static e(tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG)
tag = Log.GLOBAL_TAG;
let str = `[${tag}] > ${msg}`
let str = `[${tag}] > ${msg}`;
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'error', str)
}
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'error', str);
}
if (!Log.ENABLE_ERROR) {
return
}
if (!Log.ENABLE_ERROR) {
return;
}
if (console.error) {
console.error(str);
} else if (console.warn) {
console.warn(str);
} else {
console.log(str);
}
if (console.error) {
console.error(str)
} else if (console.warn) {
console.warn(str)
} else {
console.log(str)
}
}
static i(tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG)
tag = Log.GLOBAL_TAG;
static i (tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG) { tag = Log.GLOBAL_TAG }
let str = `[${tag}] > ${msg}`;
let str = `[${tag}] > ${msg}`
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'info', str);
}
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'info', str)
}
if (!Log.ENABLE_INFO) {
return;
}
if (!Log.ENABLE_INFO) {
return
}
if (console.info) {
console.info(str);
} else {
console.log(str);
}
if (console.info) {
console.info(str)
} else {
console.log(str)
}
}
static w(tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG)
tag = Log.GLOBAL_TAG;
static w (tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG) { tag = Log.GLOBAL_TAG }
let str = `[${tag}] > ${msg}`;
let str = `[${tag}] > ${msg}`
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'warn', str);
}
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'warn', str)
}
if (!Log.ENABLE_WARN) {
return;
}
if (!Log.ENABLE_WARN) {
return
}
if (console.warn) {
console.warn(str);
} else {
console.log(str);
}
if (console.warn) {
console.warn(str)
} else {
console.log(str)
}
}
static d(tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG)
tag = Log.GLOBAL_TAG;
static d (tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG) { tag = Log.GLOBAL_TAG }
let str = `[${tag}] > ${msg}`;
let str = `[${tag}] > ${msg}`
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'debug', str);
}
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'debug', str)
}
if (!Log.ENABLE_DEBUG) {
return;
}
if (!Log.ENABLE_DEBUG) {
return
}
if (console.debug) {
console.debug(str);
} else {
console.log(str);
}
if (console.debug) {
console.debug(str)
} else {
console.log(str)
}
}
static v(tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG)
tag = Log.GLOBAL_TAG;
static v (tag, msg) {
if (!tag || Log.FORCE_GLOBAL_TAG) { tag = Log.GLOBAL_TAG }
let str = `[${tag}] > ${msg}`;
let str = `[${tag}] > ${msg}`
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'verbose', str);
}
if (Log.ENABLE_CALLBACK) {
Log.emitter.emit('log', 'verbose', str)
}
if (!Log.ENABLE_VERBOSE) {
return;
}
console.log(str);
if (!Log.ENABLE_VERBOSE) {
return
}
console.log(str)
}
}
Log.GLOBAL_TAG = 'flv.js';
Log.FORCE_GLOBAL_TAG = false;
Log.ENABLE_ERROR = true;
Log.ENABLE_INFO = true;
Log.ENABLE_WARN = true;
Log.ENABLE_DEBUG = true;
Log.ENABLE_VERBOSE = true;
Log.GLOBAL_TAG = 'flv.js'
Log.FORCE_GLOBAL_TAG = false
Log.ENABLE_ERROR = true
Log.ENABLE_INFO = true
Log.ENABLE_WARN = true
Log.ENABLE_DEBUG = true
Log.ENABLE_VERBOSE = true
Log.ENABLE_CALLBACK = false;
Log.ENABLE_CALLBACK = false
Log.emitter = new EventEmitter();
Log.emitter = new EventEmitter()
export default Log;
export default Log

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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