@shware/analytics 13.1.0 → 14.0.0
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/README.md +12 -0
- 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 +7 -2
- package/dist/feedback/index.cjs.map +1 -1
- package/dist/feedback/index.d.cts +6 -2
- package/dist/feedback/index.d.cts.map +1 -1
- package/dist/feedback/index.d.mts +6 -2
- package/dist/feedback/index.d.mts.map +1 -1
- package/dist/feedback/index.mjs +7 -2
- package/dist/feedback/index.mjs.map +1 -1
- 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 +9 -3
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +1 -2
- package/dist/schema/index.d.cts.map +1 -1
- package/dist/schema/index.d.mts +1 -2
- package/dist/schema/index.d.mts.map +1 -1
- package/dist/schema/index.mjs +9 -3
- package/dist/schema/index.mjs.map +1 -1
- 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/README.md
CHANGED
|
@@ -304,6 +304,18 @@ the events are the visitor's record. The server:
|
|
|
304
304
|
Deploy the server first: a server that only creates visitors on `POST /visitors` rejects the
|
|
305
305
|
events of a new visitor from an 11.0 client (the foreign key fails).
|
|
306
306
|
|
|
307
|
+
## Feedback
|
|
308
|
+
|
|
309
|
+
`sendFeedback(dto)` POSTs `{ name, email, message, turnstileToken }` to `<endpoint>/feedback`;
|
|
310
|
+
`createFeedbackSchema` reads it on the server, trimming and lower-casing `email`. The endpoint is an
|
|
311
|
+
unauthenticated free-text write, so a Cloudflare Turnstile token is required, as it is on
|
|
312
|
+
`@shware/security`'s `sendEmailVerificationCode`: render the widget in the form, pass its token as
|
|
313
|
+
`turnstileToken`, and verify it server-side against Cloudflare's `siteverify` before storing the
|
|
314
|
+
row, answering a rejected token as `@shware/security` does (`400 INVALID_ARGUMENT`, reason
|
|
315
|
+
`TURNSTILE_VERIFICATION_FAILED`). The token is single-use — Turnstile spends it at verification —
|
|
316
|
+
so reset the widget after every submit, whether it succeeded or failed. The request is not
|
|
317
|
+
retried: it has no deduplication key, and a retry would carry a spent token.
|
|
318
|
+
|
|
307
319
|
## Sessions and attribution
|
|
308
320
|
|
|
309
321
|
How the events this SDK sends are meant to be read on the server side, for attribution. Three
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -20,6 +20,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
|
-
//#endregion
|
|
24
23
|
exports.__commonJSMin = __commonJSMin;
|
|
25
24
|
exports.__toESM = __toESM;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -20,5 +20,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
20
20
|
value: mod,
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
|
-
//#endregion
|
|
24
23
|
export { __commonJSMin, __toESM };
|
package/dist/ads/google.cjs
CHANGED
|
@@ -3,7 +3,7 @@ const require_attribution_classify = require("../attribution/classify.cjs");
|
|
|
3
3
|
require("../attribution/index.cjs");
|
|
4
4
|
const require_ads_time = require("./time.cjs");
|
|
5
5
|
let zod_mini = require("zod/mini");
|
|
6
|
-
|
|
6
|
+
// src/ads/google.ts
|
|
7
7
|
/**
|
|
8
8
|
* Google Ads delivery pushed by a Google Ads script: the script runs inside the ad account on
|
|
9
9
|
* Google's schedule, reads the hourly report with `AdsApp.search` and posts it to the host, which
|
|
@@ -121,7 +121,6 @@ function parseGoogleAdsScriptReport(body) {
|
|
|
121
121
|
};
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
//#endregion
|
|
125
124
|
exports.GoogleAdsReportError = GoogleAdsReportError;
|
|
126
125
|
exports.parseGoogleAdsScriptReport = parseGoogleAdsScriptReport;
|
|
127
126
|
|
package/dist/ads/google.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AdPerformanceRow } from "./types.cjs";
|
|
2
2
|
import { infer as __Infer } from "zod/mini";
|
|
3
|
-
//#region src/ads/google.d.ts
|
|
4
3
|
declare const reportSchema: import("zod/mini").ZodMiniObject<{
|
|
5
4
|
account_id: import("zod/mini").ZodMiniString<string>;
|
|
6
5
|
currency: import("zod/mini").ZodMiniString<string>;
|
|
@@ -39,6 +38,5 @@ export declare class GoogleAdsReportError extends Error {
|
|
|
39
38
|
* @throws GoogleAdsReportError when the body is not a report.
|
|
40
39
|
*/
|
|
41
40
|
export declare function parseGoogleAdsScriptReport(body: unknown): AdPerformanceRow[];
|
|
42
|
-
//#endregion
|
|
43
41
|
export {};
|
|
44
42
|
//# sourceMappingURL=google.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.cts","names":["Infer"],"sources":["../../src/ads/google.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"google.d.cts","names":["Infer"],"sources":["../../src/ads/google.ts"],"mappings":";;cAoDM,iCAAY;;;;;;;;;;;;;;;;;yBAOhB;;YAGU,wBAAwBA,eAAa;;qBAGpC,6BAA6B;EACxC,YAAY;;;;;;;;;;;;;;;wBA0CE,2BAA2B,gBAAgB"}
|
package/dist/ads/google.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AdPerformanceRow } from "./types.mjs";
|
|
2
2
|
import { infer as __Infer } from "zod/mini";
|
|
3
|
-
//#region src/ads/google.d.ts
|
|
4
3
|
declare const reportSchema: import("zod/mini").ZodMiniObject<{
|
|
5
4
|
account_id: import("zod/mini").ZodMiniString<string>;
|
|
6
5
|
currency: import("zod/mini").ZodMiniString<string>;
|
|
@@ -39,6 +38,5 @@ export declare class GoogleAdsReportError extends Error {
|
|
|
39
38
|
* @throws GoogleAdsReportError when the body is not a report.
|
|
40
39
|
*/
|
|
41
40
|
export declare function parseGoogleAdsScriptReport(body: unknown): AdPerformanceRow[];
|
|
42
|
-
//#endregion
|
|
43
41
|
export {};
|
|
44
42
|
//# sourceMappingURL=google.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.mts","names":["Infer"],"sources":["../../src/ads/google.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"google.d.mts","names":["Infer"],"sources":["../../src/ads/google.ts"],"mappings":";;cAoDM,iCAAY;;;;;;;;;;;;;;;;;yBAOhB;;YAGU,wBAAwBA,eAAa;;qBAGpC,6BAA6B;EACxC,YAAY;;;;;;;;;;;;;;;wBA0CE,2BAA2B,gBAAgB"}
|
package/dist/ads/google.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { channelGroupOf } from "../attribution/classify.mjs";
|
|
|
2
2
|
import "../attribution/index.mjs";
|
|
3
3
|
import { zonedHourToUtc } from "./time.mjs";
|
|
4
4
|
import { array, nullable, number, object, optional, safeParse, string, union } from "zod/mini";
|
|
5
|
-
|
|
5
|
+
// src/ads/google.ts
|
|
6
6
|
/**
|
|
7
7
|
* Google Ads delivery pushed by a Google Ads script: the script runs inside the ad account on
|
|
8
8
|
* Google's schedule, reads the hourly report with `AdsApp.search` and posts it to the host, which
|
|
@@ -120,7 +120,6 @@ function parseGoogleAdsScriptReport(body) {
|
|
|
120
120
|
};
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
//#endregion
|
|
124
123
|
export { GoogleAdsReportError, parseGoogleAdsScriptReport };
|
|
125
124
|
|
|
126
125
|
//# sourceMappingURL=google.mjs.map
|
package/dist/ads/meta.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const require_ads_time = require("./time.cjs");
|
|
|
5
5
|
let _shware_utils = require("@shware/utils");
|
|
6
6
|
let zod_mini = require("zod/mini");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
|
-
|
|
8
|
+
// src/ads/meta.ts
|
|
9
9
|
/**
|
|
10
10
|
* Meta ad delivery through the Marketing API's Insights endpoint, over plain `fetch`: one row per
|
|
11
11
|
* ad and hour, in the attribution vocabulary (see `AdPerformanceRow`).
|
|
@@ -314,7 +314,6 @@ async function fetchMetaAdPerformanceHistory(options) {
|
|
|
314
314
|
return spreadDay(toRow(insight, require_ads_time.zonedHourToUtc(insight.date_start, 0, account.timezone_name), account.id, account.currency, actionType), insight.date_start, account.timezone_name);
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
//#endregion
|
|
318
317
|
exports.MetaAdsApiError = MetaAdsApiError;
|
|
319
318
|
exports.fetchMetaAdPerformance = fetchMetaAdPerformance;
|
|
320
319
|
exports.fetchMetaAdPerformanceHistory = fetchMetaAdPerformanceHistory;
|
package/dist/ads/meta.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AdPerformanceRow, ReportDate } from "./types.cjs";
|
|
2
|
-
//#region src/ads/meta.d.ts
|
|
3
2
|
export interface MetaAdPerformanceOptions {
|
|
4
3
|
/** A token with `ads_read` on the account. */
|
|
5
4
|
accessToken: string;
|
|
@@ -64,5 +63,4 @@ export declare function fetchMetaAdPerformance(options: MetaAdPerformanceOptions
|
|
|
64
63
|
* `fetchMetaAdPerformance`), or `since` is past the 37 months Meta keeps at all.
|
|
65
64
|
*/
|
|
66
65
|
export declare function fetchMetaAdPerformanceHistory(options: MetaAdPerformanceOptions): Promise<AdPerformanceRow[]>;
|
|
67
|
-
//#endregion
|
|
68
66
|
//# sourceMappingURL=meta.d.cts.map
|
package/dist/ads/meta.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.cts","names":[],"sources":["../../src/ads/meta.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.cts","names":[],"sources":["../../src/ads/meta.ts"],"mappings":";iBAiFiB;;EAEf;;EAEA;;EAEA,OAAO;;EAEP,OAAO;;;;;EAKP;;;;;EAKA;;;qBAIW,wBAAwB;WAGxB;WACA;WACA;WACA;EALX,YACE,iBACS,gBACA,0BACA,6BACA;;;;;;wBAiKG,OAAO,eAAe;;;;;;;;;;;;;;;;wBA4GhB,uBACpB,SAAS,2BACR,QAAQ;;;;;;;;;;;;;;;wBA2CW,8BACpB,SAAS,2BACR,QAAQ"}
|
package/dist/ads/meta.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AdPerformanceRow, ReportDate } from "./types.mjs";
|
|
2
|
-
//#region src/ads/meta.d.ts
|
|
3
2
|
export interface MetaAdPerformanceOptions {
|
|
4
3
|
/** A token with `ads_read` on the account. */
|
|
5
4
|
accessToken: string;
|
|
@@ -64,5 +63,4 @@ export declare function fetchMetaAdPerformance(options: MetaAdPerformanceOptions
|
|
|
64
63
|
* `fetchMetaAdPerformance`), or `since` is past the 37 months Meta keeps at all.
|
|
65
64
|
*/
|
|
66
65
|
export declare function fetchMetaAdPerformanceHistory(options: MetaAdPerformanceOptions): Promise<AdPerformanceRow[]>;
|
|
67
|
-
//#endregion
|
|
68
66
|
//# sourceMappingURL=meta.d.mts.map
|
package/dist/ads/meta.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.mts","names":[],"sources":["../../src/ads/meta.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"meta.d.mts","names":[],"sources":["../../src/ads/meta.ts"],"mappings":";iBAiFiB;;EAEf;;EAEA;;EAEA,OAAO;;EAEP,OAAO;;;;;EAKP;;;;;EAKA;;;qBAIW,wBAAwB;WAGxB;WACA;WACA;WACA;EALX,YACE,iBACS,gBACA,0BACA,6BACA;;;;;;wBAiKG,OAAO,eAAe;;;;;;;;;;;;;;;;wBA4GhB,uBACpB,SAAS,2BACR,QAAQ;;;;;;;;;;;;;;;wBA2CW,8BACpB,SAAS,2BACR,QAAQ"}
|
package/dist/ads/meta.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { addDays, addMonths, todayIn, zonedHourToUtc } from "./time.mjs";
|
|
|
4
4
|
import { fetch } from "@shware/utils";
|
|
5
5
|
import { array, number, object, optional, safeParse, string } from "zod/mini";
|
|
6
6
|
import { createHmac } from "node:crypto";
|
|
7
|
-
|
|
7
|
+
// src/ads/meta.ts
|
|
8
8
|
/**
|
|
9
9
|
* Meta ad delivery through the Marketing API's Insights endpoint, over plain `fetch`: one row per
|
|
10
10
|
* ad and hour, in the attribution vocabulary (see `AdPerformanceRow`).
|
|
@@ -313,7 +313,6 @@ async function fetchMetaAdPerformanceHistory(options) {
|
|
|
313
313
|
return spreadDay(toRow(insight, zonedHourToUtc(insight.date_start, 0, account.timezone_name), account.id, account.currency, actionType), insight.date_start, account.timezone_name);
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
|
-
//#endregion
|
|
317
316
|
export { MetaAdsApiError, fetchMetaAdPerformance, fetchMetaAdPerformanceHistory, spread };
|
|
318
317
|
|
|
319
318
|
//# sourceMappingURL=meta.mjs.map
|
package/dist/ads/time.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/ads/time.ts
|
|
3
3
|
/** The zone's offset from UTC at an instant, in milliseconds (local minus UTC). */
|
|
4
4
|
function offsetAt(instant, timeZone) {
|
|
5
5
|
const parts = new Intl.DateTimeFormat("en-US", {
|
|
@@ -50,7 +50,6 @@ function addMonths(date, months) {
|
|
|
50
50
|
const last = new Date(Date.UTC(target.getUTCFullYear(), target.getUTCMonth() + 1, 0)).getUTCDate();
|
|
51
51
|
return format(target.getUTCFullYear(), target.getUTCMonth() + 1, Math.min(day, last));
|
|
52
52
|
}
|
|
53
|
-
//#endregion
|
|
54
53
|
exports.addDays = addDays;
|
|
55
54
|
exports.addMonths = addMonths;
|
|
56
55
|
exports.todayIn = todayIn;
|
package/dist/ads/time.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReportDate } from "./types.cjs";
|
|
2
|
-
//#region src/ads/time.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The UTC instant of `hour:00` on `date` (`YYYY-MM-DD`) in an IANA time zone. An hour skipped by
|
|
5
4
|
* a daylight-saving jump resolves to the instant after the jump; a repeated hour to its first
|
|
@@ -13,5 +12,4 @@ export declare function todayIn(timeZone: string, now?: Date): ReportDate;
|
|
|
13
12
|
export declare function addDays(date: string, days: number): ReportDate;
|
|
14
13
|
/** `date` moved by whole months, the day clamped to the target month's last (03-31 − 1 → 02-28). */
|
|
15
14
|
export declare function addMonths(date: string, months: number): ReportDate;
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=time.d.cts.map
|
package/dist/ads/time.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.cts","names":[],"sources":["../../src/ads/time.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"time.d.cts","names":[],"sources":["../../src/ads/time.ts"],"mappings":";;;;;;;wBAiCgB,eAAe,cAAc,cAAc,mBAAmB;;wBAmB9D,QAAQ,kBAAkB,MAAG,OAAgB;;wBAM7C,QAAQ,cAAc,eAAe;;wBAOrC,UAAU,cAAc,iBAAiB"}
|
package/dist/ads/time.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReportDate } from "./types.mjs";
|
|
2
|
-
//#region src/ads/time.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* The UTC instant of `hour:00` on `date` (`YYYY-MM-DD`) in an IANA time zone. An hour skipped by
|
|
5
4
|
* a daylight-saving jump resolves to the instant after the jump; a repeated hour to its first
|
|
@@ -13,5 +12,4 @@ export declare function todayIn(timeZone: string, now?: Date): ReportDate;
|
|
|
13
12
|
export declare function addDays(date: string, days: number): ReportDate;
|
|
14
13
|
/** `date` moved by whole months, the day clamped to the target month's last (03-31 − 1 → 02-28). */
|
|
15
14
|
export declare function addMonths(date: string, months: number): ReportDate;
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=time.d.mts.map
|
package/dist/ads/time.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.mts","names":[],"sources":["../../src/ads/time.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"time.d.mts","names":[],"sources":["../../src/ads/time.ts"],"mappings":";;;;;;;wBAiCgB,eAAe,cAAc,cAAc,mBAAmB;;wBAmB9D,QAAQ,kBAAkB,MAAG,OAAgB;;wBAM7C,QAAQ,cAAc,eAAe;;wBAOrC,UAAU,cAAc,iBAAiB"}
|
package/dist/ads/time.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/ads/time.ts
|
|
2
2
|
/** The zone's offset from UTC at an instant, in milliseconds (local minus UTC). */
|
|
3
3
|
function offsetAt(instant, timeZone) {
|
|
4
4
|
const parts = new Intl.DateTimeFormat("en-US", {
|
|
@@ -49,7 +49,6 @@ function addMonths(date, months) {
|
|
|
49
49
|
const last = new Date(Date.UTC(target.getUTCFullYear(), target.getUTCMonth() + 1, 0)).getUTCDate();
|
|
50
50
|
return format(target.getUTCFullYear(), target.getUTCMonth() + 1, Math.min(day, last));
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { addDays, addMonths, todayIn, zonedHourToUtc };
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=time.mjs.map
|
package/dist/ads/types.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChannelGroup } from "../attribution/vocabulary.cjs";
|
|
2
|
-
//#region src/ads/types.d.ts
|
|
3
2
|
/** The ad platforms whose reporting APIs this module reads. */
|
|
4
3
|
export type AdPlatform = 'meta' | 'google';
|
|
5
4
|
/**
|
|
@@ -57,5 +56,4 @@ export interface AdPerformanceRow {
|
|
|
57
56
|
}
|
|
58
57
|
/** A calendar date, `YYYY-MM-DD`, in the ad account's own time zone. */
|
|
59
58
|
export type ReportDate = `${number}-${number}-${number}`;
|
|
60
|
-
//#endregion
|
|
61
59
|
//# sourceMappingURL=types.d.cts.map
|
package/dist/ads/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/ads/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../src/ads/types.ts"],"mappings":";;YAGY;;;;;;;;;;;;;;iBAeK;;EAEf,UAAU;;EAEV;EACA;EACA;;EAEA;EACA;;;;;EAKA;EACA;EACA;EACA;EACA,eAAe;;EAEf;;EAEA;EACA;EACA;;;;;EAKA;;;;;EAKA;EACA;;EAEA;EACA;;;YAIU"}
|
package/dist/ads/types.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChannelGroup } from "../attribution/vocabulary.mjs";
|
|
2
|
-
//#region src/ads/types.d.ts
|
|
3
2
|
/** The ad platforms whose reporting APIs this module reads. */
|
|
4
3
|
export type AdPlatform = 'meta' | 'google';
|
|
5
4
|
/**
|
|
@@ -57,5 +56,4 @@ export interface AdPerformanceRow {
|
|
|
57
56
|
}
|
|
58
57
|
/** A calendar date, `YYYY-MM-DD`, in the ad account's own time zone. */
|
|
59
58
|
export type ReportDate = `${number}-${number}-${number}`;
|
|
60
|
-
//#endregion
|
|
61
59
|
//# sourceMappingURL=types.d.mts.map
|
package/dist/ads/types.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/ads/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/ads/types.ts"],"mappings":";;YAGY;;;;;;;;;;;;;;iBAeK;;EAEf,UAAU;;EAEV;EACA;EACA;;EAEA;EACA;;;;;EAKA;EACA;EACA;EACA;EACA,eAAe;;EAEf;;EAEA;EACA;EACA;;;;;EAKA;;;;;EAKA;EACA;;EAEA;EACA;;;YAIU"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_attribution_vocabulary = require("./vocabulary.cjs");
|
|
3
|
-
|
|
3
|
+
// src/attribution/classify.ts
|
|
4
4
|
const metaPlacements = new Set(require_attribution_vocabulary.META_PLACEMENTS);
|
|
5
5
|
/** The groups no one paid for: a campaign rule landing in one of them ranks with a referrer. */
|
|
6
6
|
const ORGANIC_GROUPS = /* @__PURE__ */ new Set([
|
|
@@ -209,7 +209,6 @@ function classifyTouch(tags, options = {}) {
|
|
|
209
209
|
priority: ranked.length > 0 ? Math.min(...ranked) : referred ? require_attribution_vocabulary.TOUCH_PRIORITY.referrer : null
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
//#endregion
|
|
213
212
|
exports.channelGroupOf = channelGroupOf;
|
|
214
213
|
exports.classifyTouch = classifyTouch;
|
|
215
214
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TrackTags } from "../track/types.cjs";
|
|
2
2
|
import { ChannelGroup } from "./vocabulary.cjs";
|
|
3
|
-
//#region src/attribution/classify.d.ts
|
|
4
3
|
/** What a session's tags say about how it arrived: the touch, as the session row stores it. */
|
|
5
4
|
export interface Touch {
|
|
6
5
|
/** The source, as GA calls it: a `Channel`, a `utm_source` outside the list, a referring host, or `(direct)`. */
|
|
@@ -66,5 +65,4 @@ export declare function channelGroupOf(channel: string, medium: string): Channel
|
|
|
66
65
|
* matched too, the stronger of the two tiers holds.
|
|
67
66
|
*/
|
|
68
67
|
export declare function classifyTouch(tags: TrackTags, options?: ClassifyOptions): Touch;
|
|
69
|
-
//#endregion
|
|
70
68
|
//# sourceMappingURL=classify.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.cts","names":[],"sources":["../../src/attribution/classify.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"classify.d.cts","names":[],"sources":["../../src/attribution/classify.ts"],"mappings":";;;iBAsBiB;;EAEf;;EAEA;;EAEA,eAAe;;EAEf;;EAEA;;;YAIU,eAAe,KAAK;;;;;;;;YASpB,aAAa,MAAM,cAAc;iBAE5B;;;;;;EAMf,oBAAoB;;EAEpB,iBAAiB;;;;;;;;;;wBAuKH,eAAe,iBAAiB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;wBA6CjD,cAAc,MAAM,WAAW,UAAS,kBAAuB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TrackTags } from "../track/types.mjs";
|
|
2
2
|
import { ChannelGroup } from "./vocabulary.mjs";
|
|
3
|
-
//#region src/attribution/classify.d.ts
|
|
4
3
|
/** What a session's tags say about how it arrived: the touch, as the session row stores it. */
|
|
5
4
|
export interface Touch {
|
|
6
5
|
/** The source, as GA calls it: a `Channel`, a `utm_source` outside the list, a referring host, or `(direct)`. */
|
|
@@ -66,5 +65,4 @@ export declare function channelGroupOf(channel: string, medium: string): Channel
|
|
|
66
65
|
* matched too, the stronger of the two tiers holds.
|
|
67
66
|
*/
|
|
68
67
|
export declare function classifyTouch(tags: TrackTags, options?: ClassifyOptions): Touch;
|
|
69
|
-
//#endregion
|
|
70
68
|
//# sourceMappingURL=classify.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.mts","names":[],"sources":["../../src/attribution/classify.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"classify.d.mts","names":[],"sources":["../../src/attribution/classify.ts"],"mappings":";;;iBAsBiB;;EAEf;;EAEA;;EAEA,eAAe;;EAEf;;EAEA;;;YAIU,eAAe,KAAK;;;;;;;;YASpB,aAAa,MAAM,cAAc;iBAE5B;;;;;;EAMf,oBAAoB;;EAEpB,iBAAiB;;;;;;;;;;wBAuKH,eAAe,iBAAiB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;wBA6CjD,cAAc,MAAM,WAAW,UAAS,kBAAuB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AD_LANDING_PAGE, ANDROID_APP_HOSTS, CLICK_ID_CHANNELS, DISPLAY_MEDIUMS, EMAIL_MEDIUM, EMAIL_MEDIUMS, META_PLACEMENTS, PAID_MEDIUM, PUSH_MEDIUM, REFERRERS_NOT_A_TOUCH, REFERRER_SITES, SOURCE_ALIASES, TOUCH_PRIORITY } from "./vocabulary.mjs";
|
|
2
|
-
|
|
2
|
+
// src/attribution/classify.ts
|
|
3
3
|
const metaPlacements = new Set(META_PLACEMENTS);
|
|
4
4
|
/** The groups no one paid for: a campaign rule landing in one of them ranks with a referrer. */
|
|
5
5
|
const ORGANIC_GROUPS = /* @__PURE__ */ new Set([
|
|
@@ -208,7 +208,6 @@ function classifyTouch(tags, options = {}) {
|
|
|
208
208
|
priority: ranked.length > 0 ? Math.min(...ranked) : referred ? TOUCH_PRIORITY.referrer : null
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
|
-
//#endregion
|
|
212
211
|
export { channelGroupOf, classifyTouch };
|
|
213
212
|
|
|
214
213
|
//# sourceMappingURL=classify.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/attribution/vocabulary.ts
|
|
3
3
|
/**
|
|
4
4
|
* The vocabulary attribution is built from, shared by every product's `session` table and by the
|
|
5
5
|
* dashboards that read it. Data for `classifyTouch` (./classify), which turns it into a channel;
|
|
@@ -646,7 +646,6 @@ const REPORTED_TOUCH_PRIORITY = {
|
|
|
646
646
|
survey: TOUCH_PRIORITY.claimed,
|
|
647
647
|
promo_code: TOUCH_PRIORITY.claimed
|
|
648
648
|
};
|
|
649
|
-
//#endregion
|
|
650
649
|
exports.AD_LANDING_PAGE = AD_LANDING_PAGE;
|
|
651
650
|
exports.ANDROID_APP_HOSTS = ANDROID_APP_HOSTS;
|
|
652
651
|
exports.CHANNELS = CHANNELS;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/attribution/vocabulary.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The vocabulary attribution is built from, shared by every product's `session` table and by the
|
|
4
3
|
* dashboards that read it. Data for `classifyTouch` (./classify), which turns it into a channel;
|
|
@@ -193,5 +192,4 @@ export declare const REPORTED_TOUCH_PRIORITY: {
|
|
|
193
192
|
readonly survey: 3;
|
|
194
193
|
readonly promo_code: 3;
|
|
195
194
|
};
|
|
196
|
-
//#endregion
|
|
197
195
|
//# sourceMappingURL=vocabulary.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vocabulary.d.cts","names":[],"sources":["../../src/attribution/vocabulary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vocabulary.d.cts","names":[],"sources":["../../src/attribution/vocabulary.ts"],"mappings":";;;;;;;qBAUa;;qBAEA;;qBAEA;;qBAGA;;;;;;;;;;;;;;;;;;;;YAgED,kBAAkB;;qBAGjB;;;;;;;YAqBD,uBAAuB;;qBAGtB;WACP;WACA;WACA;WACC;WACD;WACM;WACC;WACL;WACG;WACK;WACH;WACF;WACM;WACI;WACX;WACS;WACJ;WACE;WACC;WACF;WACF;;;;;;;;;;;;;;;;;qBAkBD;;;;;;qBAyBA,iBAAe;YAEhB;;;;;;;;;qBAUC,qDAAc,uCAAA,mCAAA,mCAAA,oCAAA,iCAAA,qCAAA,mCAAA,iCAAA,iCAAA,oCAAA,kCAAA,kCAAA,qCAAA,uCAAA,0CAAA,2CAAA,0CAAA,uCAAA,4CAAA,2CAAA,2CAAA,mCAAA,wCAAA,yCAAA,qCAAA,wCAAA,2CAAA,uCAAA,4CAAA,uCAAA,wCAAA,wCAAA,uCAAA,uCAAA,uCAAA,qCAAA,kCAAA,yCAAA,uCAAA,uCAAA,0CAAA,yCAAA,yCAAA,uCAAA;;;;;;;;qBAiEd,mBAAmB,SAAS;;;;;;;;;;;;;;qBAkC5B,iCAAqB,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA;;qBAwCrB,aAAW;;;;;;;;;;;;;;;;;qBAiBX;;;;qBA8CA;;qBAEA;;qBAEA,aAAW;;qBAEX,cAAY;;qBAGZ;YACD,sBAAsB;;;;;;;;qBASrB;YACD,4BAA4B;;;;;;;;;;;;;qBAc3B;;;;;WAKD;;WAEA;;WAEA;;WAED;;;qBAIE"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/attribution/vocabulary.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The vocabulary attribution is built from, shared by every product's `session` table and by the
|
|
4
3
|
* dashboards that read it. Data for `classifyTouch` (./classify), which turns it into a channel;
|
|
@@ -193,5 +192,4 @@ export declare const REPORTED_TOUCH_PRIORITY: {
|
|
|
193
192
|
readonly survey: 3;
|
|
194
193
|
readonly promo_code: 3;
|
|
195
194
|
};
|
|
196
|
-
//#endregion
|
|
197
195
|
//# sourceMappingURL=vocabulary.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vocabulary.d.mts","names":[],"sources":["../../src/attribution/vocabulary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"vocabulary.d.mts","names":[],"sources":["../../src/attribution/vocabulary.ts"],"mappings":";;;;;;;qBAUa;;qBAEA;;qBAEA;;qBAGA;;;;;;;;;;;;;;;;;;;;YAgED,kBAAkB;;qBAGjB;;;;;;;YAqBD,uBAAuB;;qBAGtB;WACP;WACA;WACA;WACC;WACD;WACM;WACC;WACL;WACG;WACK;WACH;WACF;WACM;WACI;WACX;WACS;WACJ;WACE;WACC;WACF;WACF;;;;;;;;;;;;;;;;;qBAkBD;;;;;;qBAyBA,iBAAe;YAEhB;;;;;;;;;qBAUC,qDAAc,uCAAA,mCAAA,mCAAA,oCAAA,iCAAA,qCAAA,mCAAA,iCAAA,iCAAA,oCAAA,kCAAA,kCAAA,qCAAA,uCAAA,0CAAA,2CAAA,0CAAA,uCAAA,4CAAA,2CAAA,2CAAA,mCAAA,wCAAA,yCAAA,qCAAA,wCAAA,2CAAA,uCAAA,4CAAA,uCAAA,wCAAA,wCAAA,uCAAA,uCAAA,uCAAA,qCAAA,kCAAA,yCAAA,uCAAA,uCAAA,0CAAA,yCAAA,yCAAA,uCAAA;;;;;;;;qBAiEd,mBAAmB,SAAS;;;;;;;;;;;;;;qBAkC5B,iCAAqB,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA,QAAA;;qBAwCrB,aAAW;;;;;;;;;;;;;;;;;qBAiBX;;;;qBA8CA;;qBAEA;;qBAEA,aAAW;;qBAEX,cAAY;;qBAGZ;YACD,sBAAsB;;;;;;;;qBASrB;YACD,4BAA4B;;;;;;;;;;;;;qBAc3B;;;;;WAKD;;WAEA;;WAEA;;WAED;;;qBAIE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/attribution/vocabulary.ts
|
|
2
2
|
/**
|
|
3
3
|
* The vocabulary attribution is built from, shared by every product's `session` table and by the
|
|
4
4
|
* dashboards that read it. Data for `classifyTouch` (./classify), which turns it into a channel;
|
|
@@ -645,7 +645,6 @@ const REPORTED_TOUCH_PRIORITY = {
|
|
|
645
645
|
survey: TOUCH_PRIORITY.claimed,
|
|
646
646
|
promo_code: TOUCH_PRIORITY.claimed
|
|
647
647
|
};
|
|
648
|
-
//#endregion
|
|
649
648
|
export { AD_LANDING_PAGE, ANDROID_APP_HOSTS, CHANNELS, CHANNEL_GROUPS, CLICK_ID_CHANNELS, DIRECT_CHANNEL, DISPLAY_MEDIUMS, EMAIL_MEDIUM, EMAIL_MEDIUMS, MEDIUM_NOT_SET, META_PLACEMENTS, NO_MEDIUM, PAID_MEDIUM, PUSH_MEDIUM, REFERRERS_NOT_A_TOUCH, REFERRER_SITES, REPORTED_TOUCH_KINDS, REPORTED_TOUCH_PRIORITY, SOURCE_ALIASES, TOUCH_PRIORITY, TOUCH_SOURCES };
|
|
650
649
|
|
|
651
650
|
//# sourceMappingURL=vocabulary.mjs.map
|
package/dist/bot/generic.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/bot/generic.ts
|
|
3
3
|
/**
|
|
4
4
|
* The generic bot pattern of isbot 5.2.2 (https://github.com/omrilotan/isbot, released into the
|
|
5
5
|
* public domain under the Unlicense), vendored so that `botOf` has no dependency. It says whether a
|
|
@@ -218,7 +218,6 @@ const GENERIC_BOT_PATTERNS = [
|
|
|
218
218
|
];
|
|
219
219
|
/** One case-insensitive expression; the parts use lookbehind, which every supported runtime has. */
|
|
220
220
|
const GENERIC_BOT = new RegExp(GENERIC_BOT_PATTERNS.join("|"), "i");
|
|
221
|
-
//#endregion
|
|
222
221
|
exports.GENERIC_BOT = GENERIC_BOT;
|
|
223
222
|
exports.GENERIC_BOT_PATTERNS = GENERIC_BOT_PATTERNS;
|
|
224
223
|
|
package/dist/bot/generic.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/bot/generic.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The generic bot pattern of isbot 5.2.2 (https://github.com/omrilotan/isbot, released into the
|
|
4
3
|
* public domain under the Unlicense), vendored so that `botOf` has no dependency. It says whether a
|
|
@@ -9,5 +8,4 @@
|
|
|
9
8
|
export declare const GENERIC_BOT_PATTERNS: readonly string[];
|
|
10
9
|
/** One case-insensitive expression; the parts use lookbehind, which every supported runtime has. */
|
|
11
10
|
export declare const GENERIC_BOT: RegExp;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=generic.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic.d.cts","names":[],"sources":["../../src/bot/generic.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generic.d.cts","names":[],"sources":["../../src/bot/generic.ts"],"mappings":";;;;;;;qBAOa;;qBAoNA,aAAW"}
|
package/dist/bot/generic.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/bot/generic.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The generic bot pattern of isbot 5.2.2 (https://github.com/omrilotan/isbot, released into the
|
|
4
3
|
* public domain under the Unlicense), vendored so that `botOf` has no dependency. It says whether a
|
|
@@ -9,5 +8,4 @@
|
|
|
9
8
|
export declare const GENERIC_BOT_PATTERNS: readonly string[];
|
|
10
9
|
/** One case-insensitive expression; the parts use lookbehind, which every supported runtime has. */
|
|
11
10
|
export declare const GENERIC_BOT: RegExp;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=generic.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generic.d.mts","names":[],"sources":["../../src/bot/generic.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"generic.d.mts","names":[],"sources":["../../src/bot/generic.ts"],"mappings":";;;;;;;qBAOa;;qBAoNA,aAAW"}
|
package/dist/bot/generic.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/bot/generic.ts
|
|
2
2
|
/**
|
|
3
3
|
* The generic bot pattern of isbot 5.2.2 (https://github.com/omrilotan/isbot, released into the
|
|
4
4
|
* public domain under the Unlicense), vendored so that `botOf` has no dependency. It says whether a
|
|
@@ -217,7 +217,6 @@ const GENERIC_BOT_PATTERNS = [
|
|
|
217
217
|
];
|
|
218
218
|
/** One case-insensitive expression; the parts use lookbehind, which every supported runtime has. */
|
|
219
219
|
const GENERIC_BOT = new RegExp(GENERIC_BOT_PATTERNS.join("|"), "i");
|
|
220
|
-
//#endregion
|
|
221
220
|
export { GENERIC_BOT, GENERIC_BOT_PATTERNS };
|
|
222
221
|
|
|
223
222
|
//# sourceMappingURL=generic.mjs.map
|
package/dist/bot/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_bot_generic = require("./generic.cjs");
|
|
3
|
-
|
|
3
|
+
// src/bot/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* What kind of automated visitor a bot is, as the analytics tools that report bots separately
|
|
6
6
|
* group them (PostHog's traffic categories, Cloudflare's verified bot categories, Matomo's
|
|
@@ -1179,7 +1179,6 @@ function botOf(tags) {
|
|
|
1179
1179
|
};
|
|
1180
1180
|
return NOT_A_BOT;
|
|
1181
1181
|
}
|
|
1182
|
-
//#endregion
|
|
1183
1182
|
exports.BOT_CATEGORIES = BOT_CATEGORIES;
|
|
1184
1183
|
exports.NAMED_BOTS = NAMED_BOTS;
|
|
1185
1184
|
exports.NOT_A_BOT = NOT_A_BOT;
|
package/dist/bot/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackTags } from "../track/types.cjs";
|
|
2
|
-
//#region src/bot/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* What kind of automated visitor a bot is, as the analytics tools that report bots separately
|
|
5
4
|
* group them (PostHog's traffic categories, Cloudflare's verified bot categories, Matomo's
|
|
@@ -84,5 +83,4 @@ export declare function nameOfUnknownBot(userAgent: string, matched: string): st
|
|
|
84
83
|
* user agent at all.
|
|
85
84
|
*/
|
|
86
85
|
export declare function botOf(tags: TrackTags): Bot;
|
|
87
|
-
//#endregion
|
|
88
86
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/bot/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/bot/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/bot/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAsBa;YAeD,sBAAsB;;;;;YAMtB;EACN;EAAc;EAAkB,cAAc;;EAC9C;EAAe;EAAgB;;qBAExB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4BX,mEAAU,qDAAA,mDAAA,0DAAA,8CAAA,oDAAA,4DAAA,gDAAA,iDAAA,gDAAA,mDAAA,kDAAA,iDAAA,sDAAA,oDAAA,2DAAA,qDAAA,iDAAA,gDAAA,+CAAA,gDAAA,uDAAA,uEAAA,mDAAA,2DAAA,wDAAA,gDAAA,gDAAA,+CAAA,mDAAA,4CAAA,8CAAA,iDAAA,oDAAA,iDAAA,mDAAA,6CAAA,0CAAA,4CAAA,kDAAA,qDAAA,kDAAA,mDAAA,gDAAA,6CAAA,6CAAA,2CAAA,2CAAA,sDAAA,2CAAA,2CAAA,8CAAA,iDAAA,uDAAA,gDAAA,+CAAA,0CAAA,0DAAA,8CAAA,4CAAA,2CAAA,iDAAA,6CAAA,2CAAA,6CAAA,iDAAA,kDAAA,iDAAA,gDAAA,8CAAA,6CAAA,4CAAA,4CAAA,mDAAA,uDAAA,qDAAA,oDAAA,kDAAA,+CAAA,8CAAA,mDAAA,6CAAA,6CAAA,gDAAA,0CAAA,iEAAA,0DAAA,8CAAA,iDAAA,kDAAA,+CAAA,iDAAA,kDAAA,+CAAA,mDAAA,gDAAA,uDAAA,sDAAA,kDAAA,+CAAA,8CAAA,sDAAA,8CAAA,4CAAA,qDAAA,0DAAA,wDAAA,wDAAA,6CAAA,2CAAA,4CAAA,6CAAA,0CAAA,yCAAA,2CAAA,iDAAA,8CAAA,0CAAA,gDAAA,0CAAA,sEAAA,8CAAA,4CAAA,6CAAA,6CAAA,6CAAA,8CAAA,8CAAA,+CAAA,4CAAA,yCAAA,kDAAA,wDAAA,oDAAA,gDAAA,iDAAA,oDAAA,kDAAA,oDAAA,oDAAA,8CAAA,kDAAA,oDAAA,iDAAA,kDAAA,6CAAA,mDAAA,iDAAA,kDAAA,kDAAA,iDAAA,oDAAA,8CAAA,yDAAA,4CAAA,gDAAA,+CAAA,6CAAA,iDAAA,4CAAA,4CAAA,mDAAA,gDAAA,iEAAA,8CAAA,2CAAA,+CAAA,oDAAA,wDAAA,2CAAA,kDAAA,8CAAA,6CAAA,8CAAA,8CAAA,kDAAA,gDAAA,0CAAA,yCAAA,2CAAA,yDAAA,oDAAA,mDAAA,qDAAA,oDAAA,mDAAA,kDAAA,qDAAA,sDAAA,0CAAA,0CAAA,qDAAA,mDAAA,6CAAA,2CAAA,4CAAA,oDAAA,4CAAA,0CAAA,2CAAA,gDAAA,4CAAA,oDAAA,8CAAA,iDAAA,4CAAA,wDAAA,gDAAA;;;;;;;wBAocP,iBAAiB,mBAAmB;;;;;;;;;;;;;;;wBA4CpC,MAAM,MAAM,YAAY"}
|
package/dist/bot/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackTags } from "../track/types.mjs";
|
|
2
|
-
//#region src/bot/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* What kind of automated visitor a bot is, as the analytics tools that report bots separately
|
|
5
4
|
* group them (PostHog's traffic categories, Cloudflare's verified bot categories, Matomo's
|
|
@@ -84,5 +83,4 @@ export declare function nameOfUnknownBot(userAgent: string, matched: string): st
|
|
|
84
83
|
* user agent at all.
|
|
85
84
|
*/
|
|
86
85
|
export declare function botOf(tags: TrackTags): Bot;
|
|
87
|
-
//#endregion
|
|
88
86
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/bot/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/bot/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/bot/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;qBAsBa;YAeD,sBAAsB;;;;;YAMtB;EACN;EAAc;EAAkB,cAAc;;EAC9C;EAAe;EAAgB;;qBAExB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4BX,mEAAU,qDAAA,mDAAA,0DAAA,8CAAA,oDAAA,4DAAA,gDAAA,iDAAA,gDAAA,mDAAA,kDAAA,iDAAA,sDAAA,oDAAA,2DAAA,qDAAA,iDAAA,gDAAA,+CAAA,gDAAA,uDAAA,uEAAA,mDAAA,2DAAA,wDAAA,gDAAA,gDAAA,+CAAA,mDAAA,4CAAA,8CAAA,iDAAA,oDAAA,iDAAA,mDAAA,6CAAA,0CAAA,4CAAA,kDAAA,qDAAA,kDAAA,mDAAA,gDAAA,6CAAA,6CAAA,2CAAA,2CAAA,sDAAA,2CAAA,2CAAA,8CAAA,iDAAA,uDAAA,gDAAA,+CAAA,0CAAA,0DAAA,8CAAA,4CAAA,2CAAA,iDAAA,6CAAA,2CAAA,6CAAA,iDAAA,kDAAA,iDAAA,gDAAA,8CAAA,6CAAA,4CAAA,4CAAA,mDAAA,uDAAA,qDAAA,oDAAA,kDAAA,+CAAA,8CAAA,mDAAA,6CAAA,6CAAA,gDAAA,0CAAA,iEAAA,0DAAA,8CAAA,iDAAA,kDAAA,+CAAA,iDAAA,kDAAA,+CAAA,mDAAA,gDAAA,uDAAA,sDAAA,kDAAA,+CAAA,8CAAA,sDAAA,8CAAA,4CAAA,qDAAA,0DAAA,wDAAA,wDAAA,6CAAA,2CAAA,4CAAA,6CAAA,0CAAA,yCAAA,2CAAA,iDAAA,8CAAA,0CAAA,gDAAA,0CAAA,sEAAA,8CAAA,4CAAA,6CAAA,6CAAA,6CAAA,8CAAA,8CAAA,+CAAA,4CAAA,yCAAA,kDAAA,wDAAA,oDAAA,gDAAA,iDAAA,oDAAA,kDAAA,oDAAA,oDAAA,8CAAA,kDAAA,oDAAA,iDAAA,kDAAA,6CAAA,mDAAA,iDAAA,kDAAA,kDAAA,iDAAA,oDAAA,8CAAA,yDAAA,4CAAA,gDAAA,+CAAA,6CAAA,iDAAA,4CAAA,4CAAA,mDAAA,gDAAA,iEAAA,8CAAA,2CAAA,+CAAA,oDAAA,wDAAA,2CAAA,kDAAA,8CAAA,6CAAA,8CAAA,8CAAA,kDAAA,gDAAA,0CAAA,yCAAA,2CAAA,yDAAA,oDAAA,mDAAA,qDAAA,oDAAA,mDAAA,kDAAA,qDAAA,sDAAA,0CAAA,0CAAA,qDAAA,mDAAA,6CAAA,2CAAA,4CAAA,oDAAA,4CAAA,0CAAA,2CAAA,gDAAA,4CAAA,oDAAA,8CAAA,iDAAA,4CAAA,wDAAA,gDAAA;;;;;;;wBAocP,iBAAiB,mBAAmB;;;;;;;;;;;;;;;wBA4CpC,MAAM,MAAM,YAAY"}
|
package/dist/bot/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GENERIC_BOT } from "./generic.mjs";
|
|
2
|
-
|
|
2
|
+
// src/bot/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* What kind of automated visitor a bot is, as the analytics tools that report bots separately
|
|
5
5
|
* group them (PostHog's traffic categories, Cloudflare's verified bot categories, Matomo's
|
|
@@ -1178,7 +1178,6 @@ function botOf(tags) {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
return NOT_A_BOT;
|
|
1180
1180
|
}
|
|
1181
|
-
//#endregion
|
|
1182
1181
|
export { BOT_CATEGORIES, NAMED_BOTS, NOT_A_BOT, botOf, nameOfUnknownBot };
|
|
1183
1182
|
|
|
1184
1183
|
//# sourceMappingURL=index.mjs.map
|
package/dist/click-id/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
let cookie = require("cookie");
|
|
3
|
-
|
|
3
|
+
// src/click-id/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* Server-side resolution of ad-click-id cookies (`_fbc`, `_gcl_aw`/`_gcl_gb`, `_rdt_cid`,
|
|
6
6
|
* `_uetmsclkid`) from the incoming request.
|
|
@@ -260,7 +260,6 @@ function resolveClickIdCookies(input) {
|
|
|
260
260
|
function toSetCookieHeaders(cookies) {
|
|
261
261
|
return cookies.map((cookie$1) => (0, cookie.stringifySetCookie)(cookie$1));
|
|
262
262
|
}
|
|
263
|
-
//#endregion
|
|
264
263
|
exports.FBC_COOKIE = FBC_COOKIE;
|
|
265
264
|
exports.FBP_COOKIE = FBP_COOKIE;
|
|
266
265
|
exports.GCL_AW_COOKIE = GCL_AW_COOKIE;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SetCookie } from "cookie";
|
|
2
|
-
//#region src/click-id/index.d.ts
|
|
3
2
|
export declare const FBC_COOKIE = "_fbc";
|
|
4
3
|
export declare const RDT_CID_COOKIE = "_rdt_cid";
|
|
5
4
|
export declare const GCL_AW_COOKIE = "_gcl_aw";
|
|
@@ -130,5 +129,4 @@ export type ResolveClickIdCookiesResult = {
|
|
|
130
129
|
export declare function resolveClickIdCookies(input: ResolveClickIdCookiesInput): ResolveClickIdCookiesResult;
|
|
131
130
|
/** Serialize the resolved cookies into `Set-Cookie` header values. */
|
|
132
131
|
export declare function toSetCookieHeaders(cookies: SetCookie[]): string[];
|
|
133
|
-
//#endregion
|
|
134
132
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/click-id/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/click-id/index.ts"],"mappings":";qBAkDa;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;;qBAEA;YAED;EAAc;EAAa;EAAsB;;;;;;;;;wBAS7C,SACd,gCACA,eACC;;;;;wBAoBa,UAAU,gBAAgB,aAAa;YAI3C;EAAc;EAAa;EAAsB;;;;;;;;wBAQ7C,iBAAiB;;;;;;;wBAejB,SACd,gCACA,eACC;;wBAgBa,UAAU,iBAAiB;;wBAY3B,UAAU,mCAAmC;;;;;wBAQ7C,gBAAgB;;wBAOhB,iBAAiB;;;;;wBAQjB,cAAc;YAMlB;;EAEV;;EAEA;;EAEA;;;;;;;;EAQA;;EAEA;;EAEA;;;;;;;;;;;;;;;;EAgBA;;YAGU;;;;;EAKV,SAAS;;EAET;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;;;;;wBAuBc,sBACd,OAAO,6BACN;;wBAiJa,mBAAmB,SAAS"}
|