@shware/analytics 13.1.0 → 13.1.1
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/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/_virtual/_rolldown/runtime.mjs +1 -2
- package/dist/ads/google.cjs +1 -2
- package/dist/ads/google.d.cts +0 -2
- package/dist/ads/google.d.cts.map +1 -1
- package/dist/ads/google.d.mts +0 -2
- package/dist/ads/google.d.mts.map +1 -1
- package/dist/ads/google.mjs +1 -2
- package/dist/ads/meta.cjs +1 -2
- package/dist/ads/meta.d.cts +0 -2
- package/dist/ads/meta.d.cts.map +1 -1
- package/dist/ads/meta.d.mts +0 -2
- package/dist/ads/meta.d.mts.map +1 -1
- package/dist/ads/meta.mjs +1 -2
- package/dist/ads/time.cjs +1 -2
- package/dist/ads/time.d.cts +0 -2
- package/dist/ads/time.d.cts.map +1 -1
- package/dist/ads/time.d.mts +0 -2
- package/dist/ads/time.d.mts.map +1 -1
- package/dist/ads/time.mjs +1 -2
- package/dist/ads/types.d.cts +0 -2
- package/dist/ads/types.d.cts.map +1 -1
- package/dist/ads/types.d.mts +0 -2
- package/dist/ads/types.d.mts.map +1 -1
- package/dist/attribution/classify.cjs +1 -2
- package/dist/attribution/classify.d.cts +0 -2
- package/dist/attribution/classify.d.cts.map +1 -1
- package/dist/attribution/classify.d.mts +0 -2
- package/dist/attribution/classify.d.mts.map +1 -1
- package/dist/attribution/classify.mjs +1 -2
- package/dist/attribution/vocabulary.cjs +1 -2
- package/dist/attribution/vocabulary.d.cts +0 -2
- package/dist/attribution/vocabulary.d.cts.map +1 -1
- package/dist/attribution/vocabulary.d.mts +0 -2
- package/dist/attribution/vocabulary.d.mts.map +1 -1
- package/dist/attribution/vocabulary.mjs +1 -2
- package/dist/bot/generic.cjs +1 -2
- package/dist/bot/generic.d.cts +0 -2
- package/dist/bot/generic.d.cts.map +1 -1
- package/dist/bot/generic.d.mts +0 -2
- package/dist/bot/generic.d.mts.map +1 -1
- package/dist/bot/generic.mjs +1 -2
- package/dist/bot/index.cjs +1 -2
- package/dist/bot/index.d.cts +0 -2
- package/dist/bot/index.d.cts.map +1 -1
- package/dist/bot/index.d.mts +0 -2
- package/dist/bot/index.d.mts.map +1 -1
- package/dist/bot/index.mjs +1 -2
- package/dist/click-id/index.cjs +1 -2
- package/dist/click-id/index.d.cts +0 -2
- package/dist/click-id/index.d.cts.map +1 -1
- package/dist/click-id/index.d.mts +0 -2
- package/dist/click-id/index.d.mts.map +1 -1
- package/dist/click-id/index.mjs +1 -2
- package/dist/constants/storage.cjs +1 -2
- package/dist/constants/storage.d.cts +0 -2
- package/dist/constants/storage.d.cts.map +1 -1
- package/dist/constants/storage.d.mts +0 -2
- package/dist/constants/storage.d.mts.map +1 -1
- package/dist/constants/storage.mjs +1 -2
- package/dist/feedback/index.cjs +1 -2
- package/dist/feedback/index.d.cts +0 -2
- package/dist/feedback/index.d.cts.map +1 -1
- package/dist/feedback/index.d.mts +0 -2
- package/dist/feedback/index.d.mts.map +1 -1
- package/dist/feedback/index.mjs +1 -2
- package/dist/hooks/use-app-analytics.cjs +1 -2
- package/dist/hooks/use-app-analytics.d.cts +0 -2
- package/dist/hooks/use-app-analytics.d.cts.map +1 -1
- package/dist/hooks/use-app-analytics.d.mts +0 -2
- package/dist/hooks/use-app-analytics.d.mts.map +1 -1
- package/dist/hooks/use-app-analytics.mjs +1 -2
- package/dist/hooks/use-outbound-click-analytics.cjs +1 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts +0 -2
- package/dist/hooks/use-outbound-click-analytics.d.cts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.d.mts +0 -2
- package/dist/hooks/use-outbound-click-analytics.d.mts.map +1 -1
- package/dist/hooks/use-outbound-click-analytics.mjs +1 -2
- package/dist/hooks/use-report-web-vitals.cjs +1 -2
- package/dist/hooks/use-report-web-vitals.d.cts +0 -2
- package/dist/hooks/use-report-web-vitals.d.cts.map +1 -1
- package/dist/hooks/use-report-web-vitals.d.mts +0 -2
- package/dist/hooks/use-report-web-vitals.d.mts.map +1 -1
- package/dist/hooks/use-report-web-vitals.mjs +1 -2
- package/dist/hooks/use-track-impression.cjs +1 -2
- package/dist/hooks/use-track-impression.d.cts +0 -2
- package/dist/hooks/use-track-impression.d.cts.map +1 -1
- package/dist/hooks/use-track-impression.d.mts +0 -2
- package/dist/hooks/use-track-impression.d.mts.map +1 -1
- package/dist/hooks/use-track-impression.mjs +1 -2
- package/dist/hooks/use-uet-id-sync.cjs +1 -2
- package/dist/hooks/use-uet-id-sync.d.cts +0 -2
- package/dist/hooks/use-uet-id-sync.d.cts.map +1 -1
- package/dist/hooks/use-uet-id-sync.d.mts +0 -2
- package/dist/hooks/use-uet-id-sync.d.mts.map +1 -1
- package/dist/hooks/use-uet-id-sync.mjs +1 -2
- package/dist/hooks/use-web-analytics.cjs +1 -2
- package/dist/hooks/use-web-analytics.d.cts +0 -2
- package/dist/hooks/use-web-analytics.d.cts.map +1 -1
- package/dist/hooks/use-web-analytics.d.mts +0 -2
- package/dist/hooks/use-web-analytics.d.mts.map +1 -1
- package/dist/hooks/use-web-analytics.mjs +1 -2
- package/dist/link/index.cjs +1 -2
- package/dist/link/index.d.cts +0 -2
- package/dist/link/index.d.cts.map +1 -1
- package/dist/link/index.d.mts +0 -2
- package/dist/link/index.d.mts.map +1 -1
- package/dist/link/index.mjs +1 -2
- package/dist/native/deep-link.cjs +1 -2
- package/dist/native/deep-link.d.cts +0 -2
- package/dist/native/deep-link.d.cts.map +1 -1
- package/dist/native/deep-link.d.mts +0 -2
- package/dist/native/deep-link.d.mts.map +1 -1
- package/dist/native/deep-link.mjs +1 -2
- package/dist/native/fbsdk.cjs +1 -2
- package/dist/native/fbsdk.d.cts +0 -2
- package/dist/native/fbsdk.d.cts.map +1 -1
- package/dist/native/fbsdk.d.mts +0 -2
- package/dist/native/fbsdk.d.mts.map +1 -1
- package/dist/native/fbsdk.mjs +1 -2
- package/dist/native/fingerprint.cjs +1 -2
- package/dist/native/fingerprint.d.cts +0 -2
- package/dist/native/fingerprint.d.cts.map +1 -1
- package/dist/native/fingerprint.d.mts +0 -2
- package/dist/native/fingerprint.d.mts.map +1 -1
- package/dist/native/fingerprint.mjs +1 -2
- package/dist/native/firebase.cjs +1 -2
- package/dist/native/firebase.d.cts +0 -2
- package/dist/native/firebase.d.cts.map +1 -1
- package/dist/native/firebase.d.mts +0 -2
- package/dist/native/firebase.d.mts.map +1 -1
- package/dist/native/firebase.mjs +1 -2
- package/dist/native/index.cjs +1 -1
- package/dist/native/index.mjs +1 -1
- package/dist/native/posthog.cjs +1 -2
- package/dist/native/posthog.d.cts +0 -2
- package/dist/native/posthog.d.cts.map +1 -1
- package/dist/native/posthog.d.mts +0 -2
- package/dist/native/posthog.d.mts.map +1 -1
- package/dist/native/posthog.mjs +1 -2
- package/dist/native/setup.cjs +1 -2
- package/dist/native/setup.d.cts +0 -2
- package/dist/native/setup.d.cts.map +1 -1
- package/dist/native/setup.d.mts +0 -2
- package/dist/native/setup.d.mts.map +1 -1
- package/dist/native/setup.mjs +1 -2
- package/dist/next/index.cjs +1 -2
- package/dist/next/index.d.cts +0 -2
- package/dist/next/index.d.cts.map +1 -1
- package/dist/next/index.d.mts +0 -2
- package/dist/next/index.d.mts.map +1 -1
- package/dist/next/index.mjs +1 -2
- package/dist/node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.cjs +1 -2
- package/dist/node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.mjs +1 -2
- package/dist/react-router/index.cjs +2 -3
- package/dist/react-router/index.d.cts +0 -2
- package/dist/react-router/index.d.cts.map +1 -1
- package/dist/react-router/index.d.mts +0 -2
- package/dist/react-router/index.d.mts.map +1 -1
- package/dist/react-router/index.mjs +2 -3
- package/dist/schema/index.cjs +1 -2
- package/dist/schema/index.d.cts +0 -2
- package/dist/schema/index.d.cts.map +1 -1
- package/dist/schema/index.d.mts +0 -2
- package/dist/schema/index.d.mts.map +1 -1
- package/dist/schema/index.mjs +1 -2
- package/dist/server/action-source.cjs +1 -2
- package/dist/server/action-source.d.cts +0 -2
- package/dist/server/action-source.d.cts.map +1 -1
- package/dist/server/action-source.d.mts +0 -2
- package/dist/server/action-source.d.mts.map +1 -1
- package/dist/server/action-source.mjs +1 -2
- package/dist/server/click-ids.cjs +1 -2
- package/dist/server/click-ids.d.cts +0 -2
- package/dist/server/click-ids.d.cts.map +1 -1
- package/dist/server/click-ids.d.mts +0 -2
- package/dist/server/click-ids.d.mts.map +1 -1
- package/dist/server/click-ids.mjs +1 -2
- package/dist/server/google-data-manager.cjs +1 -2
- package/dist/server/google-data-manager.d.cts +0 -2
- package/dist/server/google-data-manager.d.cts.map +1 -1
- package/dist/server/google-data-manager.d.mts +0 -2
- package/dist/server/google-data-manager.d.mts.map +1 -1
- package/dist/server/google-data-manager.mjs +1 -2
- package/dist/server/linkedin-conversions-api.cjs +1 -2
- package/dist/server/linkedin-conversions-api.d.cts +0 -2
- package/dist/server/linkedin-conversions-api.d.cts.map +1 -1
- package/dist/server/linkedin-conversions-api.d.mts +0 -2
- package/dist/server/linkedin-conversions-api.d.mts.map +1 -1
- package/dist/server/linkedin-conversions-api.mjs +1 -2
- package/dist/server/meta-capi.cjs +1 -2
- package/dist/server/meta-capi.d.cts +0 -2
- package/dist/server/meta-capi.d.cts.map +1 -1
- package/dist/server/meta-capi.d.mts +0 -2
- package/dist/server/meta-capi.d.mts.map +1 -1
- package/dist/server/meta-capi.mjs +1 -2
- package/dist/server/meta-conversions-api.cjs +1 -2
- package/dist/server/meta-conversions-api.d.cts +0 -2
- package/dist/server/meta-conversions-api.d.cts.map +1 -1
- package/dist/server/meta-conversions-api.d.mts +0 -2
- package/dist/server/meta-conversions-api.d.mts.map +1 -1
- package/dist/server/meta-conversions-api.mjs +1 -2
- package/dist/server/microsoft-conversions-api.cjs +1 -2
- package/dist/server/microsoft-conversions-api.d.cts +0 -2
- package/dist/server/microsoft-conversions-api.d.cts.map +1 -1
- package/dist/server/microsoft-conversions-api.d.mts +0 -2
- package/dist/server/microsoft-conversions-api.d.mts.map +1 -1
- package/dist/server/microsoft-conversions-api.mjs +1 -2
- package/dist/server/openai-conversions-api.cjs +1 -2
- package/dist/server/openai-conversions-api.d.cts +0 -2
- package/dist/server/openai-conversions-api.d.cts.map +1 -1
- package/dist/server/openai-conversions-api.d.mts +0 -2
- package/dist/server/openai-conversions-api.d.mts.map +1 -1
- package/dist/server/openai-conversions-api.mjs +1 -2
- package/dist/server/page-location.cjs +1 -2
- package/dist/server/page-location.d.cts +0 -2
- package/dist/server/page-location.d.cts.map +1 -1
- package/dist/server/page-location.d.mts +0 -2
- package/dist/server/page-location.d.mts.map +1 -1
- package/dist/server/page-location.mjs +1 -2
- package/dist/server/reddit-conversions-api.cjs +1 -2
- package/dist/server/reddit-conversions-api.d.cts +0 -2
- package/dist/server/reddit-conversions-api.d.cts.map +1 -1
- package/dist/server/reddit-conversions-api.d.mts +0 -2
- package/dist/server/reddit-conversions-api.d.mts.map +1 -1
- package/dist/server/reddit-conversions-api.mjs +1 -2
- package/dist/setup/index.cjs +1 -2
- package/dist/setup/index.d.cts +0 -2
- package/dist/setup/index.d.cts.map +1 -1
- package/dist/setup/index.d.mts +0 -2
- package/dist/setup/index.d.mts.map +1 -1
- package/dist/setup/index.mjs +1 -2
- package/dist/setup/session.cjs +1 -2
- package/dist/setup/session.d.cts +0 -2
- package/dist/setup/session.d.cts.map +1 -1
- package/dist/setup/session.d.mts +0 -2
- package/dist/setup/session.d.mts.map +1 -1
- package/dist/setup/session.mjs +1 -2
- package/dist/tanstack/analytics.cjs +2 -3
- package/dist/tanstack/analytics.d.cts +0 -2
- package/dist/tanstack/analytics.d.cts.map +1 -1
- package/dist/tanstack/analytics.d.mts +0 -2
- package/dist/tanstack/analytics.d.mts.map +1 -1
- package/dist/tanstack/analytics.mjs +2 -3
- package/dist/tanstack/middleware.cjs +1 -2
- package/dist/tanstack/middleware.d.cts +0 -2
- package/dist/tanstack/middleware.d.cts.map +1 -1
- package/dist/tanstack/middleware.d.mts +0 -2
- package/dist/tanstack/middleware.d.mts.map +1 -1
- package/dist/tanstack/middleware.mjs +1 -2
- package/dist/test/native-modules.d.cts +0 -2
- package/dist/test/native-modules.d.mts +0 -2
- package/dist/test/setup.cjs +1 -2
- package/dist/test/setup.d.cts +0 -2
- package/dist/test/setup.d.cts.map +1 -1
- package/dist/test/setup.d.mts +0 -2
- package/dist/test/setup.d.mts.map +1 -1
- package/dist/test/setup.mjs +1 -2
- package/dist/third-parties/google-analytics.cjs +1 -2
- package/dist/third-parties/google-analytics.d.cts +0 -2
- package/dist/third-parties/google-analytics.d.cts.map +1 -1
- package/dist/third-parties/google-analytics.d.mts +0 -2
- package/dist/third-parties/google-analytics.d.mts.map +1 -1
- package/dist/third-parties/google-analytics.mjs +1 -2
- package/dist/third-parties/ignored-events.cjs +1 -2
- package/dist/third-parties/ignored-events.d.cts +0 -2
- package/dist/third-parties/ignored-events.d.cts.map +1 -1
- package/dist/third-parties/ignored-events.d.mts +0 -2
- package/dist/third-parties/ignored-events.d.mts.map +1 -1
- package/dist/third-parties/ignored-events.mjs +1 -2
- package/dist/third-parties/linkedin-insight-tag.cjs +1 -2
- package/dist/third-parties/linkedin-insight-tag.d.cts +0 -2
- package/dist/third-parties/linkedin-insight-tag.d.cts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.d.mts +0 -2
- package/dist/third-parties/linkedin-insight-tag.d.mts.map +1 -1
- package/dist/third-parties/linkedin-insight-tag.mjs +1 -2
- package/dist/third-parties/meta-pixel.cjs +2 -3
- package/dist/third-parties/meta-pixel.d.cts +0 -2
- package/dist/third-parties/meta-pixel.d.cts.map +1 -1
- package/dist/third-parties/meta-pixel.d.mts +0 -2
- package/dist/third-parties/meta-pixel.d.mts.map +1 -1
- package/dist/third-parties/meta-pixel.mjs +2 -3
- package/dist/third-parties/microsoft-uet.cjs +1 -2
- package/dist/third-parties/microsoft-uet.d.cts +0 -2
- package/dist/third-parties/microsoft-uet.d.cts.map +1 -1
- package/dist/third-parties/microsoft-uet.d.mts +0 -2
- package/dist/third-parties/microsoft-uet.d.mts.map +1 -1
- package/dist/third-parties/microsoft-uet.mjs +1 -2
- package/dist/third-parties/openai-pixel.cjs +1 -2
- package/dist/third-parties/openai-pixel.d.cts +0 -2
- package/dist/third-parties/openai-pixel.d.cts.map +1 -1
- package/dist/third-parties/openai-pixel.d.mts +0 -2
- package/dist/third-parties/openai-pixel.d.mts.map +1 -1
- package/dist/third-parties/openai-pixel.mjs +1 -2
- package/dist/third-parties/posthog.cjs +1 -2
- package/dist/third-parties/posthog.d.cts +0 -2
- package/dist/third-parties/posthog.d.cts.map +1 -1
- package/dist/third-parties/posthog.d.mts +0 -2
- package/dist/third-parties/posthog.d.mts.map +1 -1
- package/dist/third-parties/posthog.mjs +1 -2
- package/dist/third-parties/reddit-pixel.cjs +1 -2
- package/dist/third-parties/reddit-pixel.d.cts +0 -2
- package/dist/third-parties/reddit-pixel.d.cts.map +1 -1
- package/dist/third-parties/reddit-pixel.d.mts +0 -2
- package/dist/third-parties/reddit-pixel.d.mts.map +1 -1
- package/dist/third-parties/reddit-pixel.mjs +1 -2
- package/dist/track/fbq.cjs +1 -2
- package/dist/track/fbq.d.cts +0 -2
- package/dist/track/fbq.d.cts.map +1 -1
- package/dist/track/fbq.d.mts +0 -2
- package/dist/track/fbq.d.mts.map +1 -1
- package/dist/track/fbq.mjs +1 -2
- package/dist/track/gtag.cjs +1 -2
- package/dist/track/gtag.d.cts +0 -2
- package/dist/track/gtag.d.cts.map +1 -1
- package/dist/track/gtag.d.mts +0 -2
- package/dist/track/gtag.d.mts.map +1 -1
- package/dist/track/gtag.mjs +1 -2
- package/dist/track/index.cjs +1 -2
- package/dist/track/index.d.cts +0 -2
- package/dist/track/index.d.cts.map +1 -1
- package/dist/track/index.d.mts +0 -2
- package/dist/track/index.d.mts.map +1 -1
- package/dist/track/index.mjs +1 -2
- package/dist/track/lintrk.d.cts +0 -2
- package/dist/track/lintrk.d.cts.map +1 -1
- package/dist/track/lintrk.d.mts +0 -2
- package/dist/track/lintrk.d.mts.map +1 -1
- package/dist/track/oaiq.cjs +1 -2
- package/dist/track/oaiq.d.cts +0 -2
- package/dist/track/oaiq.d.cts.map +1 -1
- package/dist/track/oaiq.d.mts +0 -2
- package/dist/track/oaiq.d.mts.map +1 -1
- package/dist/track/oaiq.mjs +1 -2
- package/dist/track/once.cjs +1 -2
- package/dist/track/once.d.cts +0 -2
- package/dist/track/once.d.cts.map +1 -1
- package/dist/track/once.d.mts +0 -2
- package/dist/track/once.d.mts.map +1 -1
- package/dist/track/once.mjs +1 -2
- package/dist/track/rdt.cjs +1 -2
- package/dist/track/rdt.d.cts +0 -2
- package/dist/track/rdt.d.cts.map +1 -1
- package/dist/track/rdt.d.mts +0 -2
- package/dist/track/rdt.d.mts.map +1 -1
- package/dist/track/rdt.mjs +1 -2
- package/dist/track/types.d.cts +0 -2
- package/dist/track/types.d.cts.map +1 -1
- package/dist/track/types.d.mts +0 -2
- package/dist/track/types.d.mts.map +1 -1
- package/dist/track/uetq.cjs +1 -2
- package/dist/track/uetq.d.cts +0 -2
- package/dist/track/uetq.d.cts.map +1 -1
- package/dist/track/uetq.d.mts +0 -2
- package/dist/track/uetq.d.mts.map +1 -1
- package/dist/track/uetq.mjs +1 -2
- package/dist/utils/field.cjs +1 -2
- package/dist/utils/field.d.cts +0 -2
- package/dist/utils/field.d.cts.map +1 -1
- package/dist/utils/field.d.mts +0 -2
- package/dist/utils/field.d.mts.map +1 -1
- package/dist/utils/field.mjs +1 -2
- package/dist/utils/redact-url.cjs +1 -2
- package/dist/utils/redact-url.d.cts +0 -2
- package/dist/utils/redact-url.d.cts.map +1 -1
- package/dist/utils/redact-url.d.mts +0 -2
- package/dist/utils/redact-url.d.mts.map +1 -1
- package/dist/utils/redact-url.mjs +1 -2
- package/dist/utils/sha256.cjs +1 -2
- package/dist/utils/sha256.d.cts +0 -2
- package/dist/utils/sha256.d.cts.map +1 -1
- package/dist/utils/sha256.d.mts +0 -2
- package/dist/utils/sha256.d.mts.map +1 -1
- package/dist/utils/sha256.mjs +1 -2
- package/dist/visitor/id.cjs +1 -2
- package/dist/visitor/id.d.cts +0 -2
- package/dist/visitor/id.d.cts.map +1 -1
- package/dist/visitor/id.d.mts +0 -2
- package/dist/visitor/id.d.mts.map +1 -1
- package/dist/visitor/id.mjs +1 -2
- package/dist/visitor/index.cjs +1 -2
- package/dist/visitor/index.d.cts +0 -2
- package/dist/visitor/index.d.cts.map +1 -1
- package/dist/visitor/index.d.mts +0 -2
- package/dist/visitor/index.d.mts.map +1 -1
- package/dist/visitor/index.mjs +1 -2
- package/dist/visitor/types.d.cts +0 -2
- package/dist/visitor/types.d.cts.map +1 -1
- package/dist/visitor/types.d.mts +0 -2
- package/dist/visitor/types.d.mts.map +1 -1
- package/dist/web/index.cjs +2 -3
- package/dist/web/index.d.cts +0 -2
- package/dist/web/index.d.cts.map +1 -1
- package/dist/web/index.d.mts +0 -2
- package/dist/web/index.d.mts.map +1 -1
- package/dist/web/index.mjs +2 -3
- package/dist/web/page-key.cjs +1 -2
- package/dist/web/page-key.d.cts +0 -2
- package/dist/web/page-key.d.cts.map +1 -1
- package/dist/web/page-key.d.mts +0 -2
- package/dist/web/page-key.d.mts.map +1 -1
- package/dist/web/page-key.mjs +1 -2
- package/package.json +9 -9
package/dist/utils/sha256.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/utils/sha256.ts
|
|
3
3
|
/**
|
|
4
4
|
* SHA-256 hex digest, lowercase, computed in the browser with SubtleCrypto — the format every
|
|
5
5
|
* ad platform expects for a hashed identifier, and the same digest the server-side senders
|
|
@@ -13,7 +13,6 @@ async function sha256(value) {
|
|
|
13
13
|
const digest = await crypto.subtle.digest("SHA-256", bytes);
|
|
14
14
|
return Array.from(new Uint8Array(digest)).map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
exports.sha256 = sha256;
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=sha256.cjs.map
|
package/dist/utils/sha256.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/sha256.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* SHA-256 hex digest, lowercase, computed in the browser with SubtleCrypto — the format every
|
|
4
3
|
* ad platform expects for a hashed identifier, and the same digest the server-side senders
|
|
@@ -8,5 +7,4 @@
|
|
|
8
7
|
* (an insecure context), so callers decide what to send without the hash.
|
|
9
8
|
*/
|
|
10
9
|
export declare function sha256(value: string): Promise<string>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=sha256.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sha256.d.cts","names":[],"sources":["../../src/utils/sha256.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sha256.d.cts","names":[],"sources":["../../src/utils/sha256.ts"],"mappings":";;;;;;;;wBAQsB,OAAO,gBAAgB"}
|
package/dist/utils/sha256.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/utils/sha256.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* SHA-256 hex digest, lowercase, computed in the browser with SubtleCrypto — the format every
|
|
4
3
|
* ad platform expects for a hashed identifier, and the same digest the server-side senders
|
|
@@ -8,5 +7,4 @@
|
|
|
8
7
|
* (an insecure context), so callers decide what to send without the hash.
|
|
9
8
|
*/
|
|
10
9
|
export declare function sha256(value: string): Promise<string>;
|
|
11
|
-
//#endregion
|
|
12
10
|
//# sourceMappingURL=sha256.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sha256.d.mts","names":[],"sources":["../../src/utils/sha256.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sha256.d.mts","names":[],"sources":["../../src/utils/sha256.ts"],"mappings":";;;;;;;;wBAQsB,OAAO,gBAAgB"}
|
package/dist/utils/sha256.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils/sha256.ts
|
|
2
2
|
/**
|
|
3
3
|
* SHA-256 hex digest, lowercase, computed in the browser with SubtleCrypto — the format every
|
|
4
4
|
* ad platform expects for a hashed identifier, and the same digest the server-side senders
|
|
@@ -12,7 +12,6 @@ async function sha256(value) {
|
|
|
12
12
|
const digest = await crypto.subtle.digest("SHA-256", bytes);
|
|
13
13
|
return Array.from(new Uint8Array(digest)).map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { sha256 };
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=sha256.mjs.map
|
package/dist/visitor/id.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_setup_index = require("../setup/index.cjs");
|
|
3
3
|
const require_constants_storage = require("../constants/storage.cjs");
|
|
4
4
|
let uuid = require("uuid");
|
|
5
|
-
|
|
5
|
+
// src/visitor/id.ts
|
|
6
6
|
/**
|
|
7
7
|
* This visitor's id: generated here on the first visit (uuidv7) and kept in `config.storage`, so
|
|
8
8
|
* it exists the moment the page loads. The first events, and the beacon of a visit left within a
|
|
@@ -19,7 +19,6 @@ function visitorId() {
|
|
|
19
19
|
require_setup_index.config.storage.setItem(require_constants_storage.keys.visitor_id, id);
|
|
20
20
|
return id;
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
exports.visitorId = visitorId;
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=id.cjs.map
|
package/dist/visitor/id.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/visitor/id.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* This visitor's id: generated here on the first visit (uuidv7) and kept in `config.storage`, so
|
|
4
3
|
* it exists the moment the page loads. The first events, and the beacon of a visit left within a
|
|
@@ -9,5 +8,4 @@
|
|
|
9
8
|
* only creates them on `POST /visitors` rejects the events of a new visitor.
|
|
10
9
|
*/
|
|
11
10
|
export declare function visitorId(): string;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=id.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.d.cts","names":[],"sources":["../../src/visitor/id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"id.d.cts","names":[],"sources":["../../src/visitor/id.ts"],"mappings":";;;;;;;;;wBAagB"}
|
package/dist/visitor/id.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/visitor/id.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* This visitor's id: generated here on the first visit (uuidv7) and kept in `config.storage`, so
|
|
4
3
|
* it exists the moment the page loads. The first events, and the beacon of a visit left within a
|
|
@@ -9,5 +8,4 @@
|
|
|
9
8
|
* only creates them on `POST /visitors` rejects the events of a new visitor.
|
|
10
9
|
*/
|
|
11
10
|
export declare function visitorId(): string;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=id.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.d.mts","names":[],"sources":["../../src/visitor/id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"id.d.mts","names":[],"sources":["../../src/visitor/id.ts"],"mappings":";;;;;;;;;wBAagB"}
|
package/dist/visitor/id.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { config } from "../setup/index.mjs";
|
|
2
2
|
import { keys } from "../constants/storage.mjs";
|
|
3
3
|
import { v7 } from "uuid";
|
|
4
|
-
|
|
4
|
+
// src/visitor/id.ts
|
|
5
5
|
/**
|
|
6
6
|
* This visitor's id: generated here on the first visit (uuidv7) and kept in `config.storage`, so
|
|
7
7
|
* it exists the moment the page loads. The first events, and the beacon of a visit left within a
|
|
@@ -18,7 +18,6 @@ function visitorId() {
|
|
|
18
18
|
config.storage.setItem(keys.visitor_id, id);
|
|
19
19
|
return id;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { visitorId };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=id.mjs.map
|
package/dist/visitor/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_setup_index = require("../setup/index.cjs");
|
|
3
3
|
const require_visitor_id = require("./id.cjs");
|
|
4
4
|
const require_track_index = require("../track/index.cjs");
|
|
5
|
-
|
|
5
|
+
// src/visitor/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* The event that binds the visitor to the user who signed in on it: the server sets the visitor's
|
|
8
8
|
* `user_id` and `distinct_id` from its `user_id` property, in the transaction that stores the
|
|
@@ -46,7 +46,6 @@ function setVisitor(dto) {
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
exports.IDENTIFY_EVENT = IDENTIFY_EVENT;
|
|
51
50
|
exports.setVisitor = setVisitor;
|
|
52
51
|
exports.visitorId = require_visitor_id.visitorId;
|
package/dist/visitor/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UpdateVisitorDTO } from "../schema/index.cjs";
|
|
2
2
|
import { visitorId } from "./id.cjs";
|
|
3
|
-
//#region src/visitor/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The event that binds the visitor to the user who signed in on it: the server sets the visitor's
|
|
6
5
|
* `user_id` and `distinct_id` from its `user_id` property, in the transaction that stores the
|
|
@@ -22,6 +21,5 @@ export declare const IDENTIFY_EVENT = "identify";
|
|
|
22
21
|
* Synchronous and never throws: sign-in and sign-out must not fail on analytics.
|
|
23
22
|
*/
|
|
24
23
|
export declare function setVisitor(dto: Omit<UpdateVisitorDTO, 'tags'>): void;
|
|
25
|
-
//#endregion
|
|
26
24
|
export { visitorId };
|
|
27
25
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/visitor/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/visitor/index.ts"],"mappings":";;;;;;;qBAWa;;;;;;;;;;;;;;;wBAsBG,WAAW,KAAK,KAAK"}
|
package/dist/visitor/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UpdateVisitorDTO } from "../schema/index.mjs";
|
|
2
2
|
import { visitorId } from "./id.mjs";
|
|
3
|
-
//#region src/visitor/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* The event that binds the visitor to the user who signed in on it: the server sets the visitor's
|
|
6
5
|
* `user_id` and `distinct_id` from its `user_id` property, in the transaction that stores the
|
|
@@ -22,6 +21,5 @@ export declare const IDENTIFY_EVENT = "identify";
|
|
|
22
21
|
* Synchronous and never throws: sign-in and sign-out must not fail on analytics.
|
|
23
22
|
*/
|
|
24
23
|
export declare function setVisitor(dto: Omit<UpdateVisitorDTO, 'tags'>): void;
|
|
25
|
-
//#endregion
|
|
26
24
|
export { visitorId };
|
|
27
25
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/visitor/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/visitor/index.ts"],"mappings":";;;;;;;qBAWa;;;;;;;;;;;;;;;wBAsBG,WAAW,KAAK,KAAK"}
|
package/dist/visitor/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { config } from "../setup/index.mjs";
|
|
2
2
|
import { visitorId } from "./id.mjs";
|
|
3
3
|
import { track } from "../track/index.mjs";
|
|
4
|
-
|
|
4
|
+
// src/visitor/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* The event that binds the visitor to the user who signed in on it: the server sets the visitor's
|
|
7
7
|
* `user_id` and `distinct_id` from its `user_id` property, in the transaction that stores the
|
|
@@ -45,7 +45,6 @@ function setVisitor(dto) {
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { IDENTIFY_EVENT, setVisitor, visitorId };
|
|
50
49
|
|
|
51
50
|
//# sourceMappingURL=index.mjs.map
|
package/dist/visitor/types.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Environment, Platform, TrackTags } from "../track/types.cjs";
|
|
2
2
|
import { UpdateVisitorDTO } from "../schema/index.cjs";
|
|
3
|
-
//#region src/visitor/types.d.ts
|
|
4
3
|
export type VisitorProperties = Record<Lowercase<string>, string | number | boolean | null>;
|
|
5
4
|
export interface Visitor {
|
|
6
5
|
id: string;
|
|
@@ -22,5 +21,4 @@ export interface Visitor {
|
|
|
22
21
|
*/
|
|
23
22
|
export type VisitorIdentity = UpdateVisitorDTO & Pick<Visitor, 'distinct_id'>;
|
|
24
23
|
export type ThirdPartyUserSetter = (identity: VisitorIdentity) => void;
|
|
25
|
-
//#endregion
|
|
26
24
|
//# sourceMappingURL=types.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/visitor/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/visitor/types.ts"],"mappings":";;YAGY,oBAAoB,OAAO;iBAEtB;EACf;;;;;;;EAOA;EACA;EACA,UAAU;EACV,aAAa;EACb,MAAM;;;;;;YAOI,kBAAkB,mBAAmB,KAAK;YAE1C,wBAAwB,UAAU"}
|
package/dist/visitor/types.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Environment, Platform, TrackTags } from "../track/types.mjs";
|
|
2
2
|
import { UpdateVisitorDTO } from "../schema/index.mjs";
|
|
3
|
-
//#region src/visitor/types.d.ts
|
|
4
3
|
export type VisitorProperties = Record<Lowercase<string>, string | number | boolean | null>;
|
|
5
4
|
export interface Visitor {
|
|
6
5
|
id: string;
|
|
@@ -22,5 +21,4 @@ export interface Visitor {
|
|
|
22
21
|
*/
|
|
23
22
|
export type VisitorIdentity = UpdateVisitorDTO & Pick<Visitor, 'distinct_id'>;
|
|
24
23
|
export type ThirdPartyUserSetter = (identity: VisitorIdentity) => void;
|
|
25
|
-
//#endregion
|
|
26
24
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/visitor/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/visitor/types.ts"],"mappings":";;YAGY,oBAAoB,OAAO;iBAEtB;EACf;;;;;;;EAOA;EACA;EACA,UAAU;EACV,aAAa;EACb,MAAM;;;;;;YAOI,kBAAkB,mBAAmB,KAAK;YAE1C,wBAAwB,UAAU"}
|
package/dist/web/index.cjs
CHANGED
|
@@ -3,12 +3,12 @@ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
|
3
3
|
const require_setup_index = require("../setup/index.cjs");
|
|
4
4
|
const require_constants_storage = require("../constants/storage.cjs");
|
|
5
5
|
const require_link_index = require("../link/index.cjs");
|
|
6
|
-
const require_utils_redact_url = require("../utils/redact-url.cjs");
|
|
7
6
|
const require_es5$1 = require("../node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.cjs");
|
|
7
|
+
const require_utils_redact_url = require("../utils/redact-url.cjs");
|
|
8
8
|
const require_web_page_key = require("./page-key.cjs");
|
|
9
9
|
let uuid = require("uuid");
|
|
10
10
|
let cookie = require("cookie");
|
|
11
|
-
|
|
11
|
+
// src/web/index.ts
|
|
12
12
|
var import_es5 = /* @__PURE__ */ require_runtime.__toESM(require_es5$1.default, 1);
|
|
13
13
|
function randomUUID() {
|
|
14
14
|
return crypto.randomUUID ? crypto.randomUUID() : (0, uuid.v4)();
|
|
@@ -189,7 +189,6 @@ const storage = {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
|
-
//#endregion
|
|
193
192
|
exports.getDeviceId = getDeviceId;
|
|
194
193
|
exports.getPageLocation = getPageLocation;
|
|
195
194
|
exports.getPageReferrer = getPageReferrer;
|
package/dist/web/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TrackTags } from "../track/types.cjs";
|
|
2
2
|
import { Storage } from "../setup/index.cjs";
|
|
3
|
-
//#region src/web/index.d.ts
|
|
4
3
|
export declare function getDeviceId(): string;
|
|
5
4
|
/**
|
|
6
5
|
* The current page's URL as reported, without its credential parameters (`redactUrl`), so
|
|
@@ -11,5 +10,4 @@ export declare function getPageLocation(): string;
|
|
|
11
10
|
export declare function getPageReferrer(): string | undefined;
|
|
12
11
|
export declare function getTags(): Promise<TrackTags>;
|
|
13
12
|
export declare const storage: Storage;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/web/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/web/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/web/index.ts"],"mappings":";;wBAgBgB;;;;;wBA8CA;;wBAKA;wBAiCM,WAAO,QAAA;qBA4GhB,SAAS"}
|
package/dist/web/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TrackTags } from "../track/types.mjs";
|
|
2
2
|
import { Storage } from "../setup/index.mjs";
|
|
3
|
-
//#region src/web/index.d.ts
|
|
4
3
|
export declare function getDeviceId(): string;
|
|
5
4
|
/**
|
|
6
5
|
* The current page's URL as reported, without its credential parameters (`redactUrl`), so
|
|
@@ -11,5 +10,4 @@ export declare function getPageLocation(): string;
|
|
|
11
10
|
export declare function getPageReferrer(): string | undefined;
|
|
12
11
|
export declare function getTags(): Promise<TrackTags>;
|
|
13
12
|
export declare const storage: Storage;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/web/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/web/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/web/index.ts"],"mappings":";;wBAgBgB;;;;;wBA8CA;;wBAKA;wBAiCM,WAAO,QAAA;qBA4GhB,SAAS"}
|
package/dist/web/index.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import { __toESM } from "../_virtual/_rolldown/runtime.mjs";
|
|
|
2
2
|
import { cache, config } from "../setup/index.mjs";
|
|
3
3
|
import { keys } from "../constants/storage.mjs";
|
|
4
4
|
import { getLink } from "../link/index.mjs";
|
|
5
|
-
import { redactUrl } from "../utils/redact-url.mjs";
|
|
6
5
|
import { require_es5 } from "../node_modules/.pnpm/bowser@2.14.1/node_modules/bowser/es5.mjs";
|
|
6
|
+
import { redactUrl } from "../utils/redact-url.mjs";
|
|
7
7
|
import { getPageKey } from "./page-key.mjs";
|
|
8
8
|
import { v4 } from "uuid";
|
|
9
9
|
import { parseCookie } from "cookie";
|
|
10
|
-
|
|
10
|
+
// src/web/index.ts
|
|
11
11
|
var import_es5 = /* @__PURE__ */ __toESM(require_es5(), 1);
|
|
12
12
|
function randomUUID() {
|
|
13
13
|
return crypto.randomUUID ? crypto.randomUUID() : v4();
|
|
@@ -188,7 +188,6 @@ const storage = {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
};
|
|
191
|
-
//#endregion
|
|
192
191
|
export { getDeviceId, getPageLocation, getPageReferrer, getTags, storage };
|
|
193
192
|
|
|
194
193
|
//# sourceMappingURL=index.mjs.map
|
package/dist/web/page-key.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/web/page-key.ts
|
|
3
3
|
/**
|
|
4
4
|
* What makes two URLs "the same page" for page views and the page load id.
|
|
5
5
|
*
|
|
@@ -49,7 +49,6 @@ function getPageKey(pathname, search = "") {
|
|
|
49
49
|
const query = params.toString();
|
|
50
50
|
return query ? `${pathname}?${query}` : pathname;
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
exports.getPageKey = getPageKey;
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=page-key.cjs.map
|
package/dist/web/page-key.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/web/page-key.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* What makes two URLs "the same page" for page views and the page load id.
|
|
4
3
|
*
|
|
@@ -19,5 +18,4 @@
|
|
|
19
18
|
* that differ only in tracking decoration or parameter order map to one key.
|
|
20
19
|
*/
|
|
21
20
|
export declare function getPageKey(pathname: string, search?: string): string;
|
|
22
|
-
//#endregion
|
|
23
21
|
//# sourceMappingURL=page-key.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-key.d.cts","names":[],"sources":["../../src/web/page-key.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"page-key.d.cts","names":[],"sources":["../../src/web/page-key.ts"],"mappings":";;;;;;;;;;;;;;;;;;;wBA6CgB,WAAW,kBAAkB"}
|
package/dist/web/page-key.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/web/page-key.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* What makes two URLs "the same page" for page views and the page load id.
|
|
4
3
|
*
|
|
@@ -19,5 +18,4 @@
|
|
|
19
18
|
* that differ only in tracking decoration or parameter order map to one key.
|
|
20
19
|
*/
|
|
21
20
|
export declare function getPageKey(pathname: string, search?: string): string;
|
|
22
|
-
//#endregion
|
|
23
21
|
//# sourceMappingURL=page-key.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-key.d.mts","names":[],"sources":["../../src/web/page-key.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"page-key.d.mts","names":[],"sources":["../../src/web/page-key.ts"],"mappings":";;;;;;;;;;;;;;;;;;;wBA6CgB,WAAW,kBAAkB"}
|
package/dist/web/page-key.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/web/page-key.ts
|
|
2
2
|
/**
|
|
3
3
|
* What makes two URLs "the same page" for page views and the page load id.
|
|
4
4
|
*
|
|
@@ -48,7 +48,6 @@ function getPageKey(pathname, search = "") {
|
|
|
48
48
|
const query = params.toString();
|
|
49
49
|
return query ? `${pathname}?${query}` : pathname;
|
|
50
50
|
}
|
|
51
|
-
//#endregion
|
|
52
51
|
export { getPageKey };
|
|
53
52
|
|
|
54
53
|
//# sourceMappingURL=page-key.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shware/analytics",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"access": "public"
|
|
157
157
|
},
|
|
158
158
|
"dependencies": {
|
|
159
|
-
"@shware/utils": "^2.0.
|
|
159
|
+
"@shware/utils": "^2.0.1",
|
|
160
160
|
"capi-param-builder-nodejs": "~1.3.2",
|
|
161
161
|
"cookie": "^2.0.1",
|
|
162
162
|
"uuid": "^14.0.3",
|
|
@@ -180,9 +180,9 @@
|
|
|
180
180
|
"zod": "^4.6.7"
|
|
181
181
|
},
|
|
182
182
|
"peerDependencies": {
|
|
183
|
-
"@react-native-firebase/analytics": "^26.4.
|
|
184
|
-
"@tanstack/react-router": "^1.170.
|
|
185
|
-
"@tanstack/react-start": "^1.
|
|
183
|
+
"@react-native-firebase/analytics": "^26.4.1",
|
|
184
|
+
"@tanstack/react-router": "^1.170.46",
|
|
185
|
+
"@tanstack/react-start": "^1.169.4",
|
|
186
186
|
"expo-application": "^57.0.3 || ^58.0.0",
|
|
187
187
|
"expo-clipboard": "^57.0.2 || ^58.0.0",
|
|
188
188
|
"expo-crypto": "^57.0.3 || ^58.0.0",
|
|
@@ -191,12 +191,12 @@
|
|
|
191
191
|
"expo-sqlite": "^57.0.3 || ^58.0.0",
|
|
192
192
|
"expo-tracking-transparency": "^57.0.2 || ^58.0.0",
|
|
193
193
|
"facebook-nodejs-business-sdk": "^24.0.1",
|
|
194
|
-
"next": "^16.3
|
|
195
|
-
"posthog-js": "^1.
|
|
196
|
-
"react": "^19.3.
|
|
194
|
+
"next": "^16.4.3",
|
|
195
|
+
"posthog-js": "^1.438.21",
|
|
196
|
+
"react": "^19.3.1",
|
|
197
197
|
"react-native": "^0.87.1 || ^0.88.0",
|
|
198
198
|
"react-native-fbsdk-next": "^13.4.3",
|
|
199
|
-
"react-router": "^8.
|
|
199
|
+
"react-router": "^8.5.0",
|
|
200
200
|
"zod": "^4.6.5"
|
|
201
201
|
},
|
|
202
202
|
"peerDependenciesMeta": {
|