@momentumcms/plugins-analytics 0.5.2 → 0.5.4
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/index.cjs +4 -2
- package/index.js +4 -2
- package/package.json +5 -5
package/index.cjs
CHANGED
|
@@ -1456,10 +1456,12 @@ var MemoryAnalyticsAdapter = class {
|
|
|
1456
1456
|
);
|
|
1457
1457
|
}
|
|
1458
1458
|
if (options.from) {
|
|
1459
|
-
|
|
1459
|
+
const from = options.from;
|
|
1460
|
+
filtered = filtered.filter((e) => e.timestamp >= from);
|
|
1460
1461
|
}
|
|
1461
1462
|
if (options.to) {
|
|
1462
|
-
|
|
1463
|
+
const to = options.to;
|
|
1464
|
+
filtered = filtered.filter((e) => e.timestamp <= to);
|
|
1463
1465
|
}
|
|
1464
1466
|
const total = filtered.length;
|
|
1465
1467
|
const limit = options.limit ?? 50;
|
package/index.js
CHANGED
|
@@ -1420,10 +1420,12 @@ var MemoryAnalyticsAdapter = class {
|
|
|
1420
1420
|
);
|
|
1421
1421
|
}
|
|
1422
1422
|
if (options.from) {
|
|
1423
|
-
|
|
1423
|
+
const from = options.from;
|
|
1424
|
+
filtered = filtered.filter((e) => e.timestamp >= from);
|
|
1424
1425
|
}
|
|
1425
1426
|
if (options.to) {
|
|
1426
|
-
|
|
1427
|
+
const to = options.to;
|
|
1428
|
+
filtered = filtered.filter((e) => e.timestamp <= to);
|
|
1427
1429
|
}
|
|
1428
1430
|
const total = filtered.length;
|
|
1429
1431
|
const limit = options.limit ?? 50;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momentumcms/plugins-analytics",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Analytics and content tracking plugin for Momentum CMS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Momentum CMS Contributors",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@angular/common": "^21.0.0",
|
|
52
52
|
"@angular/core": "^21.0.0",
|
|
53
53
|
"@angular/router": "^21.0.0",
|
|
54
|
-
"@momentumcms/core": "0.5.
|
|
55
|
-
"@momentumcms/logger": "0.5.
|
|
56
|
-
"@momentumcms/plugins-core": "0.5.
|
|
57
|
-
"@momentumcms/server-core": "0.5.
|
|
54
|
+
"@momentumcms/core": "0.5.4",
|
|
55
|
+
"@momentumcms/logger": "0.5.4",
|
|
56
|
+
"@momentumcms/plugins-core": "0.5.4",
|
|
57
|
+
"@momentumcms/server-core": "0.5.4",
|
|
58
58
|
"express": "^4.21.0",
|
|
59
59
|
"rxjs": "^7.0.0"
|
|
60
60
|
},
|