@customerio/cdp-analytics-browser 0.0.0-test-oidc
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/LICENSE.MD +22 -0
- package/README.md +36 -0
- package/dist/cjs/browser/browser-umd.js +20 -0
- package/dist/cjs/browser/browser-umd.js.map +1 -0
- package/dist/cjs/browser/index.js +334 -0
- package/dist/cjs/browser/index.js.map +1 -0
- package/dist/cjs/browser/standalone-analytics.js +62 -0
- package/dist/cjs/browser/standalone-analytics.js.map +1 -0
- package/dist/cjs/browser/standalone-interface.js +3 -0
- package/dist/cjs/browser/standalone-interface.js.map +1 -0
- package/dist/cjs/browser/standalone.js +90 -0
- package/dist/cjs/browser/standalone.js.map +1 -0
- package/dist/cjs/core/analytics/index.js +545 -0
- package/dist/cjs/core/analytics/index.js.map +1 -0
- package/dist/cjs/core/analytics/interfaces.js +3 -0
- package/dist/cjs/core/analytics/interfaces.js.map +1 -0
- package/dist/cjs/core/arguments-resolver/index.js +106 -0
- package/dist/cjs/core/arguments-resolver/index.js.map +1 -0
- package/dist/cjs/core/auto-track.js +108 -0
- package/dist/cjs/core/auto-track.js.map +1 -0
- package/dist/cjs/core/buffer/index.js +237 -0
- package/dist/cjs/core/buffer/index.js.map +1 -0
- package/dist/cjs/core/buffer/snippet.js +32 -0
- package/dist/cjs/core/buffer/snippet.js.map +1 -0
- package/dist/cjs/core/callback/index.js +7 -0
- package/dist/cjs/core/callback/index.js.map +1 -0
- package/dist/cjs/core/connection/index.js +16 -0
- package/dist/cjs/core/connection/index.js.map +1 -0
- package/dist/cjs/core/context/index.js +19 -0
- package/dist/cjs/core/context/index.js.map +1 -0
- package/dist/cjs/core/environment/index.js +12 -0
- package/dist/cjs/core/environment/index.js.map +1 -0
- package/dist/cjs/core/events/index.js +134 -0
- package/dist/cjs/core/events/index.js.map +1 -0
- package/dist/cjs/core/events/interfaces.js +3 -0
- package/dist/cjs/core/events/interfaces.js.map +1 -0
- package/dist/cjs/core/inspector/index.js +14 -0
- package/dist/cjs/core/inspector/index.js.map +1 -0
- package/dist/cjs/core/plugin/index.js +3 -0
- package/dist/cjs/core/plugin/index.js.map +1 -0
- package/dist/cjs/core/query-string/gracefulDecodeURIComponent.js +20 -0
- package/dist/cjs/core/query-string/gracefulDecodeURIComponent.js.map +1 -0
- package/dist/cjs/core/query-string/index.js +48 -0
- package/dist/cjs/core/query-string/index.js.map +1 -0
- package/dist/cjs/core/query-string/pickPrefix.js +20 -0
- package/dist/cjs/core/query-string/pickPrefix.js.map +1 -0
- package/dist/cjs/core/queue/event-queue.js +15 -0
- package/dist/cjs/core/queue/event-queue.js.map +1 -0
- package/dist/cjs/core/stats/index.js +23 -0
- package/dist/cjs/core/stats/index.js.map +1 -0
- package/dist/cjs/core/stats/remote-metrics.js +107 -0
- package/dist/cjs/core/stats/remote-metrics.js.map +1 -0
- package/dist/cjs/core/user/index.js +422 -0
- package/dist/cjs/core/user/index.js.map +1 -0
- package/dist/cjs/core/user/tld.js +64 -0
- package/dist/cjs/core/user/tld.js.map +1 -0
- package/dist/cjs/generated/version.js +6 -0
- package/dist/cjs/generated/version.js.map +1 -0
- package/dist/cjs/index.js +15 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/lib/bind-all.js +17 -0
- package/dist/cjs/lib/bind-all.js.map +1 -0
- package/dist/cjs/lib/browser-polyfill.js +22 -0
- package/dist/cjs/lib/browser-polyfill.js.map +1 -0
- package/dist/cjs/lib/create-deferred.js +21 -0
- package/dist/cjs/lib/create-deferred.js.map +1 -0
- package/dist/cjs/lib/csp-detection.js +33 -0
- package/dist/cjs/lib/csp-detection.js.map +1 -0
- package/dist/cjs/lib/embedded-write-key.js +22 -0
- package/dist/cjs/lib/embedded-write-key.js.map +1 -0
- package/dist/cjs/lib/fetch.js +19 -0
- package/dist/cjs/lib/fetch.js.map +1 -0
- package/dist/cjs/lib/get-global.js +21 -0
- package/dist/cjs/lib/get-global.js.map +1 -0
- package/dist/cjs/lib/get-process-env.js +15 -0
- package/dist/cjs/lib/get-process-env.js.map +1 -0
- package/dist/cjs/lib/global-analytics-helper.js +34 -0
- package/dist/cjs/lib/global-analytics-helper.js.map +1 -0
- package/dist/cjs/lib/group-by.js +28 -0
- package/dist/cjs/lib/group-by.js.map +1 -0
- package/dist/cjs/lib/is-plan-event-enabled.js +20 -0
- package/dist/cjs/lib/is-plan-event-enabled.js.map +1 -0
- package/dist/cjs/lib/is-thenable.js +15 -0
- package/dist/cjs/lib/is-thenable.js.map +1 -0
- package/dist/cjs/lib/load-script.js +56 -0
- package/dist/cjs/lib/load-script.js.map +1 -0
- package/dist/cjs/lib/merged-options.js +31 -0
- package/dist/cjs/lib/merged-options.js.map +1 -0
- package/dist/cjs/lib/on-page-leave.js +35 -0
- package/dist/cjs/lib/on-page-leave.js.map +1 -0
- package/dist/cjs/lib/p-while.js +25 -0
- package/dist/cjs/lib/p-while.js.map +1 -0
- package/dist/cjs/lib/parse-cdn.js +86 -0
- package/dist/cjs/lib/parse-cdn.js.map +1 -0
- package/dist/cjs/lib/priority-queue/backoff.js +10 -0
- package/dist/cjs/lib/priority-queue/backoff.js.map +1 -0
- package/dist/cjs/lib/priority-queue/index.js +7 -0
- package/dist/cjs/lib/priority-queue/index.js.map +1 -0
- package/dist/cjs/lib/priority-queue/persisted.js +108 -0
- package/dist/cjs/lib/priority-queue/persisted.js.map +1 -0
- package/dist/cjs/lib/sleep.js +10 -0
- package/dist/cjs/lib/sleep.js.map +1 -0
- package/dist/cjs/lib/to-facade.js +32 -0
- package/dist/cjs/lib/to-facade.js.map +1 -0
- package/dist/cjs/node/index.js +43 -0
- package/dist/cjs/node/index.js.map +1 -0
- package/dist/cjs/node/node.browser.js +13 -0
- package/dist/cjs/node/node.browser.js.map +1 -0
- package/dist/cjs/plugins/ajs-destination/index.js +345 -0
- package/dist/cjs/plugins/ajs-destination/index.js.map +1 -0
- package/dist/cjs/plugins/ajs-destination/loader.js +110 -0
- package/dist/cjs/plugins/ajs-destination/loader.js.map +1 -0
- package/dist/cjs/plugins/ajs-destination/types.js +3 -0
- package/dist/cjs/plugins/ajs-destination/types.js.map +1 -0
- package/dist/cjs/plugins/ajs-destination/utils.js +23 -0
- package/dist/cjs/plugins/ajs-destination/utils.js.map +1 -0
- package/dist/cjs/plugins/analytics-node/index.js +65 -0
- package/dist/cjs/plugins/analytics-node/index.js.map +1 -0
- package/dist/cjs/plugins/customerio/batched-dispatcher.js +102 -0
- package/dist/cjs/plugins/customerio/batched-dispatcher.js.map +1 -0
- package/dist/cjs/plugins/customerio/fetch-dispatcher.js +18 -0
- package/dist/cjs/plugins/customerio/fetch-dispatcher.js.map +1 -0
- package/dist/cjs/plugins/customerio/index.js +98 -0
- package/dist/cjs/plugins/customerio/index.js.map +1 -0
- package/dist/cjs/plugins/customerio/normalize.js +176 -0
- package/dist/cjs/plugins/customerio/normalize.js.map +1 -0
- package/dist/cjs/plugins/customerio/schedule-flush.js +76 -0
- package/dist/cjs/plugins/customerio/schedule-flush.js.map +1 -0
- package/dist/cjs/plugins/in-app-plugin/events.js +41 -0
- package/dist/cjs/plugins/in-app-plugin/events.js.map +1 -0
- package/dist/cjs/plugins/in-app-plugin/index.js +237 -0
- package/dist/cjs/plugins/in-app-plugin/index.js.map +1 -0
- package/dist/cjs/plugins/legacy-video-plugins/index.js +25 -0
- package/dist/cjs/plugins/legacy-video-plugins/index.js.map +1 -0
- package/dist/cjs/plugins/middleware/index.js +124 -0
- package/dist/cjs/plugins/middleware/index.js.map +1 -0
- package/dist/cjs/plugins/page-enrichment/index.js +98 -0
- package/dist/cjs/plugins/page-enrichment/index.js.map +1 -0
- package/dist/cjs/plugins/remote-loader/index.js +211 -0
- package/dist/cjs/plugins/remote-loader/index.js.map +1 -0
- package/dist/cjs/plugins/remote-middleware/index.js +70 -0
- package/dist/cjs/plugins/remote-middleware/index.js.map +1 -0
- package/dist/cjs/plugins/routing-middleware/index.js +27 -0
- package/dist/cjs/plugins/routing-middleware/index.js.map +1 -0
- package/dist/cjs/plugins/schema-filter/index.js +67 -0
- package/dist/cjs/plugins/schema-filter/index.js.map +1 -0
- package/dist/cjs/plugins/validation/index.js +70 -0
- package/dist/cjs/plugins/validation/index.js.map +1 -0
- package/dist/cjs/vendor/tsub/tsub.js +645 -0
- package/dist/cjs/vendor/tsub/tsub.js.map +1 -0
- package/dist/cjs/vendor/tsub/types.js +3 -0
- package/dist/cjs/vendor/tsub/types.js.map +1 -0
- package/dist/pkg/browser/browser-umd.js +17 -0
- package/dist/pkg/browser/browser-umd.js.map +1 -0
- package/dist/pkg/browser/index.js +330 -0
- package/dist/pkg/browser/index.js.map +1 -0
- package/dist/pkg/browser/standalone-analytics.js +58 -0
- package/dist/pkg/browser/standalone-analytics.js.map +1 -0
- package/dist/pkg/browser/standalone-interface.js +2 -0
- package/dist/pkg/browser/standalone-interface.js.map +1 -0
- package/dist/pkg/browser/standalone.js +88 -0
- package/dist/pkg/browser/standalone.js.map +1 -0
- package/dist/pkg/core/analytics/index.js +542 -0
- package/dist/pkg/core/analytics/index.js.map +1 -0
- package/dist/pkg/core/analytics/interfaces.js +2 -0
- package/dist/pkg/core/analytics/interfaces.js.map +1 -0
- package/dist/pkg/core/arguments-resolver/index.js +99 -0
- package/dist/pkg/core/arguments-resolver/index.js.map +1 -0
- package/dist/pkg/core/auto-track.js +103 -0
- package/dist/pkg/core/auto-track.js.map +1 -0
- package/dist/pkg/core/buffer/index.js +231 -0
- package/dist/pkg/core/buffer/index.js.map +1 -0
- package/dist/pkg/core/buffer/snippet.js +27 -0
- package/dist/pkg/core/buffer/snippet.js.map +1 -0
- package/dist/pkg/core/callback/index.js +2 -0
- package/dist/pkg/core/callback/index.js.map +1 -0
- package/dist/pkg/core/connection/index.js +11 -0
- package/dist/pkg/core/connection/index.js.map +1 -0
- package/dist/pkg/core/context/index.js +16 -0
- package/dist/pkg/core/context/index.js.map +1 -0
- package/dist/pkg/core/environment/index.js +7 -0
- package/dist/pkg/core/environment/index.js.map +1 -0
- package/dist/pkg/core/events/index.js +131 -0
- package/dist/pkg/core/events/index.js.map +1 -0
- package/dist/pkg/core/events/interfaces.js +2 -0
- package/dist/pkg/core/events/interfaces.js.map +1 -0
- package/dist/pkg/core/inspector/index.js +10 -0
- package/dist/pkg/core/inspector/index.js.map +1 -0
- package/dist/pkg/core/plugin/index.js +2 -0
- package/dist/pkg/core/plugin/index.js.map +1 -0
- package/dist/pkg/core/query-string/gracefulDecodeURIComponent.js +16 -0
- package/dist/pkg/core/query-string/gracefulDecodeURIComponent.js.map +1 -0
- package/dist/pkg/core/query-string/index.js +44 -0
- package/dist/pkg/core/query-string/index.js.map +1 -0
- package/dist/pkg/core/query-string/pickPrefix.js +16 -0
- package/dist/pkg/core/query-string/pickPrefix.js.map +1 -0
- package/dist/pkg/core/queue/event-queue.js +12 -0
- package/dist/pkg/core/queue/event-queue.js.map +1 -0
- package/dist/pkg/core/stats/index.js +20 -0
- package/dist/pkg/core/stats/index.js.map +1 -0
- package/dist/pkg/core/stats/remote-metrics.js +104 -0
- package/dist/pkg/core/stats/remote-metrics.js.map +1 -0
- package/dist/pkg/core/user/index.js +418 -0
- package/dist/pkg/core/user/index.js.map +1 -0
- package/dist/pkg/core/user/tld.js +59 -0
- package/dist/pkg/core/user/tld.js.map +1 -0
- package/dist/pkg/generated/version.js +3 -0
- package/dist/pkg/generated/version.js.map +1 -0
- package/dist/pkg/index.js +10 -0
- package/dist/pkg/index.js.map +1 -0
- package/dist/pkg/lib/bind-all.js +14 -0
- package/dist/pkg/lib/bind-all.js.map +1 -0
- package/dist/pkg/lib/browser-polyfill.js +18 -0
- package/dist/pkg/lib/browser-polyfill.js.map +1 -0
- package/dist/pkg/lib/create-deferred.js +17 -0
- package/dist/pkg/lib/create-deferred.js.map +1 -0
- package/dist/pkg/lib/csp-detection.js +29 -0
- package/dist/pkg/lib/csp-detection.js.map +1 -0
- package/dist/pkg/lib/embedded-write-key.js +18 -0
- package/dist/pkg/lib/embedded-write-key.js.map +1 -0
- package/dist/pkg/lib/fetch.js +14 -0
- package/dist/pkg/lib/fetch.js.map +1 -0
- package/dist/pkg/lib/get-global.js +17 -0
- package/dist/pkg/lib/get-global.js.map +1 -0
- package/dist/pkg/lib/get-process-env.js +11 -0
- package/dist/pkg/lib/get-process-env.js.map +1 -0
- package/dist/pkg/lib/global-analytics-helper.js +28 -0
- package/dist/pkg/lib/global-analytics-helper.js.map +1 -0
- package/dist/pkg/lib/group-by.js +24 -0
- package/dist/pkg/lib/group-by.js.map +1 -0
- package/dist/pkg/lib/is-plan-event-enabled.js +16 -0
- package/dist/pkg/lib/is-plan-event-enabled.js.map +1 -0
- package/dist/pkg/lib/is-thenable.js +11 -0
- package/dist/pkg/lib/is-thenable.js.map +1 -0
- package/dist/pkg/lib/load-script.js +51 -0
- package/dist/pkg/lib/load-script.js.map +1 -0
- package/dist/pkg/lib/merged-options.js +27 -0
- package/dist/pkg/lib/merged-options.js.map +1 -0
- package/dist/pkg/lib/on-page-leave.js +31 -0
- package/dist/pkg/lib/on-page-leave.js.map +1 -0
- package/dist/pkg/lib/p-while.js +21 -0
- package/dist/pkg/lib/p-while.js.map +1 -0
- package/dist/pkg/lib/parse-cdn.js +79 -0
- package/dist/pkg/lib/parse-cdn.js.map +1 -0
- package/dist/pkg/lib/priority-queue/backoff.js +6 -0
- package/dist/pkg/lib/priority-queue/backoff.js.map +1 -0
- package/dist/pkg/lib/priority-queue/index.js +3 -0
- package/dist/pkg/lib/priority-queue/index.js.map +1 -0
- package/dist/pkg/lib/priority-queue/persisted.js +105 -0
- package/dist/pkg/lib/priority-queue/persisted.js.map +1 -0
- package/dist/pkg/lib/sleep.js +6 -0
- package/dist/pkg/lib/sleep.js.map +1 -0
- package/dist/pkg/lib/to-facade.js +28 -0
- package/dist/pkg/lib/to-facade.js.map +1 -0
- package/dist/pkg/node/index.js +40 -0
- package/dist/pkg/node/index.js.map +1 -0
- package/dist/pkg/node/node.browser.js +10 -0
- package/dist/pkg/node/node.browser.js.map +1 -0
- package/dist/pkg/plugins/ajs-destination/index.js +341 -0
- package/dist/pkg/plugins/ajs-destination/index.js.map +1 -0
- package/dist/pkg/plugins/ajs-destination/loader.js +102 -0
- package/dist/pkg/plugins/ajs-destination/loader.js.map +1 -0
- package/dist/pkg/plugins/ajs-destination/types.js +2 -0
- package/dist/pkg/plugins/ajs-destination/types.js.map +1 -0
- package/dist/pkg/plugins/ajs-destination/utils.js +18 -0
- package/dist/pkg/plugins/ajs-destination/utils.js.map +1 -0
- package/dist/pkg/plugins/analytics-node/index.js +60 -0
- package/dist/pkg/plugins/analytics-node/index.js.map +1 -0
- package/dist/pkg/plugins/customerio/batched-dispatcher.js +99 -0
- package/dist/pkg/plugins/customerio/batched-dispatcher.js.map +1 -0
- package/dist/pkg/plugins/customerio/fetch-dispatcher.js +15 -0
- package/dist/pkg/plugins/customerio/fetch-dispatcher.js.map +1 -0
- package/dist/pkg/plugins/customerio/index.js +94 -0
- package/dist/pkg/plugins/customerio/index.js.map +1 -0
- package/dist/pkg/plugins/customerio/normalize.js +168 -0
- package/dist/pkg/plugins/customerio/normalize.js.map +1 -0
- package/dist/pkg/plugins/customerio/schedule-flush.js +72 -0
- package/dist/pkg/plugins/customerio/schedule-flush.js.map +1 -0
- package/dist/pkg/plugins/in-app-plugin/events.js +36 -0
- package/dist/pkg/plugins/in-app-plugin/events.js.map +1 -0
- package/dist/pkg/plugins/in-app-plugin/index.js +233 -0
- package/dist/pkg/plugins/in-app-plugin/index.js.map +1 -0
- package/dist/pkg/plugins/legacy-video-plugins/index.js +25 -0
- package/dist/pkg/plugins/legacy-video-plugins/index.js.map +1 -0
- package/dist/pkg/plugins/middleware/index.js +119 -0
- package/dist/pkg/plugins/middleware/index.js.map +1 -0
- package/dist/pkg/plugins/page-enrichment/index.js +93 -0
- package/dist/pkg/plugins/page-enrichment/index.js.map +1 -0
- package/dist/pkg/plugins/remote-loader/index.js +207 -0
- package/dist/pkg/plugins/remote-loader/index.js.map +1 -0
- package/dist/pkg/plugins/remote-middleware/index.js +66 -0
- package/dist/pkg/plugins/remote-middleware/index.js.map +1 -0
- package/dist/pkg/plugins/routing-middleware/index.js +22 -0
- package/dist/pkg/plugins/routing-middleware/index.js.map +1 -0
- package/dist/pkg/plugins/schema-filter/index.js +63 -0
- package/dist/pkg/plugins/schema-filter/index.js.map +1 -0
- package/dist/pkg/plugins/validation/index.js +63 -0
- package/dist/pkg/plugins/validation/index.js.map +1 -0
- package/dist/pkg/vendor/tsub/tsub.js +645 -0
- package/dist/pkg/vendor/tsub/tsub.js.map +1 -0
- package/dist/pkg/vendor/tsub/types.js +2 -0
- package/dist/pkg/vendor/tsub/types.js.map +1 -0
- package/dist/types/browser/browser-umd.d.ts +2 -0
- package/dist/types/browser/browser-umd.d.ts.map +1 -0
- package/dist/types/browser/index.d.ts +86 -0
- package/dist/types/browser/index.d.ts.map +1 -0
- package/dist/types/browser/standalone-analytics.d.ts +2 -0
- package/dist/types/browser/standalone-analytics.d.ts.map +1 -0
- package/dist/types/browser/standalone-interface.d.ts +10 -0
- package/dist/types/browser/standalone-interface.d.ts.map +1 -0
- package/dist/types/browser/standalone.d.ts +2 -0
- package/dist/types/browser/standalone.d.ts.map +1 -0
- package/dist/types/core/analytics/index.d.ts +121 -0
- package/dist/types/core/analytics/index.d.ts.map +1 -0
- package/dist/types/core/analytics/interfaces.d.ts +77 -0
- package/dist/types/core/analytics/interfaces.d.ts.map +1 -0
- package/dist/types/core/arguments-resolver/index.d.ts +34 -0
- package/dist/types/core/arguments-resolver/index.d.ts.map +1 -0
- package/dist/types/core/auto-track.d.ts +10 -0
- package/dist/types/core/auto-track.d.ts.map +1 -0
- package/dist/types/core/buffer/index.d.ts +86 -0
- package/dist/types/core/buffer/index.d.ts.map +1 -0
- package/dist/types/core/buffer/snippet.d.ts +15 -0
- package/dist/types/core/buffer/snippet.d.ts.map +1 -0
- package/dist/types/core/callback/index.d.ts +2 -0
- package/dist/types/core/callback/index.d.ts.map +1 -0
- package/dist/types/core/connection/index.d.ts +3 -0
- package/dist/types/core/connection/index.d.ts.map +1 -0
- package/dist/types/core/context/index.d.ts +9 -0
- package/dist/types/core/context/index.d.ts.map +1 -0
- package/dist/types/core/environment/index.d.ts +3 -0
- package/dist/types/core/environment/index.d.ts.map +1 -0
- package/dist/types/core/events/index.d.ts +21 -0
- package/dist/types/core/events/index.d.ts.map +1 -0
- package/dist/types/core/events/interfaces.d.ts +9 -0
- package/dist/types/core/events/interfaces.d.ts.map +1 -0
- package/dist/types/core/inspector/index.d.ts +3 -0
- package/dist/types/core/inspector/index.d.ts.map +1 -0
- package/dist/types/core/plugin/index.d.ts +11 -0
- package/dist/types/core/plugin/index.d.ts.map +1 -0
- package/dist/types/core/query-string/gracefulDecodeURIComponent.d.ts +9 -0
- package/dist/types/core/query-string/gracefulDecodeURIComponent.d.ts.map +1 -0
- package/dist/types/core/query-string/index.d.ts +7 -0
- package/dist/types/core/query-string/index.d.ts.map +1 -0
- package/dist/types/core/query-string/pickPrefix.d.ts +9 -0
- package/dist/types/core/query-string/pickPrefix.d.ts.map +1 -0
- package/dist/types/core/queue/event-queue.d.ts +8 -0
- package/dist/types/core/queue/event-queue.d.ts.map +1 -0
- package/dist/types/core/stats/index.d.ts +7 -0
- package/dist/types/core/stats/index.d.ts.map +1 -0
- package/dist/types/core/stats/remote-metrics.d.ts +29 -0
- package/dist/types/core/stats/remote-metrics.d.ts.map +1 -0
- package/dist/types/core/user/index.d.ts +128 -0
- package/dist/types/core/user/index.d.ts.map +1 -0
- package/dist/types/core/user/tld.d.ts +2 -0
- package/dist/types/core/user/tld.d.ts.map +1 -0
- package/dist/types/generated/version.d.ts +2 -0
- package/dist/types/generated/version.d.ts.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/bind-all.d.ts +4 -0
- package/dist/types/lib/bind-all.d.ts.map +1 -0
- package/dist/types/lib/browser-polyfill.d.ts +2 -0
- package/dist/types/lib/browser-polyfill.d.ts.map +1 -0
- package/dist/types/lib/create-deferred.d.ts +9 -0
- package/dist/types/lib/create-deferred.d.ts.map +1 -0
- package/dist/types/lib/csp-detection.d.ts +4 -0
- package/dist/types/lib/csp-detection.d.ts.map +1 -0
- package/dist/types/lib/embedded-write-key.d.ts +7 -0
- package/dist/types/lib/embedded-write-key.d.ts.map +1 -0
- package/dist/types/lib/fetch.d.ts +5 -0
- package/dist/types/lib/fetch.d.ts.map +1 -0
- package/dist/types/lib/get-global.d.ts +2 -0
- package/dist/types/lib/get-global.d.ts.map +1 -0
- package/dist/types/lib/get-process-env.d.ts +8 -0
- package/dist/types/lib/get-process-env.d.ts.map +1 -0
- package/dist/types/lib/global-analytics-helper.d.ts +18 -0
- package/dist/types/lib/global-analytics-helper.d.ts.map +1 -0
- package/dist/types/lib/group-by.d.ts +4 -0
- package/dist/types/lib/group-by.d.ts.map +1 -0
- package/dist/types/lib/is-plan-event-enabled.d.ts +9 -0
- package/dist/types/lib/is-plan-event-enabled.d.ts.map +1 -0
- package/dist/types/lib/is-thenable.d.ts +6 -0
- package/dist/types/lib/is-thenable.d.ts.map +1 -0
- package/dist/types/lib/load-script.d.ts +3 -0
- package/dist/types/lib/load-script.d.ts.map +1 -0
- package/dist/types/lib/merged-options.d.ts +13 -0
- package/dist/types/lib/merged-options.d.ts.map +1 -0
- package/dist/types/lib/on-page-leave.d.ts +11 -0
- package/dist/types/lib/on-page-leave.d.ts.map +1 -0
- package/dist/types/lib/p-while.d.ts +2 -0
- package/dist/types/lib/p-while.d.ts.map +1 -0
- package/dist/types/lib/parse-cdn.d.ts +10 -0
- package/dist/types/lib/parse-cdn.d.ts.map +1 -0
- package/dist/types/lib/priority-queue/backoff.d.ts +13 -0
- package/dist/types/lib/priority-queue/backoff.d.ts.map +1 -0
- package/dist/types/lib/priority-queue/index.d.ts +3 -0
- package/dist/types/lib/priority-queue/index.d.ts.map +1 -0
- package/dist/types/lib/priority-queue/persisted.d.ts +6 -0
- package/dist/types/lib/priority-queue/persisted.d.ts.map +1 -0
- package/dist/types/lib/sleep.d.ts +2 -0
- package/dist/types/lib/sleep.d.ts.map +1 -0
- package/dist/types/lib/to-facade.d.ts +7 -0
- package/dist/types/lib/to-facade.d.ts.map +1 -0
- package/dist/types/node/index.d.ts +8 -0
- package/dist/types/node/index.d.ts.map +1 -0
- package/dist/types/node/node.browser.d.ts +4 -0
- package/dist/types/node/node.browser.d.ts.map +1 -0
- package/dist/types/plugins/ajs-destination/index.d.ts +42 -0
- package/dist/types/plugins/ajs-destination/index.d.ts.map +1 -0
- package/dist/types/plugins/ajs-destination/loader.d.ts +12 -0
- package/dist/types/plugins/ajs-destination/loader.d.ts.map +1 -0
- package/dist/types/plugins/ajs-destination/types.d.ts +36 -0
- package/dist/types/plugins/ajs-destination/types.d.ts.map +1 -0
- package/dist/types/plugins/ajs-destination/utils.d.ts +5 -0
- package/dist/types/plugins/ajs-destination/utils.d.ts.map +1 -0
- package/dist/types/plugins/analytics-node/index.d.ts +12 -0
- package/dist/types/plugins/analytics-node/index.d.ts.map +1 -0
- package/dist/types/plugins/customerio/batched-dispatcher.d.ts +8 -0
- package/dist/types/plugins/customerio/batched-dispatcher.d.ts.map +1 -0
- package/dist/types/plugins/customerio/fetch-dispatcher.d.ts +8 -0
- package/dist/types/plugins/customerio/fetch-dispatcher.d.ts.map +1 -0
- package/dist/types/plugins/customerio/index.d.ts +26 -0
- package/dist/types/plugins/customerio/index.d.ts.map +1 -0
- package/dist/types/plugins/customerio/normalize.d.ts +12 -0
- package/dist/types/plugins/customerio/normalize.d.ts.map +1 -0
- package/dist/types/plugins/customerio/schedule-flush.d.ts +5 -0
- package/dist/types/plugins/customerio/schedule-flush.d.ts.map +1 -0
- package/dist/types/plugins/in-app-plugin/events.d.ts +19 -0
- package/dist/types/plugins/in-app-plugin/events.d.ts.map +1 -0
- package/dist/types/plugins/in-app-plugin/index.d.ts +12 -0
- package/dist/types/plugins/in-app-plugin/index.d.ts.map +1 -0
- package/dist/types/plugins/legacy-video-plugins/index.d.ts +3 -0
- package/dist/types/plugins/legacy-video-plugins/index.d.ts.map +1 -0
- package/dist/types/plugins/middleware/index.d.ts +18 -0
- package/dist/types/plugins/middleware/index.d.ts.map +1 -0
- package/dist/types/plugins/page-enrichment/index.d.ts +21 -0
- package/dist/types/plugins/page-enrichment/index.d.ts.map +1 -0
- package/dist/types/plugins/remote-loader/index.d.ts +43 -0
- package/dist/types/plugins/remote-loader/index.d.ts.map +1 -0
- package/dist/types/plugins/remote-middleware/index.d.ts +5 -0
- package/dist/types/plugins/remote-middleware/index.d.ts.map +1 -0
- package/dist/types/plugins/routing-middleware/index.d.ts +13 -0
- package/dist/types/plugins/routing-middleware/index.d.ts.map +1 -0
- package/dist/types/plugins/schema-filter/index.d.ts +5 -0
- package/dist/types/plugins/schema-filter/index.d.ts.map +1 -0
- package/dist/types/plugins/validation/index.d.ts +7 -0
- package/dist/types/plugins/validation/index.d.ts.map +1 -0
- package/dist/types/vendor/tsub/tsub.d.ts +1 -0
- package/dist/types/vendor/tsub/tsub.d.ts.map +1 -0
- package/dist/types/vendor/tsub/types.d.ts +20 -0
- package/dist/types/vendor/tsub/types.d.ts.map +1 -0
- package/dist/umd/407.js +1 -0
- package/dist/umd/407.js.gz +0 -0
- package/dist/umd/852.js +1 -0
- package/dist/umd/852.js.gz +0 -0
- package/dist/umd/ajs-destination.js +1 -0
- package/dist/umd/ajs-destination.js.gz +0 -0
- package/dist/umd/auto-track.js +1 -0
- package/dist/umd/auto-track.js.gz +0 -0
- package/dist/umd/inAppPlugin.js +1 -0
- package/dist/umd/inAppPlugin.js.gz +0 -0
- package/dist/umd/index.js +1 -0
- package/dist/umd/index.js.gz +0 -0
- package/dist/umd/legacyVideos.js +1 -0
- package/dist/umd/legacyVideos.js.gz +0 -0
- package/dist/umd/queryString.js +1 -0
- package/dist/umd/queryString.js.gz +0 -0
- package/dist/umd/remoteMiddleware.js +1 -0
- package/dist/umd/remoteMiddleware.js.gz +0 -0
- package/dist/umd/schemaFilter.js +1 -0
- package/dist/umd/schemaFilter.js.gz +0 -0
- package/dist/umd/standalone.js +1 -0
- package/dist/umd/standalone.js.gz +0 -0
- package/dist/umd/tsub-middleware.js +1 -0
- package/dist/umd/tsub-middleware.js.gz +0 -0
- package/package.json +106 -0
- package/src/browser/browser-umd.ts +19 -0
- package/src/browser/index.ts +423 -0
- package/src/browser/standalone-analytics.ts +62 -0
- package/src/browser/standalone-interface.ts +11 -0
- package/src/browser/standalone.ts +90 -0
- package/src/core/analytics/index.ts +573 -0
- package/src/core/analytics/interfaces.ts +100 -0
- package/src/core/arguments-resolver/index.ts +166 -0
- package/src/core/auto-track.ts +152 -0
- package/src/core/buffer/index.ts +289 -0
- package/src/core/buffer/snippet.ts +46 -0
- package/src/core/callback/index.ts +1 -0
- package/src/core/connection/index.ts +13 -0
- package/src/core/context/index.ts +21 -0
- package/src/core/environment/index.ts +7 -0
- package/src/core/events/index.ts +254 -0
- package/src/core/events/interfaces.ts +36 -0
- package/src/core/inspector/index.ts +14 -0
- package/src/core/plugin/index.ts +12 -0
- package/src/core/query-string/gracefulDecodeURIComponent.ts +16 -0
- package/src/core/query-string/index.ts +64 -0
- package/src/core/query-string/pickPrefix.ts +20 -0
- package/src/core/queue/event-queue.ts +11 -0
- package/src/core/stats/index.ts +15 -0
- package/src/core/stats/remote-metrics.ts +137 -0
- package/src/core/user/index.ts +534 -0
- package/src/core/user/tld.ts +65 -0
- package/src/generated/version.ts +2 -0
- package/src/index.ts +12 -0
- package/src/lib/bind-all.ts +19 -0
- package/src/lib/browser-polyfill.ts +23 -0
- package/src/lib/create-deferred.ts +16 -0
- package/src/lib/csp-detection.ts +26 -0
- package/src/lib/embedded-write-key.ts +24 -0
- package/src/lib/fetch.ts +10 -0
- package/src/lib/get-global.ts +16 -0
- package/src/lib/get-process-env.ts +11 -0
- package/src/lib/global-analytics-helper.ts +31 -0
- package/src/lib/group-by.ts +30 -0
- package/src/lib/is-plan-event-enabled.ts +20 -0
- package/src/lib/is-thenable.ts +9 -0
- package/src/lib/load-script.ts +66 -0
- package/src/lib/merged-options.ts +46 -0
- package/src/lib/on-page-leave.ts +29 -0
- package/src/lib/p-while.ts +12 -0
- package/src/lib/parse-cdn.ts +93 -0
- package/src/lib/priority-queue/backoff.ts +24 -0
- package/src/lib/priority-queue/index.ts +6 -0
- package/src/lib/priority-queue/persisted.ts +127 -0
- package/src/lib/sleep.ts +4 -0
- package/src/lib/to-facade.ts +53 -0
- package/src/node/index.ts +36 -0
- package/src/node/node.browser.ts +7 -0
- package/src/plugins/ajs-destination/index.ts +388 -0
- package/src/plugins/ajs-destination/loader.ts +127 -0
- package/src/plugins/ajs-destination/types.ts +44 -0
- package/src/plugins/ajs-destination/utils.ts +34 -0
- package/src/plugins/analytics-node/index.ts +64 -0
- package/src/plugins/customerio/batched-dispatcher.ts +112 -0
- package/src/plugins/customerio/fetch-dispatcher.ts +24 -0
- package/src/plugins/customerio/index.ts +143 -0
- package/src/plugins/customerio/normalize.ts +223 -0
- package/src/plugins/customerio/schedule-flush.ts +58 -0
- package/src/plugins/in-app-plugin/events.ts +38 -0
- package/src/plugins/in-app-plugin/index.ts +241 -0
- package/src/plugins/legacy-video-plugins/index.ts +16 -0
- package/src/plugins/middleware/index.ts +131 -0
- package/src/plugins/page-enrichment/index.ts +127 -0
- package/src/plugins/remote-loader/index.ts +240 -0
- package/src/plugins/remote-middleware/index.ts +44 -0
- package/src/plugins/routing-middleware/index.ts +38 -0
- package/src/plugins/schema-filter/index.ts +90 -0
- package/src/plugins/validation/index.ts +80 -0
- package/src/test-helpers/browser-storage.ts +72 -0
- package/src/test-helpers/factories.ts +18 -0
- package/src/test-helpers/fetch-parse.ts +8 -0
- package/src/test-helpers/fixtures/cdn-settings.ts +299 -0
- package/src/test-helpers/fixtures/classic-destination.ts +25 -0
- package/src/test-helpers/fixtures/create-fetch-method.ts +24 -0
- package/src/test-helpers/test-writekeys.ts +5 -0
- package/src/test-helpers/type-assertions.ts +11 -0
- package/src/vendor/tsub/tsub.js.LICENSE.txt +53 -0
- package/src/vendor/tsub/tsub.ts +7 -0
- package/src/vendor/tsub/types.ts +19 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { LegacySettings } from '../..'
|
|
2
|
+
import { mockIntegrationName } from './classic-destination'
|
|
3
|
+
|
|
4
|
+
export const cdnSettingsKitchenSink: LegacySettings = {
|
|
5
|
+
integrations: {
|
|
6
|
+
[mockIntegrationName]: {},
|
|
7
|
+
'Customer.io': {
|
|
8
|
+
siteId: 'abc123foofixture', // overwritten
|
|
9
|
+
versionSettings: {
|
|
10
|
+
version: '2.2.3',
|
|
11
|
+
componentTypes: ['browser', 'server'],
|
|
12
|
+
},
|
|
13
|
+
type: 'browser',
|
|
14
|
+
bundlingStatus: 'bundled',
|
|
15
|
+
},
|
|
16
|
+
FullStory: {
|
|
17
|
+
debug: false,
|
|
18
|
+
org: 'se',
|
|
19
|
+
trackAllPages: false,
|
|
20
|
+
trackCategorizedPages: false,
|
|
21
|
+
trackNamedPages: false,
|
|
22
|
+
versionSettings: {
|
|
23
|
+
version: '3.0.1',
|
|
24
|
+
componentTypes: ['browser'],
|
|
25
|
+
},
|
|
26
|
+
type: 'browser',
|
|
27
|
+
bundlingStatus: 'bundled',
|
|
28
|
+
},
|
|
29
|
+
'Google Analytics': {
|
|
30
|
+
anonymizeIp: false,
|
|
31
|
+
classic: false,
|
|
32
|
+
contentGroupings: {},
|
|
33
|
+
dimensions: {},
|
|
34
|
+
domain: '',
|
|
35
|
+
doubleClick: false,
|
|
36
|
+
enableServerIdentify: false,
|
|
37
|
+
enhancedEcommerce: false,
|
|
38
|
+
enhancedLinkAttribution: false,
|
|
39
|
+
identifyCategory: '',
|
|
40
|
+
identifyEventName: '',
|
|
41
|
+
ignoredReferrers: [],
|
|
42
|
+
includeSearch: false,
|
|
43
|
+
metrics: {},
|
|
44
|
+
mobileTrackingId: '',
|
|
45
|
+
nameTracker: false,
|
|
46
|
+
nonInteraction: false,
|
|
47
|
+
optimize: '',
|
|
48
|
+
protocolMappings: {},
|
|
49
|
+
reportUncaughtExceptions: false,
|
|
50
|
+
resetCustomDimensionsOnPage: [],
|
|
51
|
+
sampleRate: 100,
|
|
52
|
+
sendUserId: false,
|
|
53
|
+
setAllMappedProps: true,
|
|
54
|
+
siteSpeedSampleRate: 1,
|
|
55
|
+
trackCategorizedPages: true,
|
|
56
|
+
trackNamedPages: true,
|
|
57
|
+
trackingId: 'UA-970334309-1',
|
|
58
|
+
useGoogleAmpClientId: false,
|
|
59
|
+
versionSettings: {
|
|
60
|
+
version: '2.18.5',
|
|
61
|
+
componentTypes: ['browser', 'ios', 'android', 'server'],
|
|
62
|
+
},
|
|
63
|
+
type: 'browser',
|
|
64
|
+
bundlingStatus: 'unbundled',
|
|
65
|
+
},
|
|
66
|
+
'Customer.io Data Pipelines': {
|
|
67
|
+
apiKey: 'D8frB7upBChqDN9PMWksNvZYDaKJIYo6',
|
|
68
|
+
unbundledIntegrations: ['Google Analytics'],
|
|
69
|
+
addBundledMetadata: true,
|
|
70
|
+
maybeBundledConfigIds: {
|
|
71
|
+
'Customer.io': ['60104dde8882b933c2006d1f'],
|
|
72
|
+
FullStory: ['6010547f5a1d4d46c418d68e'],
|
|
73
|
+
},
|
|
74
|
+
versionSettings: {
|
|
75
|
+
version: '4.4.7',
|
|
76
|
+
componentTypes: ['browser'],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
plan: {
|
|
81
|
+
track: {
|
|
82
|
+
__default: {
|
|
83
|
+
enabled: true,
|
|
84
|
+
integrations: {},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
identify: {
|
|
88
|
+
__default: {
|
|
89
|
+
enabled: true,
|
|
90
|
+
},
|
|
91
|
+
address: {
|
|
92
|
+
enabled: true,
|
|
93
|
+
},
|
|
94
|
+
avatar: {
|
|
95
|
+
enabled: true,
|
|
96
|
+
},
|
|
97
|
+
bs: {
|
|
98
|
+
enabled: true,
|
|
99
|
+
},
|
|
100
|
+
bsAdjective: {
|
|
101
|
+
enabled: true,
|
|
102
|
+
},
|
|
103
|
+
bsBuzz: {
|
|
104
|
+
enabled: true,
|
|
105
|
+
},
|
|
106
|
+
bsNoun: {
|
|
107
|
+
enabled: true,
|
|
108
|
+
},
|
|
109
|
+
catchPhrase: {
|
|
110
|
+
enabled: true,
|
|
111
|
+
},
|
|
112
|
+
catchPhraseAdjective: {
|
|
113
|
+
enabled: true,
|
|
114
|
+
},
|
|
115
|
+
catchPhraseDescriptor: {
|
|
116
|
+
enabled: true,
|
|
117
|
+
},
|
|
118
|
+
catchPhraseNoun: {
|
|
119
|
+
enabled: true,
|
|
120
|
+
},
|
|
121
|
+
color: {
|
|
122
|
+
enabled: true,
|
|
123
|
+
},
|
|
124
|
+
company: {
|
|
125
|
+
enabled: true,
|
|
126
|
+
},
|
|
127
|
+
companyName: {
|
|
128
|
+
enabled: true,
|
|
129
|
+
},
|
|
130
|
+
companySuffix: {
|
|
131
|
+
enabled: true,
|
|
132
|
+
},
|
|
133
|
+
custom: {
|
|
134
|
+
enabled: true,
|
|
135
|
+
},
|
|
136
|
+
department: {
|
|
137
|
+
enabled: true,
|
|
138
|
+
},
|
|
139
|
+
domainName: {
|
|
140
|
+
enabled: true,
|
|
141
|
+
},
|
|
142
|
+
domainSuffix: {
|
|
143
|
+
enabled: true,
|
|
144
|
+
},
|
|
145
|
+
domainWord: {
|
|
146
|
+
enabled: true,
|
|
147
|
+
},
|
|
148
|
+
email: {
|
|
149
|
+
enabled: true,
|
|
150
|
+
},
|
|
151
|
+
exampleEmail: {
|
|
152
|
+
enabled: true,
|
|
153
|
+
},
|
|
154
|
+
findName: {
|
|
155
|
+
enabled: true,
|
|
156
|
+
},
|
|
157
|
+
firstName: {
|
|
158
|
+
enabled: true,
|
|
159
|
+
},
|
|
160
|
+
gender: {
|
|
161
|
+
enabled: true,
|
|
162
|
+
},
|
|
163
|
+
id: {
|
|
164
|
+
enabled: true,
|
|
165
|
+
},
|
|
166
|
+
ip: {
|
|
167
|
+
enabled: true,
|
|
168
|
+
},
|
|
169
|
+
ipv6: {
|
|
170
|
+
enabled: true,
|
|
171
|
+
},
|
|
172
|
+
jobArea: {
|
|
173
|
+
enabled: true,
|
|
174
|
+
},
|
|
175
|
+
jobDescriptor: {
|
|
176
|
+
enabled: true,
|
|
177
|
+
},
|
|
178
|
+
jobTitle: {
|
|
179
|
+
enabled: true,
|
|
180
|
+
},
|
|
181
|
+
jobType: {
|
|
182
|
+
enabled: true,
|
|
183
|
+
},
|
|
184
|
+
lastName: {
|
|
185
|
+
enabled: true,
|
|
186
|
+
},
|
|
187
|
+
mac: {
|
|
188
|
+
enabled: true,
|
|
189
|
+
},
|
|
190
|
+
name: {
|
|
191
|
+
enabled: true,
|
|
192
|
+
},
|
|
193
|
+
person: {
|
|
194
|
+
enabled: true,
|
|
195
|
+
},
|
|
196
|
+
phone: {
|
|
197
|
+
enabled: true,
|
|
198
|
+
},
|
|
199
|
+
prefix: {
|
|
200
|
+
enabled: true,
|
|
201
|
+
},
|
|
202
|
+
price: {
|
|
203
|
+
enabled: true,
|
|
204
|
+
},
|
|
205
|
+
product: {
|
|
206
|
+
enabled: true,
|
|
207
|
+
},
|
|
208
|
+
productAdjective: {
|
|
209
|
+
enabled: true,
|
|
210
|
+
},
|
|
211
|
+
productDescription: {
|
|
212
|
+
enabled: true,
|
|
213
|
+
},
|
|
214
|
+
productMaterial: {
|
|
215
|
+
enabled: true,
|
|
216
|
+
},
|
|
217
|
+
productName: {
|
|
218
|
+
enabled: true,
|
|
219
|
+
},
|
|
220
|
+
protocol: {
|
|
221
|
+
enabled: true,
|
|
222
|
+
},
|
|
223
|
+
suffix: {
|
|
224
|
+
enabled: true,
|
|
225
|
+
},
|
|
226
|
+
suffixes: {
|
|
227
|
+
enabled: true,
|
|
228
|
+
},
|
|
229
|
+
title: {
|
|
230
|
+
enabled: true,
|
|
231
|
+
},
|
|
232
|
+
url: {
|
|
233
|
+
enabled: true,
|
|
234
|
+
},
|
|
235
|
+
userAgent: {
|
|
236
|
+
enabled: true,
|
|
237
|
+
},
|
|
238
|
+
userName: {
|
|
239
|
+
enabled: true,
|
|
240
|
+
},
|
|
241
|
+
username: {
|
|
242
|
+
enabled: true,
|
|
243
|
+
},
|
|
244
|
+
website: {
|
|
245
|
+
enabled: true,
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
group: {
|
|
249
|
+
__default: {
|
|
250
|
+
enabled: true,
|
|
251
|
+
},
|
|
252
|
+
coolKids: {
|
|
253
|
+
enabled: true,
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
middlewareSettings: {
|
|
258
|
+
routingRules: [
|
|
259
|
+
{
|
|
260
|
+
matchers: [
|
|
261
|
+
{
|
|
262
|
+
ir: '["and",["=","event",{"value":"munanyo"}],["and",["=","type",{"value":"track"}],["=","properties.referrer",{"value":"munyaaaanyo"}]]]',
|
|
263
|
+
type: 'fql',
|
|
264
|
+
config: {
|
|
265
|
+
expr: 'event = "munanyo" and type = "track" and properties.referrer = "munyaaaanyo"',
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
scope: 'destinations',
|
|
270
|
+
target_type: 'workspace::project::destination::config',
|
|
271
|
+
transformers: [
|
|
272
|
+
[
|
|
273
|
+
{
|
|
274
|
+
type: 'drop_properties',
|
|
275
|
+
config: {
|
|
276
|
+
drop: {
|
|
277
|
+
properties: ['url'],
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
],
|
|
283
|
+
destinationName: 'Google Analytics',
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
},
|
|
287
|
+
enabledMiddleware: {},
|
|
288
|
+
metrics: {
|
|
289
|
+
sampleRate: 0.1,
|
|
290
|
+
},
|
|
291
|
+
legacyVideoPluginsEnabled: true,
|
|
292
|
+
remotePlugins: [],
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export const cdnSettingsMinimal: LegacySettings = {
|
|
296
|
+
integrations: {
|
|
297
|
+
[mockIntegrationName]: {},
|
|
298
|
+
},
|
|
299
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
/**
|
|
3
|
+
* This is a classic destination, such as:
|
|
4
|
+
* https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/appcues/lib/index.js
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const integration = require('@segment/analytics.js-integration')
|
|
8
|
+
|
|
9
|
+
export const mockIntegrationName = 'Fake'
|
|
10
|
+
export const Fake = integration(mockIntegrationName)
|
|
11
|
+
|
|
12
|
+
Fake.prototype.initialize = function () {
|
|
13
|
+
this.load(this.ready)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
Fake.prototype.loaded = function () {
|
|
17
|
+
return true
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
Fake.prototype.track = function () {}
|
|
21
|
+
|
|
22
|
+
Fake.prototype.load = function (callback: Function) {
|
|
23
|
+
// this callback is important to actually initialize.
|
|
24
|
+
callback()
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LegacySettings } from '../..'
|
|
2
|
+
import { createSuccess } from '../factories'
|
|
3
|
+
import { cdnSettingsMinimal } from './cdn-settings'
|
|
4
|
+
|
|
5
|
+
export const createMockFetchImplementation = (
|
|
6
|
+
cdnSettings: Partial<LegacySettings> = {}
|
|
7
|
+
) => {
|
|
8
|
+
return (...[url, req]: Parameters<typeof fetch>) => {
|
|
9
|
+
const reqUrl = url.toString()
|
|
10
|
+
if (!req || (req.method === 'get' && reqUrl.includes('cdp.customer.io'))) {
|
|
11
|
+
// GET https://cdp.customer.io/v1/projects/{writeKey}
|
|
12
|
+
return createSuccess({ ...cdnSettingsMinimal, ...cdnSettings })
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (req?.method === 'post' && reqUrl.includes('cdp.customer.io')) {
|
|
16
|
+
// POST https://cdp.customer.io/v1/{event.type}
|
|
17
|
+
return createSuccess({ success: true }, { status: 201 })
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
throw new Error(
|
|
21
|
+
`no match found for request (url:${url}, req:${JSON.stringify(req)})`
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Writekeys that are used in different unit/integration tests. These writekeys
|
|
2
|
+
// were created for the purpose of testing AJS and are not used for anything else.
|
|
3
|
+
|
|
4
|
+
export const TEST_WRITEKEY = 'D8frB7upBChqDN9PMWksNvZYDaKJIYo6' // Test cio writekey
|
|
5
|
+
export const AMPLITUDE_WRITEKEY = 'c56fd8ca27d0f9adfe8ad78d846dfcc8' // Test amplitude writekey
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type IsAny<T> = unknown extends T ? (T extends {} ? T : never) : never
|
|
2
|
+
type NotAny<T> = T extends IsAny<T> ? never : T
|
|
3
|
+
type NotUnknown<T> = unknown extends T ? never : T
|
|
4
|
+
|
|
5
|
+
type NotTopType<T> = NotAny<T> & NotUnknown<T>
|
|
6
|
+
|
|
7
|
+
// this is not meant to be run, just for type tests
|
|
8
|
+
export function assertNotAny<T>(_val: NotTopType<T>) {}
|
|
9
|
+
|
|
10
|
+
// this is not meant to be run, just for type tests
|
|
11
|
+
export function assertIs<T extends SomeType, SomeType = any>(_val: T) {}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Apache-2.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @license Apache-2.0
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) 2021 The Stdlib Authors.
|
|
23
|
+
*
|
|
24
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
25
|
+
* you may not use this file except in compliance with the License.
|
|
26
|
+
* You may obtain a copy of the License at
|
|
27
|
+
*
|
|
28
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
29
|
+
*
|
|
30
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
31
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
32
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
33
|
+
* See the License for the specific language governing permissions and
|
|
34
|
+
* limitations under the License.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @license Apache-2.0
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) 2022 The Stdlib Authors.
|
|
41
|
+
*
|
|
42
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
43
|
+
* you may not use this file except in compliance with the License.
|
|
44
|
+
* You may obtain a copy of the License at
|
|
45
|
+
*
|
|
46
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
47
|
+
*
|
|
48
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
49
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
50
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
51
|
+
* See the License for the specific language governing permissions and
|
|
52
|
+
* limitations under the License.
|
|
53
|
+
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @segment/tsub 2.0.0 - GENERATED DO NOT MODIFY
|
|
5
|
+
|
|
6
|
+
/*! For license information please see tsub.js.LICENSE.txt */
|
|
7
|
+
!function(t,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var e=r();for(var n in e)("object"==typeof exports?exports:t)[n]=e[n]}}(self,(function(){return(()=>{var t={2870:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var o=e(4303);Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return n(o).default}});var s=e(2370);Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return n(s).default}});var i=e(1444);Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return n(i).default}})},2370:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(7843));function s(t,r){if(!Array.isArray(t))return!0===i(t,r);var e,n,o,f,p=t[0];switch(p){case"!":return!s(t[1],r);case"or":for(var l=1;l<t.length;l++)if(s(t[l],r))return!0;return!1;case"and":for(l=1;l<t.length;l++)if(!s(t[l],r))return!1;return!0;case"=":case"!=":return function(t,r,e,n){switch(u(t)&&(t=s(t,n)),u(r)&&(r=s(r,n)),"object"==typeof t&&"object"==typeof r&&(t=JSON.stringify(t),r=JSON.stringify(r)),e){case"=":return t===r;case"!=":return t!==r;default:throw new Error("Invalid operator in compareItems: ".concat(e))}}(i(t[1],r),i(t[2],r),p,r);case"<=":case"<":case">":case">=":return function(t,r,e,n){if(u(t)&&(t=s(t,n)),u(r)&&(r=s(r,n)),"number"!=typeof t||"number"!=typeof r)return!1;switch(e){case"<=":return t<=r;case">=":return t>=r;case"<":return t<r;case">":return t>r;default:throw new Error("Invalid operator in compareNumbers: ".concat(e))}}(i(t[1],r),i(t[2],r),p,r);case"in":return function(t,r,e){return void 0!==r.find((function(r){return i(r,e)===t}))}(i(t[1],r),i(t[2],r),r);case"contains":return o=i(t[1],r),f=i(t[2],r),"string"==typeof o&&"string"==typeof f&&-1!==o.indexOf(f);case"match":return e=i(t[1],r),n=i(t[2],r),"string"==typeof e&&"string"==typeof n&&function(t,r){var e,n;t:for(;t.length>0;){var o,s;if(o=(e=a(t)).star,s=e.chunk,t=e.pattern,o&&""===s)return!0;var i=c(s,r),u=i.t,f=i.ok,p=i.err;if(p)return!1;if(!f||!(0===u.length||t.length>0)){if(o)for(var l=0;l<r.length;l++){if(u=(n=c(s,r.slice(l+1))).t,f=n.ok,p=n.err,f){if(0===t.length&&u.length>0)continue;r=u;continue t}if(p)return!1}return!1}r=u}return 0===r.length}(n,e);case"lowercase":var v=i(t[1],r);return"string"!=typeof v?null:v.toLowerCase();case"typeof":return typeof i(t[1],r);case"length":return function(t){return null===t?0:Array.isArray(t)||"string"==typeof t?t.length:NaN}(i(t[1],r));default:throw new Error("FQL IR could not evaluate for token: ".concat(p))}}function i(t,r){return Array.isArray(t)?t:"object"==typeof t?t.value:(0,o.default)(r,t)}function u(t){return!!Array.isArray(t)&&(("lowercase"===t[0]||"length"===t[0]||"typeof"===t[0])&&2===t.length||("contains"===t[0]||"match"===t[0])&&3===t.length)}function a(t){for(var r={star:!1,chunk:"",pattern:""};t.length>0&&"*"===t[0];)t=t.slice(1),r.star=!0;var e,n=!1;t:for(e=0;e<t.length;e++)switch(t[e]){case"\\":e+1<t.length&&e++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break t}return r.chunk=t.slice(0,e),r.pattern=t.slice(e),r}function c(t,r){for(var e,n,o={t:"",ok:!1,err:!1};t.length>0;){if(0===r.length)return o;switch(t[0]){case"[":var s=r[0];r=r.slice(1);var i=!0;(t=t.slice(1)).length>0&&"^"===t[0]&&(i=!1,t=t.slice(1));for(var u=!1,a=0;;){if(t.length>0&&"]"===t[0]&&a>0){t=t.slice(1);break}var c,p="";if(c=(e=f(t)).char,t=e.newChunk,e.err)return o;if(p=c,"-"===t[0]&&(p=(n=f(t.slice(1))).char,t=n.newChunk,n.err))return o;c<=s&&s<=p&&(u=!0),a++}if(u!==i)return o;break;case"?":r=r.slice(1),t=t.slice(1);break;case"\\":if(0===(t=t.slice(1)).length)return o.err=!0,o;default:if(t[0]!==r[0])return o;r=r.slice(1),t=t.slice(1)}}return o.t=r,o.ok=!0,o.err=!1,o}function f(t){var r={char:"",newChunk:"",err:!1};return 0===t.length||"-"===t[0]||"]"===t[0]||"\\"===t[0]&&0===(t=t.slice(1)).length?(r.err=!0,r):(r.char=t[0],r.newChunk=t.slice(1),0===r.newChunk.length&&(r.err=!0),r)}r.default=function(t,r){if(!r)throw new Error("No matcher supplied!");switch(r.type){case"all":return!0;case"fql":return function(t,r){if(!t)return!1;try{t=JSON.parse(t)}catch(r){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(t,'": ').concat(r))}var e=s(t,r);return"boolean"==typeof e&&e}(r.ir,t);default:throw new Error("Matcher of type ".concat(r.type," unsupported."))}}},1444:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e=function(){function t(t){this.rules=[],this.rules=t||[]}return t.prototype.getRulesByDestinationName=function(t){for(var r=[],e=0,n=this.rules;e<n.length;e++){var o=n[e];o.destinationName!==t&&void 0!==o.destinationName||r.push(o)}return r},t}();r.default=e},4303:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(e(2263)),s=n(e(7843)),i=n(e(5500)),u=e(2341),a=e(4966);function c(t,r){p(t,r.drop,(function(t,r){r.forEach((function(r){return delete t[r]}))}))}function f(t,r){p(t,r.allow,(function(t,r){Object.keys(t).forEach((function(e){r.includes(e)||delete t[e]}))}))}function p(t,r,e){Object.entries(r).forEach((function(r){var n=r[0],o=r[1],i=function(t){"object"==typeof t&&null!==t&&e(t,o)},u=""===n?t:(0,s.default)(t,n);Array.isArray(u)?u.forEach(i):i(u)}))}function l(t,r){var e=JSON.parse(JSON.stringify(t));for(var n in r.map)if(r.map.hasOwnProperty(n)){var o=r.map[n],i=n.split("."),c=void 0;if(i.length>1?(i.pop(),c=(0,s.default)(e,i.join("."))):c=t,"object"==typeof c){if(o.copy){var f=(0,s.default)(e,o.copy);void 0!==f&&(0,u.dset)(t,n,f)}else if(o.move){var p=(0,s.default)(e,o.move);void 0!==p&&(0,u.dset)(t,n,p),(0,a.unset)(t,o.move)}else o.hasOwnProperty("set")&&(0,u.dset)(t,n,o.set);if(o.to_string){var l=(0,s.default)(t,n);if("string"==typeof l||"object"==typeof l&&null!==l)continue;void 0!==l?(0,u.dset)(t,n,JSON.stringify(l)):(0,u.dset)(t,n,"undefined")}}}}function v(t,r){return!(r.sample.percent<=0)&&(r.sample.percent>=1||(r.sample.path?function(t,r){var e=(0,s.default)(t,r.sample.path),n=(0,o.default)(JSON.stringify(e)),u=-64,a=[];y(n.slice(0,8),a);for(var c=0,f=0;f<64&&1!==a[f];f++)c++;if(0!==c){var p=[];y(n.slice(9,16),p),u-=c,a.splice(0,c),p.splice(64-c),a=a.concat(p)}return a[63]=0===a[63]?1:0,(0,i.default)(parseInt(a.join(""),2),u)<r.sample.percent}(t,r):(e=r.sample.percent,Math.random()<=e)));var e}function y(t,r){for(var e=0;e<8;e++)for(var n=t[e],o=128;o>=1;o/=2)n-o>=0?(n-=o,r.push(1)):r.push(0)}r.default=function(t,r){for(var e=t,n=0,o=r;n<o.length;n++){var s=o[n];switch(s.type){case"drop":return null;case"drop_properties":c(e,s.config);break;case"allow_properties":f(e,s.config);break;case"sample_event":if(v(e,s.config))break;return null;case"map_properties":l(e,s.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(s.type,'" is unsupported.'))}}return e}},4966:function(t,r,e){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.unset=void 0;var o=n(e(7843));r.unset=function(t,r){if((0,o.default)(t,r)){for(var e=r.split("."),n=e.pop();e.length&&"\\"===e[e.length-1].slice(-1);)n=e.pop().slice(0,-1)+"."+n;for(;e.length;)t=t[r=e.shift()];return delete t[n]}return!0}},3304:t=>{"use strict";var r="function"==typeof Float64Array?Float64Array:void 0;t.exports=r},7382:(t,r,e)=>{"use strict";var n,o=e(5569),s=e(3304),i=e(8482);n=o()?s:i,t.exports=n},8482:t=>{"use strict";t.exports=function(){throw new Error("not implemented")}},6322:(t,r,e)=>{"use strict";var n,o=e(2508),s=e(5679),i=e(882);n=o()?s:i,t.exports=n},882:t=>{"use strict";t.exports=function(){throw new Error("not implemented")}},5679:t=>{"use strict";var r="function"==typeof Uint16Array?Uint16Array:void 0;t.exports=r},4773:(t,r,e)=>{"use strict";var n,o=e(9773),s=e(3004),i=e(3078);n=o()?s:i,t.exports=n},3078:t=>{"use strict";t.exports=function(){throw new Error("not implemented")}},3004:t=>{"use strict";var r="function"==typeof Uint32Array?Uint32Array:void 0;t.exports=r},7980:(t,r,e)=>{"use strict";var n,o=e(8114),s=e(6737),i=e(3357);n=o()?s:i,t.exports=n},3357:t=>{"use strict";t.exports=function(){throw new Error("not implemented")}},6737:t=>{"use strict";var r="function"==typeof Uint8Array?Uint8Array:void 0;t.exports=r},2684:t=>{"use strict";var r="function"==typeof Float64Array?Float64Array:null;t.exports=r},5569:(t,r,e)=>{"use strict";var n=e(3876);t.exports=n},3876:(t,r,e)=>{"use strict";var n=e(1448),o=e(2684);t.exports=function(){var t,r;if("function"!=typeof o)return!1;try{r=new o([1,3.14,-3.14,NaN]),t=n(r)&&1===r[0]&&3.14===r[1]&&-3.14===r[2]&&r[3]!=r[3]}catch(r){t=!1}return t}},9048:(t,r,e)=>{"use strict";var n=e(3763);t.exports=n},3763:t=>{"use strict";var r=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&r.call(t,e)}},7009:(t,r,e)=>{"use strict";var n=e(6784);t.exports=n},6784:t=>{"use strict";t.exports=function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}},3123:(t,r,e)=>{"use strict";var n=e(8481);t.exports=n},8481:(t,r,e)=>{"use strict";var n=e(7009)();t.exports=function(){return n&&"symbol"==typeof Symbol.toStringTag}},2508:(t,r,e)=>{"use strict";var n=e(3403);t.exports=n},3403:(t,r,e)=>{"use strict";var n=e(768),o=e(9668),s=e(187);t.exports=function(){var t,r;if("function"!=typeof s)return!1;try{r=new s(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},187:t=>{"use strict";var r="function"==typeof Uint16Array?Uint16Array:null;t.exports=r},9773:(t,r,e)=>{"use strict";var n=e(2822);t.exports=n},2822:(t,r,e)=>{"use strict";var n=e(2744),o=e(3899),s=e(746);t.exports=function(){var t,r;if("function"!=typeof s)return!1;try{r=new s(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},746:t=>{"use strict";var r="function"==typeof Uint32Array?Uint32Array:null;t.exports=r},8114:(t,r,e)=>{"use strict";var n=e(8066);t.exports=n},8066:(t,r,e)=>{"use strict";var n=e(8279),o=e(3443),s=e(2731);t.exports=function(){var t,r;if("function"!=typeof s)return!1;try{r=new s(r=[1,3.14,-3.14,o+1,o+2]),t=n(r)&&1===r[0]&&3===r[1]&&r[2]===o-2&&0===r[3]&&1===r[4]}catch(r){t=!1}return t}},2731:t=>{"use strict";var r="function"==typeof Uint8Array?Uint8Array:null;t.exports=r},1448:(t,r,e)=>{"use strict";var n=e(1453);t.exports=n},1453:(t,r,e)=>{"use strict";var n=e(6208),o="function"==typeof Float64Array;t.exports=function(t){return o&&t instanceof Float64Array||"[object Float64Array]"===n(t)}},9331:(t,r,e)=>{"use strict";var n=e(7980),o={uint16:e(6322),uint8:n};t.exports=o},5902:(t,r,e)=>{"use strict";var n=e(4106);t.exports=n},4106:(t,r,e)=>{"use strict";var n,o,s=e(9331);(o=new s.uint16(1))[0]=4660,n=52===new s.uint8(o.buffer)[0],t.exports=n},768:(t,r,e)=>{"use strict";var n=e(3823);t.exports=n},3823:(t,r,e)=>{"use strict";var n=e(6208),o="function"==typeof Uint16Array;t.exports=function(t){return o&&t instanceof Uint16Array||"[object Uint16Array]"===n(t)}},2744:(t,r,e)=>{"use strict";var n=e(2326);t.exports=n},2326:(t,r,e)=>{"use strict";var n=e(6208),o="function"==typeof Uint32Array;t.exports=function(t){return o&&t instanceof Uint32Array||"[object Uint32Array]"===n(t)}},8279:(t,r,e)=>{"use strict";var n=e(208);t.exports=n},208:(t,r,e)=>{"use strict";var n=e(6208),o="function"==typeof Uint8Array;t.exports=function(t){return o&&t instanceof Uint8Array||"[object Uint8Array]"===n(t)}},6315:t=>{"use strict";t.exports=1023},1686:t=>{"use strict";t.exports=2147483647},3105:t=>{"use strict";t.exports=2146435072},3449:t=>{"use strict";t.exports=2147483648},6988:t=>{"use strict";t.exports=-1023},9777:t=>{"use strict";t.exports=1023},3690:t=>{"use strict";t.exports=-1074},2918:(t,r,e)=>{"use strict";var n=e(4772).NEGATIVE_INFINITY;t.exports=n},4165:t=>{"use strict";var r=Number.POSITIVE_INFINITY;t.exports=r},6488:t=>{"use strict";t.exports=22250738585072014e-324},9668:t=>{"use strict";t.exports=65535},3899:t=>{"use strict";t.exports=4294967295},3443:t=>{"use strict";t.exports=255},7011:(t,r,e)=>{"use strict";var n=e(812);t.exports=n},812:(t,r,e)=>{"use strict";var n=e(4165),o=e(2918);t.exports=function(t){return t===n||t===o}},1883:(t,r,e)=>{"use strict";var n=e(1797);t.exports=n},1797:t=>{"use strict";t.exports=function(t){return t!=t}},513:(t,r,e)=>{"use strict";var n=e(5760);t.exports=n},5760:t=>{"use strict";t.exports=function(t){return Math.abs(t)}},5848:(t,r,e)=>{"use strict";var n=e(677);t.exports=n},677:(t,r,e)=>{"use strict";var n=e(3449),o=e(1686),s=e(7838),i=e(1921),u=e(2490),a=[0,0];t.exports=function(t,r){var e,c;return s.assign(t,a,1,0),e=a[0],e&=o,c=i(r),u(e|=c&=n,a[1])}},5500:(t,r,e)=>{"use strict";var n=e(8397);t.exports=n},8397:(t,r,e)=>{"use strict";var n=e(4165),o=e(2918),s=e(6315),i=e(9777),u=e(6988),a=e(3690),c=e(1883),f=e(7011),p=e(5848),l=e(4948),v=e(8478),y=e(7838),d=e(2490),h=[0,0],x=[0,0];t.exports=function(t,r){var e,b;return 0===t||c(t)||f(t)?t:(l(h,t),r+=h[1],(r+=v(t=h[0]))<a?p(0,t):r>i?t<0?o:n:(r<=u?(r+=52,b=2220446049250313e-31):b=1,y(x,t),e=x[0],e&=2148532223,b*d(e|=r+s<<20,x[1])))}},4772:(t,r,e)=>{"use strict";var n=e(7548);t.exports=n},7548:t=>{"use strict";t.exports=Number},8478:(t,r,e)=>{"use strict";var n=e(4500);t.exports=n},4500:(t,r,e)=>{"use strict";var n=e(1921),o=e(3105),s=e(6315);t.exports=function(t){var r=n(t);return(r=(r&o)>>>20)-s|0}},2490:(t,r,e)=>{"use strict";var n=e(9639);t.exports=n},4445:(t,r,e)=>{"use strict";var n,o,s;!0===e(5902)?(o=1,s=0):(o=0,s=1),n={HIGH:o,LOW:s},t.exports=n},9639:(t,r,e)=>{"use strict";var n=e(4773),o=e(7382),s=e(4445),i=new o(1),u=new n(i.buffer),a=s.HIGH,c=s.LOW;t.exports=function(t,r){return u[a]=t,u[c]=r,i[0]}},5646:(t,r,e)=>{"use strict";var n;n=!0===e(5902)?1:0,t.exports=n},1921:(t,r,e)=>{"use strict";var n=e(6285);t.exports=n},6285:(t,r,e)=>{"use strict";var n=e(4773),o=e(7382),s=e(5646),i=new o(1),u=new n(i.buffer);t.exports=function(t){return i[0]=t,u[s]}},9024:(t,r,e)=>{"use strict";var n=e(6488),o=e(7011),s=e(1883),i=e(513);t.exports=function(t,r,e,u){return s(t)||o(t)?(r[u]=t,r[u+e]=0,r):0!==t&&i(t)<n?(r[u]=4503599627370496*t,r[u+e]=-52,r):(r[u]=t,r[u+e]=0,r)}},4948:(t,r,e)=>{"use strict";var n=e(7576),o=e(9422);n(o,"assign",e(9024)),t.exports=o},9422:(t,r,e)=>{"use strict";var n=e(9024);t.exports=function(t){return n(t,[0,0],1,0)}},7838:(t,r,e)=>{"use strict";var n=e(4010);t.exports=n},5782:(t,r,e)=>{"use strict";var n,o,s;!0===e(5902)?(o=1,s=0):(o=0,s=1),n={HIGH:o,LOW:s},t.exports=n},4010:(t,r,e)=>{"use strict";var n=e(4903);t.exports=function(t,r){return 1===arguments.length?n([0,0],t):n(t,r)}},4903:(t,r,e)=>{"use strict";var n=e(4773),o=e(7382),s=e(5782),i=new o(1),u=new n(i.buffer),a=s.HIGH,c=s.LOW;t.exports=function(t,r){return i[0]=r,t[0]=u[a],t[1]=u[c],t}},7576:(t,r,e)=>{"use strict";var n=e(7063);t.exports=n},7063:(t,r,e)=>{"use strict";var n=e(6691);t.exports=function(t,r,e){n(t,r,{configurable:!1,enumerable:!1,writable:!1,value:e})}},2073:t=>{"use strict";var r=Object.defineProperty;t.exports=r},1680:t=>{"use strict";var r="function"==typeof Object.defineProperty?Object.defineProperty:null;t.exports=r},1471:(t,r,e)=>{"use strict";var n=e(1680);t.exports=function(){try{return n({},"x",{}),!0}catch(t){return!1}}},6691:(t,r,e)=>{"use strict";var n,o=e(1471),s=e(2073),i=e(1309);n=o()?s:i,t.exports=n},1309:t=>{"use strict";var r=Object.prototype,e=r.toString,n=r.__defineGetter__,o=r.__defineSetter__,s=r.__lookupGetter__,i=r.__lookupSetter__;t.exports=function(t,u,a){var c,f,p,l;if("object"!=typeof t||null===t||"[object Array]"===e.call(t))throw new TypeError("invalid argument. First argument must be an object. Value: `"+t+"`.");if("object"!=typeof a||null===a||"[object Array]"===e.call(a))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+a+"`.");if((f="value"in a)&&(s.call(t,u)||i.call(t,u)?(c=t.__proto__,t.__proto__=r,delete t[u],t[u]=a.value,t.__proto__=c):t[u]=a.value),p="get"in a,l="set"in a,f&&(p||l))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return p&&n&&n.call(t,u,a.get),l&&o&&o.call(t,u,a.set),t}},6208:(t,r,e)=>{"use strict";var n,o=e(3123),s=e(7407),i=e(4210);n=o()?i:s,t.exports=n},7407:(t,r,e)=>{"use strict";var n=e(173);t.exports=function(t){return n.call(t)}},4210:(t,r,e)=>{"use strict";var n=e(9048),o=e(1403),s=e(173);t.exports=function(t){var r,e,i;if(null==t)return s.call(t);e=t[o],r=n(t,o);try{t[o]=void 0}catch(r){return s.call(t)}return i=s.call(t),r?t[o]=e:delete t[o],i}},173:t=>{"use strict";var r=Object.prototype.toString;t.exports=r},1403:t=>{"use strict";var r="function"==typeof Symbol?Symbol.toStringTag:"";t.exports=r},7843:function(t){t.exports=function(t,r,e,n,o){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)t=t?t[r[n]]:o;return t===o?e:t}},2341:(t,r)=>{r.dset=function(t,r,e){r.split&&(r=r.split("."));for(var n,o,s=0,i=r.length,u=t;s<i&&"__proto__"!==(o=r[s++])&&"constructor"!==o&&"prototype"!==o;)u=u[o]=s===i?e:typeof(n=u[o])==typeof r?n:0*r[s]!=0||~(""+r[s]).indexOf(".")?{}:[]}},2263:(t,r,e)=>{"use strict";e.r(r),e.d(r,{default:()=>s});for(var n=[],o=0;o<64;)n[o]=0|4294967296*Math.sin(++o%Math.PI);function s(t){var r,e,s,i=[r=1732584193,e=4023233417,~r,~e],u=[],a=unescape(encodeURI(t))+"",c=a.length;for(t=--c/4+2|15,u[--t]=8*c;~c;)u[c>>2]|=a.charCodeAt(c)<<8*c--;for(o=a=0;o<t;o+=16){for(c=i;a<64;c=[s=c[3],r+((s=c[0]+[r&e|~r&s,s&r|~s&e,r^e^s,e^(r|~s)][c=a>>4]+n[a]+~~u[o|15&[a,5*a+1,3*a+5,7*a][c]])<<(c=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*c+a++%4])|s>>>-c),r,e])r=0|c[1],e=c[2];for(a=4;a;)i[--a]+=c[a]}for(t="";a<32;)t+=(i[a>>3]>>4*(1^a++)&15).toString(16);return t}}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var s=r[n]={exports:{}};return t[n].call(s.exports,s,s.exports,e),s.exports}return e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e(2870)})()}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface Rule {
|
|
2
|
+
scope: string
|
|
3
|
+
target_type: string
|
|
4
|
+
matchers: Matcher[]
|
|
5
|
+
transformers: Transformer[][]
|
|
6
|
+
destinationName?: string
|
|
7
|
+
}
|
|
8
|
+
export interface Matcher {
|
|
9
|
+
type: string
|
|
10
|
+
ir: string
|
|
11
|
+
}
|
|
12
|
+
export interface Transformer {
|
|
13
|
+
type: string
|
|
14
|
+
config?: any
|
|
15
|
+
}
|
|
16
|
+
export interface Store {
|
|
17
|
+
new (rules?: Rule[]): this
|
|
18
|
+
getRulesByDestinationName(destinationName: string): Rule[]
|
|
19
|
+
}
|