mcp-ga4 2.0.12 → 2.0.13

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.
@@ -1 +1 @@
1
- {"sha":"3bd9339","builtAt":"2026-04-09T23:11:56.896Z"}
1
+ {"sha":"365ccaf","builtAt":"2026-04-09T23:19:20.109Z"}
package/dist/index.js CHANGED
@@ -25,7 +25,13 @@ catch {
25
25
  }
26
26
  // Version safety: warn if running a deprecated or dangerously old version
27
27
  const __minimumSafeVersion = "2.0.1"; // minimum version with input sanitization
28
- if (__cliPkg.version < __minimumSafeVersion) {
28
+ const __semverLt = (a, b) => { const pa = a.split(".").map(Number), pb = b.split(".").map(Number); for (let i = 0; i < 3; i++) {
29
+ if ((pa[i] || 0) < (pb[i] || 0))
30
+ return true;
31
+ if ((pa[i] || 0) > (pb[i] || 0))
32
+ return false;
33
+ } return false; };
34
+ if (__semverLt(__cliPkg.version, __minimumSafeVersion)) {
29
35
  console.error(`[WARNING] Running deprecated version ${__cliPkg.version}. Minimum safe version is ${__minimumSafeVersion}. Please upgrade.`);
30
36
  }
31
37
  // CLI flags
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcp-ga4",
3
3
  "mcpName": "io.github.mharnett/ga4",
4
- "version": "2.0.12",
4
+ "version": "2.0.13",
5
5
  "description": "MCP server for Google Analytics 4 - query GA4 data with natural language via Claude.",
6
6
  "main": "dist/index.js",
7
7
  "bin": {