stream-engine-player 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
@@ -43291,6 +43291,7 @@ var require_stream_engine_player = __commonJS({
|
|
43291
43291
|
serve: "vite preview",
|
43292
43292
|
start: "npm run dev",
|
43293
43293
|
prebuild: "rm -rf dist",
|
43294
|
+
"version:patch": "npm version patch",
|
43294
43295
|
lint: "./node_modules/.bin/eslint src",
|
43295
43296
|
format: 'prettier "src/**/*.{ts,js,json,scss,css}" --write',
|
43296
43297
|
watch: 'concurrently "vite build --watch" "vite serve"',
|
@@ -43310,7 +43311,7 @@ var require_stream_engine_player = __commonJS({
|
|
43310
43311
|
"videojs-ima": "1.7.5",
|
43311
43312
|
"videojs-contrib-ads": "6.6.5",
|
43312
43313
|
"videojs-mux": "4.19.0",
|
43313
|
-
"infront-logger": "
|
43314
|
+
"infront-logger": "1.1.11"
|
43314
43315
|
};
|
43315
43316
|
const devDependencies$1 = {
|
43316
43317
|
concurrently: "^8.2.1",
|
@@ -63290,7 +63291,19 @@ var require_stream_engine_player = __commonJS({
|
|
63290
63291
|
if (!options.clientToken) {
|
63291
63292
|
throw new Error('Please provide "clientToken" for your Datadog account');
|
63292
63293
|
}
|
63293
|
-
|
63294
|
+
let { exclude = [], ...ddOptions } = options;
|
63295
|
+
datadogLogs.init({
|
63296
|
+
...DEFAULTS,
|
63297
|
+
...ddOptions,
|
63298
|
+
beforeSend: (log2) => {
|
63299
|
+
try {
|
63300
|
+
if (exclude.some((string) => log2 && log2.message && log2.message.toLowerCase().includes(string.toLowerCase()))) {
|
63301
|
+
return false;
|
63302
|
+
}
|
63303
|
+
} catch (err) {
|
63304
|
+
}
|
63305
|
+
}
|
63306
|
+
});
|
63294
63307
|
this.options = options;
|
63295
63308
|
this.logger = datadogLogs.logger;
|
63296
63309
|
this.ctx = {};
|