@sumaris-net/ngx-components 21.0.0-rc4 → 21.0.0-rc5
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.
|
@@ -361,6 +361,31 @@ function isESModule(value) {
|
|
|
361
361
|
function unwrapESModule(commonJSModule) {
|
|
362
362
|
return isESModule(commonJSModule) ? commonJSModule.default : commonJSModule;
|
|
363
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* Resolve a CommonJS module imported via `import * as M from '...'` to its actual
|
|
366
|
+
* constructor/function export, regardless of how the downstream bundler
|
|
367
|
+
* (Webpack / esbuild / Vite) interops `__esModule` namespaces.
|
|
368
|
+
*
|
|
369
|
+
* Handles:
|
|
370
|
+
* - native ESM: M is the ctor
|
|
371
|
+
* - CJS with esModuleInterop: M.default is the ctor
|
|
372
|
+
* - esbuild synthetic namespace: M.default = { __esModule: true, default: ctor }
|
|
373
|
+
* - double-wrapped: M.default.default is the ctor
|
|
374
|
+
*/
|
|
375
|
+
function unwrapCjsDefault(mod) {
|
|
376
|
+
let v = mod;
|
|
377
|
+
// Drill into nested `.default` while the current value is not callable.
|
|
378
|
+
for (let i = 0; i < 3; i++) {
|
|
379
|
+
if (typeof v === 'function')
|
|
380
|
+
return v;
|
|
381
|
+
if (v && typeof v === 'object' && 'default' in v) {
|
|
382
|
+
v = v.default;
|
|
383
|
+
continue;
|
|
384
|
+
}
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
return v;
|
|
388
|
+
}
|
|
364
389
|
|
|
365
390
|
function isNil(obj) {
|
|
366
391
|
return obj === undefined || obj === null;
|
|
@@ -19020,10 +19045,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
19020
19045
|
args: [{ providedIn: 'root' }]
|
|
19021
19046
|
}] });
|
|
19022
19047
|
|
|
19023
|
-
|
|
19024
|
-
const
|
|
19025
|
-
const
|
|
19026
|
-
const loggerLink = LoggerLinkModule.default ?? LoggerLinkModule;
|
|
19048
|
+
const QueueLink = unwrapCjsDefault(QueueLinkModule);
|
|
19049
|
+
const SerializingLink = unwrapCjsDefault(SerializingLinkModule);
|
|
19050
|
+
const loggerLink = unwrapCjsDefault(LoggerLinkModule);
|
|
19027
19051
|
const _global = typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : {};
|
|
19028
19052
|
const NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
19029
19053
|
/**
|