@sumaris-net/ngx-components 2.0.0-rc30 → 2.0.0-rc31
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.
|
@@ -2544,11 +2544,9 @@ class DateUtils {
|
|
|
2544
2544
|
// Resolve moment, if was wrapped into a ES module
|
|
2545
2545
|
if (!this.__moment) {
|
|
2546
2546
|
console.log('Resolving moment...');
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
if (typeof momentNamespace['isMoment'] === 'function') {
|
|
2551
|
-
this.__moment = momentNamespace;
|
|
2547
|
+
this.__moment = momentNamespace;
|
|
2548
|
+
if (this.isEsModule(this.__moment)) {
|
|
2549
|
+
this.__moment = this.__moment.default;
|
|
2552
2550
|
}
|
|
2553
2551
|
}
|
|
2554
2552
|
return this.__moment;
|