@reopt-ai/data-sdk-client 0.1.2 → 0.1.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/dist/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import { UTMParams, QueueResult, FlushResult, DecrementOptions, ConsentCategory, IdentifyOptions, IncrementOptions, PageViewOptions, TrackEventOptions } from '@reopt-ai/data-sdk-core';
2
- export { BatchConfig, CircuitBreakerConfig, ConsentCategory, ConsentConfig, DecrementOptions, EventPayload, FlushResult, IdentifyOptions, IncrementOptions, PageViewOptions, QueueDropReason, QueueResult, RetryConfig, StorageBackend, TrackEventOptions, UTMParams } from '@reopt-ai/data-sdk-core';
3
- import { R as ReoptClient, a as ReoptClientConfig, b as ReoptClientDefaults, W as WebVitalMetric } from './client-B6gFgjju.js';
4
- export { C as CaptureConfig, I as IdentityConfig, c as IdentityStorageKind, N as NormalizePath, d as WebVitalProperties } from './client-B6gFgjju.js';
1
+ import { R as ReoptClient, a as ReoptClientConfig, b as ReoptClientDefaults, U as UTMParams, Q as QueueResult, W as WebVitalMetric, F as FlushResult, D as DecrementOptions, C as ConsentCategory, I as IdentifyOptions, c as IncrementOptions, P as PageViewOptions, T as TrackEventOptions } from './client-CW9DfTlm.js';
2
+ export { B as BatchConfig, d as CaptureConfig, e as CircuitBreakerConfig, f as ConsentConfig, E as EventIdentity, g as EventPayload, h as FetchInit, i as FetchLike, j as FetchResponseLike, k as IdentityConfig, l as IdentityStorageKind, N as NormalizePath, m as QueueDropReason, n as RetryConfig, S as StorageBackend, o as WebVitalProperties } from './client-CW9DfTlm.js';
5
3
  export { ReoptBootstrap } from '@reopt-ai/data-contract/identity';
6
4
 
