ngx-rendering-service-lib 0.1.7 → 0.1.9
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/assets/pdf/main.js +24 -0
- package/assets/pdf/main.js.map +1 -1
- package/fesm2022/{ngx-rendering-service-lib-audio.component-BMryQbt4.mjs → ngx-rendering-service-lib-audio.component-BfMOD8tk.mjs} +2 -2
- package/fesm2022/{ngx-rendering-service-lib-audio.component-BMryQbt4.mjs.map → ngx-rendering-service-lib-audio.component-BfMOD8tk.mjs.map} +1 -1
- package/fesm2022/{ngx-rendering-service-lib-binder.component-CToLjTo1.mjs → ngx-rendering-service-lib-binder.component-DK9vKjcZ.mjs} +2 -2
- package/fesm2022/{ngx-rendering-service-lib-binder.component-CToLjTo1.mjs.map → ngx-rendering-service-lib-binder.component-DK9vKjcZ.mjs.map} +1 -1
- package/fesm2022/{ngx-rendering-service-lib-ddb.component-DcC_1-cN.mjs → ngx-rendering-service-lib-ddb.component-B082zPCn.mjs} +2 -2
- package/fesm2022/{ngx-rendering-service-lib-ddb.component-DcC_1-cN.mjs.map → ngx-rendering-service-lib-ddb.component-B082zPCn.mjs.map} +1 -1
- package/fesm2022/{ngx-rendering-service-lib-default.component-CcoF3xIt.mjs → ngx-rendering-service-lib-default.component-BSRRfc_2.mjs} +2 -2
- package/fesm2022/{ngx-rendering-service-lib-default.component-CcoF3xIt.mjs.map → ngx-rendering-service-lib-default.component-BSRRfc_2.mjs.map} +1 -1
- package/fesm2022/{ngx-rendering-service-lib-error.component-C5ElpxNO.mjs → ngx-rendering-service-lib-error.component-C8g5sr16.mjs} +4 -4
- package/fesm2022/{ngx-rendering-service-lib-error.component-C5ElpxNO.mjs.map → ngx-rendering-service-lib-error.component-C8g5sr16.mjs.map} +1 -1
- package/fesm2022/{ngx-rendering-service-lib-h5p.component-D4Xiue_W.mjs → ngx-rendering-service-lib-h5p.component-rOhEQ9T-.mjs} +2 -2
- package/fesm2022/{ngx-rendering-service-lib-h5p.component-D4Xiue_W.mjs.map → ngx-rendering-service-lib-h5p.component-rOhEQ9T-.mjs.map} +1 -1
- package/fesm2022/{ngx-rendering-service-lib-moodle.component-BWAGEimd.mjs → ngx-rendering-service-lib-moodle.component-DB7FT8A7.mjs} +2 -2
- package/fesm2022/{ngx-rendering-service-lib-moodle.component-BWAGEimd.mjs.map → ngx-rendering-service-lib-moodle.component-DB7FT8A7.mjs.map} +1 -1
- package/fesm2022/{ngx-rendering-service-lib-ngx-rendering-service-lib-CiwU3Ue9.mjs → ngx-rendering-service-lib-ngx-rendering-service-lib-DNF-VKZB.mjs} +29 -86
- package/fesm2022/ngx-rendering-service-lib-ngx-rendering-service-lib-DNF-VKZB.mjs.map +1 -0
- package/fesm2022/ngx-rendering-service-lib.mjs +1 -1
- package/lib/render.component.d.ts +4 -9
- package/package.json +1 -1
- package/fesm2022/ngx-rendering-service-lib-ngx-rendering-service-lib-CiwU3Ue9.mjs.map +0 -1
package/assets/pdf/main.js
CHANGED
|
@@ -241,6 +241,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
241
241
|
/* harmony export */ RSApiConfiguration: () => (/* binding */ ApiConfiguration),
|
|
242
242
|
/* harmony export */ RenderControllerWrapperService: () => (/* binding */ RenderControllerWrapperService),
|
|
243
243
|
/* harmony export */ RenderingServiceApiModule: () => (/* binding */ RenderingServiceApiModule),
|
|
244
|
+
/* harmony export */ SessionControllerService: () => (/* binding */ SessionControllerService),
|
|
244
245
|
/* harmony export */ getAsset: () => (/* binding */ getAsset),
|
|
245
246
|
/* harmony export */ getModulesInfo: () => (/* binding */ getModulesInfo),
|
|
246
247
|
/* harmony export */ trackObject: () => (/* binding */ trackObject)
|
|
@@ -358,6 +359,7 @@ class RenderingServiceApiInterceptor {
|
|
|
358
359
|
// `edu-sharing-api.module.ts`.)
|
|
359
360
|
const isApiRequest = req.url.startsWith(this.configuration.rootUrl);
|
|
360
361
|
if (isApiRequest) {
|
|
362
|
+
headers['X-Client-Trace-Id'] = this.generateTraceId();
|
|
361
363
|
if (this.nextAuthHeader) {
|
|
362
364
|
headers[this.nextAuthHeader] = this.nextAuthValue;
|
|
363
365
|
}
|
|
@@ -371,6 +373,28 @@ class RenderingServiceApiInterceptor {
|
|
|
371
373
|
withCredentials: true
|
|
372
374
|
}));
|
|
373
375
|
}
|
|
376
|
+
generateTraceId() {
|
|
377
|
+
if (typeof crypto === 'undefined') {
|
|
378
|
+
return '';
|
|
379
|
+
}
|
|
380
|
+
// `crypto.randomUUID` is exposed in secure contexts only, so it is missing whenever the
|
|
381
|
+
// app is served over plain HTTP from something other than `localhost` (local docker
|
|
382
|
+
// compose setups on a `*.nip.io` host, IP-based test systems, ...). Falling back to an
|
|
383
|
+
// empty trace id there would silently disable request correlation on exactly those
|
|
384
|
+
// deployments, so build the v4 UUID from `crypto.getRandomValues`, which carries no
|
|
385
|
+
// secure-context restriction.
|
|
386
|
+
if (typeof crypto.randomUUID === 'function') {
|
|
387
|
+
return crypto.randomUUID();
|
|
388
|
+
}
|
|
389
|
+
if (typeof crypto.getRandomValues !== 'function') {
|
|
390
|
+
return '';
|
|
391
|
+
}
|
|
392
|
+
const bytes = crypto.getRandomValues(new Uint8Array(16));
|
|
393
|
+
bytes[6] = bytes[6] & 0x0f | 0x40; // version 4
|
|
394
|
+
bytes[8] = bytes[8] & 0x3f | 0x80; // variant 1
|
|
395
|
+
const hex = Array.from(bytes, byte => byte.toString(16).padStart(2, '0')).join('');
|
|
396
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
397
|
+
}
|
|
374
398
|
static {
|
|
375
399
|
this.ɵfac = function RenderingServiceApiInterceptor_Factory(__ngFactoryType__) {
|
|
376
400
|
return new (__ngFactoryType__ || RenderingServiceApiInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ApiConfiguration));
|