@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.
Files changed (3) hide show
  1. package/index.cjs +4 -2
  2. package/index.js +4 -2
  3. 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
- filtered = filtered.filter((e) => e.timestamp >= options.from);
1459
+ const from = options.from;
1460
+ filtered = filtered.filter((e) => e.timestamp >= from);
1460
1461
  }
1461
1462
  if (options.to) {
1462
- filtered = filtered.filter((e) => e.timestamp <= options.to);
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
- filtered = filtered.filter((e) => e.timestamp >= options.from);
1423
+ const from = options.from;
1424
+ filtered = filtered.filter((e) => e.timestamp >= from);
1424
1425
  }
1425
1426
  if (options.to) {
1426
- filtered = filtered.filter((e) => e.timestamp <= options.to);
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.2",
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.2",
55
- "@momentumcms/logger": "0.5.2",
56
- "@momentumcms/plugins-core": "0.5.2",
57
- "@momentumcms/server-core": "0.5.2",
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
  },