stream-engine-player 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43290,6 +43290,7 @@
|
|
43290
43290
|
serve: "vite preview",
|
43291
43291
|
start: "npm run dev",
|
43292
43292
|
prebuild: "rm -rf dist",
|
43293
|
+
"version:patch": "npm version patch",
|
43293
43294
|
lint: "./node_modules/.bin/eslint src",
|
43294
43295
|
format: 'prettier "src/**/*.{ts,js,json,scss,css}" --write',
|
43295
43296
|
watch: 'concurrently "vite build --watch" "vite serve"',
|
@@ -43309,7 +43310,7 @@
|
|
43309
43310
|
"videojs-ima": "1.7.5",
|
43310
43311
|
"videojs-contrib-ads": "6.6.5",
|
43311
43312
|
"videojs-mux": "4.19.0",
|
43312
|
-
"infront-logger": "
|
43313
|
+
"infront-logger": "1.1.11"
|
43313
43314
|
};
|
43314
43315
|
const devDependencies$1 = {
|
43315
43316
|
concurrently: "^8.2.1",
|
@@ -63289,7 +63290,19 @@
|
|
63289
63290
|
if (!options.clientToken) {
|
63290
63291
|
throw new Error('Please provide "clientToken" for your Datadog account');
|
63291
63292
|
}
|
63292
|
-
|
63293
|
+
let { exclude = [], ...ddOptions } = options;
|
63294
|
+
datadogLogs.init({
|
63295
|
+
...DEFAULTS,
|
63296
|
+
...ddOptions,
|
63297
|
+
beforeSend: (log2) => {
|
63298
|
+
try {
|
63299
|
+
if (exclude.some((string) => log2 && log2.message && log2.message.toLowerCase().includes(string.toLowerCase()))) {
|
63300
|
+
return false;
|
63301
|
+
}
|
63302
|
+
} catch (err) {
|
63303
|
+
}
|
63304
|
+
}
|
63305
|
+
});
|
63293
63306
|
this.options = options;
|
63294
63307
|
this.logger = datadogLogs.logger;
|
63295
63308
|
this.ctx = {};
|