7
5
  /**
@@ -80,4 +78,4 @@ declare function setAllConsent(allowed: boolean): void;
80
78
  declare function pauseTracking(): void;
81
79
  declare function resumeTracking(): void;
82
80
 
83
- export { type ExceptionProperties, type PageLeaveProperties, ReoptClient, ReoptClientConfig, WebVitalMetric, captureException, captureWebVital, close, decrement, extractUTMParams, flush, getClient, getConsent, getDeviceId, getInstance, getOrCreateClient, identify, increment, init, pageView, pauseTracking, register, reset, resumeTracking, screenView, setAllConsent, setConsent, setProfileId, track, unregister };
81
+ export { ConsentCategory, DecrementOptions, type ExceptionProperties, FlushResult, IdentifyOptions, IncrementOptions, type PageLeaveProperties, PageViewOptions, QueueResult, ReoptClient, ReoptClientConfig, TrackEventOptions, UTMParams, WebVitalMetric, captureException, captureWebVital, close, decrement, extractUTMParams, flush, getClient, getConsent, getDeviceId, getInstance, getOrCreateClient, identify, increment, init, pageView, pauseTracking, register, reset, resumeTracking, screenView, setAllConsent, setConsent, setProfileId, track, unregister };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * `@reopt-ai/data-sdk-client` — the browser SDK.\n *\n * This entry has no framework directive: it works from a `<script>` tag, a\n * plain SPA, or any framework. `./react` and `./next` add the components.\n *\n * The module-level functions (`track`, `identify`, …) operate on the client\n * created by `init()`. They warn and return `undefined` before `init()`, so a\n * call that runs too early is visible in the console rather than lost.\n */\nimport type {\n ConsentCategory,\n DecrementOptions,\n FlushResult,\n IdentifyOptions,\n IncrementOptions,\n PageViewOptions,\n QueueResult,\n TrackEventOptions,\n} from \"@reopt-ai/data-sdk-core\";\nimport { ReoptClient } from \"./client.js\";\nimport type { WebVitalMetric } from \"./capture/web-vitals.js\";\nimport type { ReoptClientConfig } from \"./config.js\";\nimport { forgetClient, getClient, getOrCreateClient } from \"./registry.js\";\n\nexport { ReoptClient } from \"./client.js\";\nexport { getClient, getOrCreateClient } from \"./registry.js\";\nexport { extractUTMParams } from \"./capture/utm.js\";\nexport type { WebVitalMetric, WebVitalProperties } from \"./capture/web-vitals.js\";\nexport type { ExceptionProperties } from \"./capture/exceptions.js\";\nexport type { PageLeaveProperties } from \"./capture/pageleave.js\";\nexport type {\n CaptureConfig,\n IdentityConfig,\n IdentityStorageKind,\n NormalizePath,\n ReoptBootstrap,\n ReoptClientConfig,\n} from \"./config.js\";\nexport type {\n BatchConfig,\n CircuitBreakerConfig,\n ConsentCategory,\n ConsentConfig,\n DecrementOptions,\n EventPayload,\n FlushResult,\n IdentifyOptions,\n IncrementOptions,\n PageViewOptions,\n QueueDropReason,\n QueueResult,\n RetryConfig,\n StorageBackend,\n TrackEventOptions,\n UTMParams,\n} from \"@reopt-ai/data-sdk-core\";\n\n/** Creates (or returns) the page's client for `config.writeKey`. */\nexport function init(config: ReoptClientConfig): ReoptClient {\n return getOrCreateClient(config);\n}\n\n/** The client created by `init()`, or `null`. */\nexport function getInstance(): ReoptClient | null {\n return getClient();\n}\n\nfunction current(): ReoptClient | null {\n const client = getClient();\n if (!client) console.warn(\"[reopt] not initialized — call init() first\");\n return client;\n}\n\n/** Normalises the `(id, …)` and `(options)` call forms the module functions accept. */\nconst withId = <T extends { profileId: string | number }>(\n idOrOptions: string | number | T,\n rest: Omit<T, \"profileId\">\n): T => (typeof idOrOptions === \"object\" ? idOrOptions : ({ profileId: idOrOptions, ...rest } as T));\n\nexport function track(options: TrackEventOptions): QueueResult | undefined;\nexport function track(name: string, properties?: Record<string, unknown>): QueueResult | undefined;\nexport function track(\n nameOrOptions: string | TrackEventOptions,\n properties?: Record<string, unknown>\n): QueueResult | undefined {\n return current()?.track(typeof nameOrOptions === \"string\" ? { name: nameOrOptions, properties } : nameOrOptions);\n}\n\nexport function identify(options: IdentifyOptions): QueueResult | undefined;\nexport function identify(profileId: string | number, properties?: Record<string, unknown>): QueueResult | undefined;\nexport function identify(\n idOrOptions: string | number | IdentifyOptions,\n properties?: Record<string, unknown>\n): QueueResult | undefined {\n return current()?.identify(withId<IdentifyOptions>(idOrOptions, { properties }));\n}\n\nexport function increment(options: IncrementOptions): QueueResult | undefined;\nexport function increment(profileId: string | number, property: string, value?: number): QueueResult | undefined;\nexport function increment(\n idOrOptions: string | number | IncrementOptions,\n property?: string,\n value?: number\n): QueueResult | undefined {\n return current()?.increment(withId<IncrementOptions>(idOrOptions, { property: property ?? \"\", value }));\n}\n\nexport function decrement(options: DecrementOptions): QueueResult | undefined;\nexport function decrement(profileId: string | number, property: string, value?: number): QueueResult | undefined;\nexport function decrement(\n idOrOptions: string | number | DecrementOptions,\n property?: string,\n value?: number\n): QueueResult | undefined {\n return current()?.decrement(withId<DecrementOptions>(idOrOptions, { property: property ?? \"\", value }));\n}\n\nexport function pageView(options?: PageViewOptions): QueueResult | undefined {\n return current()?.pageView(options);\n}\n\nexport function screenView(screenName: string, properties?: Record<string, unknown>): QueueResult | undefined {\n return current()?.screenView(screenName, properties);\n}\n\nexport function captureWebVital(metric: WebVitalMetric): QueueResult | undefined {\n return current()?.captureWebVital(metric);\n}\n\nexport function captureException(error: unknown, properties?: Record<string, unknown>): QueueResult | undefined {\n return current()?.captureException(error, properties);\n}\n\n/**\n * The device id this page is tracked under, for passing to your own server\n * calls explicitly (e.g. as a body field a route handler forwards as the\n * event's `deviceId`). `null` before `init()` or when analytics is disabled.\n */\nexport function getDeviceId(): string | null {\n const client = getClient();\n return client && !client.disabled ? client.getDeviceId() : null;\n}\n\n/** Attach `properties` to every event from now on (an event's own properties win). */\nexport function register(properties: Record<string, unknown>): void {\n current()?.register(properties);\n}\n\nexport function unregister(...keys: string[]): void {\n current()?.unregister(...keys);\n}\n\nexport function setProfileId(profileId: string | number | null): void {\n current()?.setProfileId(profileId);\n}\n\nexport function reset(): void {\n getClient()?.reset();\n}\n\nexport function flush(): Promise<FlushResult | undefined> {\n const client = getClient();\n return client ? client.flush() : Promise.resolve(undefined);\n}\n\n/** Flushes, tears down listeners, and forgets the client so `init()` starts fresh. */\nexport async function close(): Promise<FlushResult | undefined> {\n const client = getClient();\n if (!client) return undefined;\n forgetClient(client);\n return client.close();\n}\n\nexport function setConsent(category: ConsentCategory, allowed: boolean): void {\n current()?.setConsent(category, allowed);\n}\n\nexport function getConsent(category: ConsentCategory): boolean {\n return current()?.getConsent(category) ?? false;\n}\n\nexport function setAllConsent(allowed: boolean): void {\n current()?.setAllConsent(allowed);\n}\n\nexport function pauseTracking(): void {\n current()?.pauseTracking();\n}\n\nexport function resumeTracking(): void {\n current()?.resumeTracking();\n}\n"],"mappings":";;;;;;;;;;AA2DO,SAAS,KAAK,QAAwC;AAC3D,SAAO,kBAAkB,MAAM;AACjC;AAGO,SAAS,cAAkC;AAChD,SAAO,UAAU;AACnB;AAEA,SAAS,UAA8B;AACrC,QAAM,SAAS,UAAU;AACzB,MAAI,CAAC,OAAQ,SAAQ,KAAK,kDAA6C;AACvE,SAAO;AACT;AAGA,IAAM,SAAS,CACb,aACA,SACO,OAAO,gBAAgB,WAAW,cAAe,EAAE,WAAW,aAAa,GAAG,KAAK;AAIrF,SAAS,MACd,eACA,YACyB;AACzB,SAAO,QAAQ,GAAG,MAAM,OAAO,kBAAkB,WAAW,EAAE,MAAM,eAAe,WAAW,IAAI,aAAa;AACjH;AAIO,SAAS,SACd,aACA,YACyB;AACzB,SAAO,QAAQ,GAAG,SAAS,OAAwB,aAAa,EAAE,WAAW,CAAC,CAAC;AACjF;AAIO,SAAS,UACd,aACA,UACA,OACyB;AACzB,SAAO,QAAQ,GAAG,UAAU,OAAyB,aAAa,EAAE,UAAU,YAAY,IAAI,MAAM,CAAC,CAAC;AACxG;AAIO,SAAS,UACd,aACA,UACA,OACyB;AACzB,SAAO,QAAQ,GAAG,UAAU,OAAyB,aAAa,EAAE,UAAU,YAAY,IAAI,MAAM,CAAC,CAAC;AACxG;AAEO,SAAS,SAAS,SAAoD;AAC3E,SAAO,QAAQ,GAAG,SAAS,OAAO;AACpC;AAEO,SAAS,WAAW,YAAoB,YAA+D;AAC5G,SAAO,QAAQ,GAAG,WAAW,YAAY,UAAU;AACrD;AAEO,SAAS,gBAAgB,QAAiD;AAC/E,SAAO,QAAQ,GAAG,gBAAgB,MAAM;AAC1C;AAEO,SAAS,iBAAiB,OAAgB,YAA+D;AAC9G,SAAO,QAAQ,GAAG,iBAAiB,OAAO,UAAU;AACtD;AAOO,SAAS,cAA6B;AAC3C,QAAM,SAAS,UAAU;AACzB,SAAO,UAAU,CAAC,OAAO,WAAW,OAAO,YAAY,IAAI;AAC7D;AAGO,SAAS,SAAS,YAA2C;AAClE,UAAQ,GAAG,SAAS,UAAU;AAChC;AAEO,SAAS,cAAc,MAAsB;AAClD,UAAQ,GAAG,WAAW,GAAG,IAAI;AAC/B;AAEO,SAAS,aAAa,WAAyC;AACpE,UAAQ,GAAG,aAAa,SAAS;AACnC;AAEO,SAAS,QAAc;AAC5B,YAAU,GAAG,MAAM;AACrB;AAEO,SAAS,QAA0C;AACxD,QAAM,SAAS,UAAU;AACzB,SAAO,SAAS,OAAO,MAAM,IAAI,QAAQ,QAAQ,MAAS;AAC5D;AAGA,eAAsB,QAA0C;AAC9D,QAAM,SAAS,UAAU;AACzB,MAAI,CAAC,OAAQ,QAAO;AACpB,eAAa,MAAM;AACnB,SAAO,OAAO,MAAM;AACtB;AAEO,SAAS,WAAW,UAA2B,SAAwB;AAC5E,UAAQ,GAAG,WAAW,UAAU,OAAO;AACzC;AAEO,SAAS,WAAW,UAAoC;AAC7D,SAAO,QAAQ,GAAG,WAAW,QAAQ,KAAK;AAC5C;AAEO,SAAS,cAAc,SAAwB;AACpD,UAAQ,GAAG,cAAc,OAAO;AAClC;AAEO,SAAS,gBAAsB;AACpC,UAAQ,GAAG,cAAc;AAC3B;AAEO,SAAS,iBAAuB;AACrC,UAAQ,GAAG,eAAe;AAC5B;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * `@reopt-ai/data-sdk-client` — the browser SDK.\n *\n * This entry has no framework directive: it works from a `<script>` tag, a\n * plain SPA, or any framework. `./react` and `./next` add the components.\n *\n * The module-level functions (`track`, `identify`, …) operate on the client\n * created by `init()`. They warn and return `undefined` before `init()`, so a\n * call that runs too early is visible in the console rather than lost.\n */\nimport type {\n ConsentCategory,\n DecrementOptions,\n FlushResult,\n IdentifyOptions,\n IncrementOptions,\n PageViewOptions,\n QueueResult,\n TrackEventOptions,\n} from \"@reopt-ai/data-sdk-core\";\nimport { ReoptClient } from \"./client.js\";\nimport type { WebVitalMetric } from \"./capture/web-vitals.js\";\nimport type { ReoptClientConfig } from \"./config.js\";\nimport { forgetClient, getClient, getOrCreateClient } from \"./registry.js\";\n\nexport { ReoptClient } from \"./client.js\";\nexport { getClient, getOrCreateClient } from \"./registry.js\";\nexport { extractUTMParams } from \"./capture/utm.js\";\nexport type { WebVitalMetric, WebVitalProperties } from \"./capture/web-vitals.js\";\nexport type { ExceptionProperties } from \"./capture/exceptions.js\";\nexport type { PageLeaveProperties } from \"./capture/pageleave.js\";\nexport type {\n CaptureConfig,\n IdentityConfig,\n IdentityStorageKind,\n NormalizePath,\n ReoptBootstrap,\n ReoptClientConfig,\n} from \"./config.js\";\nexport type {\n BatchConfig,\n CircuitBreakerConfig,\n ConsentCategory,\n ConsentConfig,\n DecrementOptions,\n EventIdentity,\n EventPayload,\n FetchInit,\n FetchLike,\n FetchResponseLike,\n FlushResult,\n IdentifyOptions,\n IncrementOptions,\n PageViewOptions,\n QueueDropReason,\n QueueResult,\n RetryConfig,\n StorageBackend,\n TrackEventOptions,\n UTMParams,\n} from \"@reopt-ai/data-sdk-core\";\n\n/** Creates (or returns) the page's client for `config.writeKey`. */\nexport function init(config: ReoptClientConfig): ReoptClient {\n return getOrCreateClient(config);\n}\n\n/** The client created by `init()`, or `null`. */\nexport function getInstance(): ReoptClient | null {\n return getClient();\n}\n\nfunction current(): ReoptClient | null {\n const client = getClient();\n if (!client) console.warn(\"[reopt] not initialized — call init() first\");\n return client;\n}\n\n/** Normalises the `(id, …)` and `(options)` call forms the module functions accept. */\nconst withId = <T extends { profileId: string | number }>(\n idOrOptions: string | number | T,\n rest: Omit<T, \"profileId\">\n): T => (typeof idOrOptions === \"object\" ? idOrOptions : ({ profileId: idOrOptions, ...rest } as T));\n\nexport function track(options: TrackEventOptions): QueueResult | undefined;\nexport function track(name: string, properties?: Record<string, unknown>): QueueResult | undefined;\nexport function track(\n nameOrOptions: string | TrackEventOptions,\n properties?: Record<string, unknown>\n): QueueResult | undefined {\n return current()?.track(typeof nameOrOptions === \"string\" ? { name: nameOrOptions, properties } : nameOrOptions);\n}\n\nexport function identify(options: IdentifyOptions): QueueResult | undefined;\nexport function identify(profileId: string | number, properties?: Record<string, unknown>): QueueResult | undefined;\nexport function identify(\n idOrOptions: string | number | IdentifyOptions,\n properties?: Record<string, unknown>\n): QueueResult | undefined {\n return current()?.identify(withId<IdentifyOptions>(idOrOptions, { properties }));\n}\n\nexport function increment(options: IncrementOptions): QueueResult | undefined;\nexport function increment(profileId: string | number, property: string, value?: number): QueueResult | undefined;\nexport function increment(\n idOrOptions: string | number | IncrementOptions,\n property?: string,\n value?: number\n): QueueResult | undefined {\n return current()?.increment(withId<IncrementOptions>(idOrOptions, { property: property ?? \"\", value }));\n}\n\nexport function decrement(options: DecrementOptions): QueueResult | undefined;\nexport function decrement(profileId: string | number, property: string, value?: number): QueueResult | undefined;\nexport function decrement(\n idOrOptions: string | number | DecrementOptions,\n property?: string,\n value?: number\n): QueueResult | undefined {\n return current()?.decrement(withId<DecrementOptions>(idOrOptions, { property: property ?? \"\", value }));\n}\n\nexport function pageView(options?: PageViewOptions): QueueResult | undefined {\n return current()?.pageView(options);\n}\n\nexport function screenView(screenName: string, properties?: Record<string, unknown>): QueueResult | undefined {\n return current()?.screenView(screenName, properties);\n}\n\nexport function captureWebVital(metric: WebVitalMetric): QueueResult | undefined {\n return current()?.captureWebVital(metric);\n}\n\nexport function captureException(error: unknown, properties?: Record<string, unknown>): QueueResult | undefined {\n return current()?.captureException(error, properties);\n}\n\n/**\n * The device id this page is tracked under, for passing to your own server\n * calls explicitly (e.g. as a body field a route handler forwards as the\n * event's `deviceId`). `null` before `init()` or when analytics is disabled.\n */\nexport function getDeviceId(): string | null {\n const client = getClient();\n return client && !client.disabled ? client.getDeviceId() : null;\n}\n\n/** Attach `properties` to every event from now on (an event's own properties win). */\nexport function register(properties: Record<string, unknown>): void {\n current()?.register(properties);\n}\n\nexport function unregister(...keys: string[]): void {\n current()?.unregister(...keys);\n}\n\nexport function setProfileId(profileId: string | number | null): void {\n current()?.setProfileId(profileId);\n}\n\nexport function reset(): void {\n getClient()?.reset();\n}\n\nexport function flush(): Promise<FlushResult | undefined> {\n const client = getClient();\n return client ? client.flush() : Promise.resolve(undefined);\n}\n\n/** Flushes, tears down listeners, and forgets the client so `init()` starts fresh. */\nexport async function close(): Promise<FlushResult | undefined> {\n const client = getClient();\n if (!client) return undefined;\n forgetClient(client);\n return client.close();\n}\n\nexport function setConsent(category: ConsentCategory, allowed: boolean): void {\n current()?.setConsent(category, allowed);\n}\n\nexport function getConsent(category: ConsentCategory): boolean {\n return current()?.getConsent(category) ?? false;\n}\n\nexport function setAllConsent(allowed: boolean): void {\n current()?.setAllConsent(allowed);\n}\n\nexport function pauseTracking(): void {\n current()?.pauseTracking();\n}\n\nexport function resumeTracking(): void {\n current()?.resumeTracking();\n}\n"],"mappings":";;;;;;;;;;AA+DO,SAAS,KAAK,QAAwC;AAC3D,SAAO,kBAAkB,MAAM;AACjC;AAGO,SAAS,cAAkC;AAChD,SAAO,UAAU;AACnB;AAEA,SAAS,UAA8B;AACrC,QAAM,SAAS,UAAU;AACzB,MAAI,CAAC,OAAQ,SAAQ,KAAK,kDAA6C;AACvE,SAAO;AACT;AAGA,IAAM,SAAS,CACb,aACA,SACO,OAAO,gBAAgB,WAAW,cAAe,EAAE,WAAW,aAAa,GAAG,KAAK;AAIrF,SAAS,MACd,eACA,YACyB;AACzB,SAAO,QAAQ,GAAG,MAAM,OAAO,kBAAkB,WAAW,EAAE,MAAM,eAAe,WAAW,IAAI,aAAa;AACjH;AAIO,SAAS,SACd,aACA,YACyB;AACzB,SAAO,QAAQ,GAAG,SAAS,OAAwB,aAAa,EAAE,WAAW,CAAC,CAAC;AACjF;AAIO,SAAS,UACd,aACA,UACA,OACyB;AACzB,SAAO,QAAQ,GAAG,UAAU,OAAyB,aAAa,EAAE,UAAU,YAAY,IAAI,MAAM,CAAC,CAAC;AACxG;AAIO,SAAS,UACd,aACA,UACA,OACyB;AACzB,SAAO,QAAQ,GAAG,UAAU,OAAyB,aAAa,EAAE,UAAU,YAAY,IAAI,MAAM,CAAC,CAAC;AACxG;AAEO,SAAS,SAAS,SAAoD;AAC3E,SAAO,QAAQ,GAAG,SAAS,OAAO;AACpC;AAEO,SAAS,WAAW,YAAoB,YAA+D;AAC5G,SAAO,QAAQ,GAAG,WAAW,YAAY,UAAU;AACrD;AAEO,SAAS,gBAAgB,QAAiD;AAC/E,SAAO,QAAQ,GAAG,gBAAgB,MAAM;AAC1C;AAEO,SAAS,iBAAiB,OAAgB,YAA+D;AAC9G,SAAO,QAAQ,GAAG,iBAAiB,OAAO,UAAU;AACtD;AAOO,SAAS,cAA6B;AAC3C,QAAM,SAAS,UAAU;AACzB,SAAO,UAAU,CAAC,OAAO,WAAW,OAAO,YAAY,IAAI;AAC7D;AAGO,SAAS,SAAS,YAA2C;AAClE,UAAQ,GAAG,SAAS,UAAU;AAChC;AAEO,SAAS,cAAc,MAAsB;AAClD,UAAQ,GAAG,WAAW,GAAG,IAAI;AAC/B;AAEO,SAAS,aAAa,WAAyC;AACpE,UAAQ,GAAG,aAAa,SAAS;AACnC;AAEO,SAAS,QAAc;AAC5B,YAAU,GAAG,MAAM;AACrB;AAEO,SAAS,QAA0C;AACxD,QAAM,SAAS,UAAU;AACzB,SAAO,SAAS,OAAO,MAAM,IAAI,QAAQ,QAAQ,MAAS;AAC5D;AAGA,eAAsB,QAA0C;AAC9D,QAAM,SAAS,UAAU;AACzB,MAAI,CAAC,OAAQ,QAAO;AACpB,eAAa,MAAM;AACnB,SAAO,OAAO,MAAM;AACtB;AAEO,SAAS,WAAW,UAA2B,SAAwB;AAC5E,UAAQ,GAAG,WAAW,UAAU,OAAO;AACzC;AAEO,SAAS,WAAW,UAAoC;AAC7D,SAAO,QAAQ,GAAG,WAAW,QAAQ,KAAK;AAC5C;AAEO,SAAS,cAAc,SAAwB;AACpD,UAAQ,GAAG,cAAc,OAAO;AAClC;AAEO,SAAS,gBAAsB;AACpC,UAAQ,GAAG,cAAc;AAC3B;AAEO,SAAS,iBAAuB;AACrC,UAAQ,GAAG,eAAe;AAC5B;","names":[]}
package/dist/next.cjs CHANGED
@@ -1861,7 +1861,7 @@ function PageViewTracker() {
1861
1861
  const key = search ? `${pathname}?${search}` : pathname;
1862
1862
  if (lastKey.current === key) return;
1863
1863
  lastKey.current = key;
1864
- pageView({ path: pathname, properties: search ? { search } : void 0 });
1864
+ pageView({ properties: search ? { search } : void 0 });
1865
1865
  }, [pathname, searchParams, pageView]);
1866
1866
  return null;
1867
1867
  }