vantmetry 0.0.4 → 0.0.5

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/next/index.js CHANGED
@@ -1,21 +1,21 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import n from "next/script";
3
- import { i as e } from "../init-BfWOgJup.js";
4
- function m({ publicKey: t, ingestorUrl: r }) {
5
- return /* @__PURE__ */ i(
6
- n,
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import e from "next/script";
3
+ import { i } from "../init-BfWOgJup.js";
4
+ function c({ publicKey: t, ingestorUrl: r }) {
5
+ return /* @__PURE__ */ n(
6
+ e,
7
7
  {
8
8
  strategy: "afterInteractive",
9
- "data-public-key": t,
10
- "data-ingestor-url": r,
9
+ "data-vantmetry-key": t,
10
+ "data-vantmetry-url": r,
11
11
  src: "https://cdn.vantmetry.com/tracker.js"
12
12
  }
13
13
  );
14
14
  }
15
15
  function f(t) {
16
- typeof window > "u" || e(t);
16
+ typeof window > "u" || i(t);
17
17
  }
18
18
  export {
19
- m as VantmetryScript,
19
+ c as VantmetryScript,
20
20
  f as initVantmetry
21
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vantmetry",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Lightweight frontend error tracking with minimal browser impact.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -10,8 +10,8 @@ export function VantmetryScript({ publicKey, ingestorUrl }: VantmetryConfig) {
10
10
  return (
11
11
  <Script
12
12
  strategy="afterInteractive"
13
- data-public-key={publicKey}
14
- data-ingestor-url={ingestorUrl}
13
+ data-vantmetry-key={publicKey}
14
+ data-vantmetry-url={ingestorUrl}
15
15
  src="https://cdn.vantmetry.com/tracker.js"
16
16
  />
17
17
  );