@newrelic/video-core 4.1.6 → 4.1.7
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.
- package/CHANGELOG.md +12 -0
- package/README.md +3 -3
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.LICENSE.txt +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.LICENSE.txt +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/umd/nrvideo.min.js +1 -1
- package/dist/umd/nrvideo.min.js.LICENSE.txt +1 -1
- package/dist/umd/nrvideo.min.js.map +1 -1
- package/package.json +1 -1
- package/src/videoConfiguration.js +5 -5
package/package.json
CHANGED
|
@@ -126,15 +126,15 @@ class VideoConfiguration {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* Sanitizes qoeIntervalFactor, defaulting to
|
|
129
|
+
* Sanitizes qoeIntervalFactor, defaulting to 2 if the value is not a positive integer.
|
|
130
130
|
* @param {*} value
|
|
131
131
|
* @returns {number}
|
|
132
132
|
*/
|
|
133
133
|
sanitizeQoeIntervalFactor(value) {
|
|
134
|
-
if (value === undefined || value === null) return
|
|
134
|
+
if (value === undefined || value === null) return 2;
|
|
135
135
|
if (typeof value === "number" && Number.isInteger(value) && value >= 1) return value;
|
|
136
|
-
|
|
137
|
-
return
|
|
136
|
+
Log.warn(`Invalid qoeIntervalFactor "${value}" — must be a positive integer. Defaulting to 2.`);
|
|
137
|
+
return 2;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
@@ -162,7 +162,7 @@ class VideoConfiguration {
|
|
|
162
162
|
...(applicationID ? {} : { appName }), // Only include appName when no applicationID
|
|
163
163
|
},
|
|
164
164
|
config: {
|
|
165
|
-
qoeAggregate: config?.qoeAggregate ??
|
|
165
|
+
qoeAggregate: config?.qoeAggregate ?? true,
|
|
166
166
|
qoeIntervalFactor: this.sanitizeQoeIntervalFactor(config?.qoeIntervalFactor),
|
|
167
167
|
obfuscate: this.filterObfuscateRules(config?.obfuscate),
|
|
168
168
|
}
|