@slicemachine/manager 0.17.8-beta.5 → 0.17.8-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/config.cjs +91 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/config.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/config.js +91 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/config.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/constants.cjs +17 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/constants.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/constants.js +17 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/constants.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/core-client.cjs +190 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/core-client.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/core-client.js +190 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/core-client.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/identify.cjs +90 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/identify.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/identify.js +90 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/identify.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/logger.cjs +64 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/logger.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/logger.js +64 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/logger.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/messages.cjs +17 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/messages.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/messages.js +17 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/messages.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.cjs +323 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +323 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/revenue.cjs +55 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/revenue.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/revenue.js +55 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/revenue.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/timeline.cjs +251 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/timeline.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/timeline.js +251 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/timeline.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/transports/base.cjs +103 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/transports/base.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +103 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/transports/base.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.cjs +15 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js +15 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/debug.cjs +126 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/debug.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js +126 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.cjs +34 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js +34 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.cjs +14 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js +14 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.cjs +9 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js +9 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.cjs +25 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js +25 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.cjs +58 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js +58 -0
- package/dist/_node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/config.cjs +21 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/config.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/config.js +21 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/config.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/index.cjs +23 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/index.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/index.js +24 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/index.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/node-client.cjs +81 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/node-client.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/node-client.js +81 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/node-client.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/plugins/context.cjs +37 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/plugins/context.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js +37 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/transports/http.cjs +85 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/transports/http.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/transports/http.js +67 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/transports/http.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/version.cjs +5 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/version.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/version.js +5 -0
- package/dist/_node_modules/@amplitude/analytics-node/lib/esm/version.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/event.cjs +30 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/event.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/event.js +33 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/event.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/index.cjs +41 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/index.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/index.js +17 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/index.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/logger.cjs +11 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/logger.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/logger.js +12 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/logger.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/plugin.cjs +9 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/plugin.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/plugin.js +10 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/plugin.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/server-zone.cjs +9 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/server-zone.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/server-zone.js +10 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/server-zone.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/status.cjs +15 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/status.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/status.js +16 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/status.js.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/transport.cjs +9 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/transport.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/transport.js +10 -0
- package/dist/_node_modules/@amplitude/analytics-types/lib/esm/transport.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-core/dist/experiment-core.esm.cjs +1247 -0
- package/dist/_node_modules/@amplitude/experiment-core/dist/experiment-core.esm.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-core/dist/experiment-core.esm.js +1247 -0
- package/dist/_node_modules/@amplitude/experiment-core/dist/experiment-core.esm.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/gen/version.cjs +7 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/gen/version.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/gen/version.js +8 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/gen/version.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment-filter.cjs +29 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment-filter.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment-filter.js +30 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment-filter.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment-service.cjs +92 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment-service.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment-service.js +91 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment-service.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment.cjs +25 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment.js +26 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/assignment/assignment.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/cookie.cjs +84 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/cookie.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/cookie.js +85 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/cookie.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/factory.cjs +37 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/factory.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/factory.js +38 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/factory.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/index.cjs +61 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/index.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/index.js +60 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/index.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/cache.cjs +87 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/cache.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/cache.js +88 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/cache.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/client.cjs +204 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/client.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/client.js +205 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/client.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/fetcher.cjs +82 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/fetcher.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/fetcher.js +83 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/fetcher.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/poller.cjs +121 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/poller.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/poller.js +122 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/poller.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/remote/client.cjs +166 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/remote/client.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/remote/client.js +167 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/remote/client.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/transport/http.cjs +105 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/transport/http.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/transport/http.js +106 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/transport/http.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/types/config.cjs +38 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/types/config.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/types/config.js +39 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/types/config.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/backoff.cjs +51 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/backoff.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/backoff.js +52 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/backoff.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/cache.cjs +92 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/cache.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/cache.js +93 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/cache.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/hash.cjs +18 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/hash.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/hash.js +19 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/hash.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/logger.cjs +20 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/logger.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/logger.js +21 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/logger.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/time.cjs +13 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/time.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/time.js +14 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/time.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/user.cjs +44 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/user.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/user.js +45 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/user.js.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/variant.cjs +39 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/variant.cjs.map +1 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/variant.js +38 -0
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/util/variant.js.map +1 -0
- package/dist/_node_modules/cross-spawn/index.cjs +1 -1
- package/dist/_node_modules/cross-spawn/index.js +1 -1
- package/dist/_node_modules/execa/_node_modules/get-stream/index.cjs +1 -1
- package/dist/_node_modules/execa/_node_modules/get-stream/index.js +1 -1
- package/dist/_node_modules/path-key/index.cjs +1 -1
- package/dist/_node_modules/path-key/index.js +1 -1
- package/dist/_node_modules/signal-exit/index.cjs +1 -1
- package/dist/_node_modules/signal-exit/index.js +1 -1
- package/dist/_node_modules/tslib/tslib.es6.cjs +206 -0
- package/dist/_node_modules/tslib/tslib.es6.cjs.map +1 -0
- package/dist/_node_modules/tslib/tslib.es6.js +207 -0
- package/dist/_node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +30 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +30 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/assignment-filter.cjs +5 -0
- package/dist/_virtual/assignment-filter.cjs.map +1 -0
- package/dist/_virtual/assignment-filter.js +5 -0
- package/dist/_virtual/assignment-filter.js.map +1 -0
- package/dist/_virtual/assignment-service.cjs +5 -0
- package/dist/_virtual/assignment-service.cjs.map +1 -0
- package/dist/_virtual/assignment-service.js +5 -0
- package/dist/_virtual/assignment-service.js.map +1 -0
- package/dist/_virtual/assignment.cjs +5 -0
- package/dist/_virtual/assignment.cjs.map +1 -0
- package/dist/_virtual/assignment.js +5 -0
- package/dist/_virtual/assignment.js.map +1 -0
- package/dist/_virtual/backoff.cjs +5 -0
- package/dist/_virtual/backoff.cjs.map +1 -0
- package/dist/_virtual/backoff.js +5 -0
- package/dist/_virtual/backoff.js.map +1 -0
- package/dist/_virtual/cache.cjs +5 -0
- package/dist/_virtual/cache.cjs.map +1 -0
- package/dist/_virtual/cache.js +5 -0
- package/dist/_virtual/cache.js.map +1 -0
- package/dist/_virtual/cache2.cjs +5 -0
- package/dist/_virtual/cache2.cjs.map +1 -0
- package/dist/_virtual/cache2.js +5 -0
- package/dist/_virtual/cache2.js.map +1 -0
- package/dist/_virtual/client.cjs +5 -0
- package/dist/_virtual/client.cjs.map +1 -0
- package/dist/_virtual/client.js +5 -0
- package/dist/_virtual/client.js.map +1 -0
- package/dist/_virtual/client2.cjs +5 -0
- package/dist/_virtual/client2.cjs.map +1 -0
- package/dist/_virtual/client2.js +5 -0
- package/dist/_virtual/client2.js.map +1 -0
- package/dist/_virtual/config.cjs +5 -0
- package/dist/_virtual/config.cjs.map +1 -0
- package/dist/_virtual/config.js +5 -0
- package/dist/_virtual/config.js.map +1 -0
- package/dist/_virtual/cookie.cjs +5 -0
- package/dist/_virtual/cookie.cjs.map +1 -0
- package/dist/_virtual/cookie.js +5 -0
- package/dist/_virtual/cookie.js.map +1 -0
- package/dist/_virtual/experiment-core.esm.cjs +6 -0
- package/dist/_virtual/experiment-core.esm.cjs.map +1 -0
- package/dist/_virtual/experiment-core.esm.js +7 -0
- package/dist/_virtual/experiment-core.esm.js.map +1 -0
- package/dist/_virtual/factory.cjs +5 -0
- package/dist/_virtual/factory.cjs.map +1 -0
- package/dist/_virtual/factory.js +5 -0
- package/dist/_virtual/factory.js.map +1 -0
- package/dist/_virtual/fetcher.cjs +5 -0
- package/dist/_virtual/fetcher.cjs.map +1 -0
- package/dist/_virtual/fetcher.js +5 -0
- package/dist/_virtual/fetcher.js.map +1 -0
- package/dist/_virtual/hash.cjs +5 -0
- package/dist/_virtual/hash.cjs.map +1 -0
- package/dist/_virtual/hash.js +5 -0
- package/dist/_virtual/hash.js.map +1 -0
- package/dist/_virtual/http.cjs +5 -0
- package/dist/_virtual/http.cjs.map +1 -0
- package/dist/_virtual/http.js +5 -0
- package/dist/_virtual/http.js.map +1 -0
- package/dist/_virtual/index.cjs +2 -2
- package/dist/_virtual/index.js +2 -2
- package/dist/_virtual/index2.cjs +4 -3
- package/dist/_virtual/index2.cjs.map +1 -1
- package/dist/_virtual/index2.js +4 -2
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.cjs +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/_virtual/index4.cjs +2 -2
- package/dist/_virtual/index4.js +2 -2
- package/dist/_virtual/index5.cjs +5 -0
- package/dist/_virtual/index5.cjs.map +1 -0
- package/dist/_virtual/index5.js +5 -0
- package/dist/_virtual/index5.js.map +1 -0
- package/dist/_virtual/index6.cjs +5 -0
- package/dist/_virtual/index6.cjs.map +1 -0
- package/dist/_virtual/index6.js +5 -0
- package/dist/_virtual/index6.js.map +1 -0
- package/dist/_virtual/logger.cjs +5 -0
- package/dist/_virtual/logger.cjs.map +1 -0
- package/dist/_virtual/logger.js +5 -0
- package/dist/_virtual/logger.js.map +1 -0
- package/dist/_virtual/poller.cjs +5 -0
- package/dist/_virtual/poller.cjs.map +1 -0
- package/dist/_virtual/poller.js +5 -0
- package/dist/_virtual/poller.js.map +1 -0
- package/dist/_virtual/time.cjs +5 -0
- package/dist/_virtual/time.cjs.map +1 -0
- package/dist/_virtual/time.js +5 -0
- package/dist/_virtual/time.js.map +1 -0
- package/dist/_virtual/user.cjs +5 -0
- package/dist/_virtual/user.cjs.map +1 -0
- package/dist/_virtual/user.js +5 -0
- package/dist/_virtual/user.js.map +1 -0
- package/dist/_virtual/variant.cjs +5 -0
- package/dist/_virtual/variant.cjs.map +1 -0
- package/dist/_virtual/variant.js +5 -0
- package/dist/_virtual/variant.js.map +1 -0
- package/dist/_virtual/version.cjs +5 -0
- package/dist/_virtual/version.cjs.map +1 -0
- package/dist/_virtual/version.js +5 -0
- package/dist/_virtual/version.js.map +1 -0
- package/dist/constants/API_TOKENS.cjs +8 -2
- package/dist/constants/API_TOKENS.cjs.map +1 -1
- package/dist/constants/API_TOKENS.d.ts +1 -0
- package/dist/constants/API_TOKENS.js +8 -2
- package/dist/constants/API_TOKENS.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/managers/telemetry/TelemetryManager.cjs +28 -0
- package/dist/managers/telemetry/TelemetryManager.cjs.map +1 -1
- package/dist/managers/telemetry/TelemetryManager.d.ts +4 -0
- package/dist/managers/telemetry/TelemetryManager.js +28 -0
- package/dist/managers/telemetry/TelemetryManager.js.map +1 -1
- package/dist/managers/telemetry/types.cjs +8 -2
- package/dist/managers/telemetry/types.cjs.map +1 -1
- package/dist/managers/telemetry/types.d.ts +11 -2
- package/dist/managers/telemetry/types.js +8 -2
- package/dist/managers/telemetry/types.js.map +1 -1
- package/package.json +3 -2
- package/src/constants/API_TOKENS.ts +9 -2
- package/src/index.ts +2 -0
- package/src/managers/telemetry/TelemetryManager.ts +42 -1
- package/src/managers/telemetry/types.ts +27 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core-client.js","sources":["../../../../../../../../node_modules/@amplitude/analytics-core/lib/esm/core-client.js"],"sourcesContent":["import { __awaiter, __generator, __values } from \"tslib\";\nimport { createGroupIdentifyEvent, createIdentifyEvent, createTrackEvent, createRevenueEvent, createGroupEvent, } from './utils/event-builder';\nimport { Timeline } from './timeline';\nimport { buildResult } from './utils/result-builder';\nimport { CLIENT_NOT_INITIALIZED, OPT_OUT_MESSAGE } from './messages';\nimport { returnWrapper } from './utils/return-wrapper';\nvar AmplitudeCore = /** @class */ (function () {\n function AmplitudeCore(name) {\n if (name === void 0) { name = '$default'; }\n this.initializing = false;\n this.q = [];\n this.dispatchQ = [];\n this.logEvent = this.track.bind(this);\n this.timeline = new Timeline(this);\n this.name = name;\n }\n AmplitudeCore.prototype._init = function (config) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n this.config = config;\n this.timeline.reset(this);\n return [4 /*yield*/, this.runQueuedFunctions('q')];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n });\n });\n };\n AmplitudeCore.prototype.runQueuedFunctions = function (queueName) {\n return __awaiter(this, void 0, void 0, function () {\n var queuedFunctions, queuedFunctions_1, queuedFunctions_1_1, queuedFunction, e_1_1;\n var e_1, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n queuedFunctions = this[queueName];\n this[queueName] = [];\n _b.label = 1;\n case 1:\n _b.trys.push([1, 6, 7, 8]);\n queuedFunctions_1 = __values(queuedFunctions), queuedFunctions_1_1 = queuedFunctions_1.next();\n _b.label = 2;\n case 2:\n if (!!queuedFunctions_1_1.done) return [3 /*break*/, 5];\n queuedFunction = queuedFunctions_1_1.value;\n return [4 /*yield*/, queuedFunction()];\n case 3:\n _b.sent();\n _b.label = 4;\n case 4:\n queuedFunctions_1_1 = queuedFunctions_1.next();\n return [3 /*break*/, 2];\n case 5: return [3 /*break*/, 8];\n case 6:\n e_1_1 = _b.sent();\n e_1 = { error: e_1_1 };\n return [3 /*break*/, 8];\n case 7:\n try {\n if (queuedFunctions_1_1 && !queuedFunctions_1_1.done && (_a = queuedFunctions_1.return)) _a.call(queuedFunctions_1);\n }\n finally { if (e_1) throw e_1.error; }\n return [7 /*endfinally*/];\n case 8: return [2 /*return*/];\n }\n });\n });\n };\n AmplitudeCore.prototype.track = function (eventInput, eventProperties, eventOptions) {\n var event = createTrackEvent(eventInput, eventProperties, eventOptions);\n return returnWrapper(this.dispatch(event));\n };\n AmplitudeCore.prototype.identify = function (identify, eventOptions) {\n var event = createIdentifyEvent(identify, eventOptions);\n return returnWrapper(this.dispatch(event));\n };\n AmplitudeCore.prototype.groupIdentify = function (groupType, groupName, identify, eventOptions) {\n var event = createGroupIdentifyEvent(groupType, groupName, identify, eventOptions);\n return returnWrapper(this.dispatch(event));\n };\n AmplitudeCore.prototype.setGroup = function (groupType, groupName, eventOptions) {\n var event = createGroupEvent(groupType, groupName, eventOptions);\n return returnWrapper(this.dispatch(event));\n };\n AmplitudeCore.prototype.revenue = function (revenue, eventOptions) {\n var event = createRevenueEvent(revenue, eventOptions);\n return returnWrapper(this.dispatch(event));\n };\n AmplitudeCore.prototype.add = function (plugin) {\n if (!this.config) {\n this.q.push(this.add.bind(this, plugin));\n return returnWrapper();\n }\n return returnWrapper(this.timeline.register(plugin, this.config));\n };\n AmplitudeCore.prototype.remove = function (pluginName) {\n if (!this.config) {\n this.q.push(this.remove.bind(this, pluginName));\n return returnWrapper();\n }\n return returnWrapper(this.timeline.deregister(pluginName));\n };\n AmplitudeCore.prototype.dispatchWithCallback = function (event, callback) {\n if (!this.config) {\n return callback(buildResult(event, 0, CLIENT_NOT_INITIALIZED));\n }\n void this.process(event).then(callback);\n };\n AmplitudeCore.prototype.dispatch = function (event) {\n return __awaiter(this, void 0, void 0, function () {\n var _this = this;\n return __generator(this, function (_a) {\n if (!this.config) {\n return [2 /*return*/, new Promise(function (resolve) {\n _this.dispatchQ.push(_this.dispatchWithCallback.bind(_this, event, resolve));\n })];\n }\n return [2 /*return*/, this.process(event)];\n });\n });\n };\n AmplitudeCore.prototype.process = function (event) {\n return __awaiter(this, void 0, void 0, function () {\n var result, e_2, message, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 2, , 3]);\n // skip event processing if opt out\n if (this.config.optOut) {\n return [2 /*return*/, buildResult(event, 0, OPT_OUT_MESSAGE)];\n }\n return [4 /*yield*/, this.timeline.push(event)];\n case 1:\n result = _a.sent();\n result.code === 200\n ? this.config.loggerProvider.log(result.message)\n : this.config.loggerProvider.error(result.message);\n return [2 /*return*/, result];\n case 2:\n e_2 = _a.sent();\n this.config.loggerProvider.error(e_2);\n message = String(e_2);\n result = buildResult(event, 0, message);\n return [2 /*return*/, result];\n case 3: return [2 /*return*/];\n }\n });\n });\n };\n AmplitudeCore.prototype.setOptOut = function (optOut) {\n if (!this.config) {\n this.q.push(this.setOptOut.bind(this, Boolean(optOut)));\n return;\n }\n this.config.optOut = Boolean(optOut);\n };\n AmplitudeCore.prototype.flush = function () {\n return returnWrapper(this.timeline.flush());\n };\n return Ampl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WAAY;AACxC,aAAO,cAAc,KAAK,SAAS,MAAO,CAAA;AAAA,IAClD;AACI,WAAOA;AAAA,EACX,EAAG;AAAA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const tslib_es6 = require("../../../../tslib/tslib.es6.cjs");
|
|
4
|
+
const constants = require("./constants.cjs");
|
|
5
|
+
const validProperties = require("./utils/valid-properties.cjs");
|
|
6
|
+
const event = require("../../../analytics-types/lib/esm/event.cjs");
|
|
7
|
+
var Identify = (
|
|
8
|
+
/** @class */
|
|
9
|
+
function() {
|
|
10
|
+
function Identify2() {
|
|
11
|
+
this._propertySet = /* @__PURE__ */ new Set();
|
|
12
|
+
this._properties = {};
|
|
13
|
+
}
|
|
14
|
+
Identify2.prototype.getUserProperties = function() {
|
|
15
|
+
return tslib_es6.__assign({}, this._properties);
|
|
16
|
+
};
|
|
17
|
+
Identify2.prototype.set = function(property, value) {
|
|
18
|
+
this._safeSet(event.IdentifyOperation.SET, property, value);
|
|
19
|
+
return this;
|
|
20
|
+
};
|
|
21
|
+
Identify2.prototype.setOnce = function(property, value) {
|
|
22
|
+
this._safeSet(event.IdentifyOperation.SET_ONCE, property, value);
|
|
23
|
+
return this;
|
|
24
|
+
};
|
|
25
|
+
Identify2.prototype.append = function(property, value) {
|
|
26
|
+
this._safeSet(event.IdentifyOperation.APPEND, property, value);
|
|
27
|
+
return this;
|
|
28
|
+
};
|
|
29
|
+
Identify2.prototype.prepend = function(property, value) {
|
|
30
|
+
this._safeSet(event.IdentifyOperation.PREPEND, property, value);
|
|
31
|
+
return this;
|
|
32
|
+
};
|
|
33
|
+
Identify2.prototype.postInsert = function(property, value) {
|
|
34
|
+
this._safeSet(event.IdentifyOperation.POSTINSERT, property, value);
|
|
35
|
+
return this;
|
|
36
|
+
};
|
|
37
|
+
Identify2.prototype.preInsert = function(property, value) {
|
|
38
|
+
this._safeSet(event.IdentifyOperation.PREINSERT, property, value);
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
Identify2.prototype.remove = function(property, value) {
|
|
42
|
+
this._safeSet(event.IdentifyOperation.REMOVE, property, value);
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
Identify2.prototype.add = function(property, value) {
|
|
46
|
+
this._safeSet(event.IdentifyOperation.ADD, property, value);
|
|
47
|
+
return this;
|
|
48
|
+
};
|
|
49
|
+
Identify2.prototype.unset = function(property) {
|
|
50
|
+
this._safeSet(event.IdentifyOperation.UNSET, property, constants.UNSET_VALUE);
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
Identify2.prototype.clearAll = function() {
|
|
54
|
+
this._properties = {};
|
|
55
|
+
this._properties[event.IdentifyOperation.CLEAR_ALL] = constants.UNSET_VALUE;
|
|
56
|
+
return this;
|
|
57
|
+
};
|
|
58
|
+
Identify2.prototype._safeSet = function(operation, property, value) {
|
|
59
|
+
if (this._validate(operation, property, value)) {
|
|
60
|
+
var userPropertyMap = this._properties[operation];
|
|
61
|
+
if (userPropertyMap === void 0) {
|
|
62
|
+
userPropertyMap = {};
|
|
63
|
+
this._properties[operation] = userPropertyMap;
|
|
64
|
+
}
|
|
65
|
+
userPropertyMap[property] = value;
|
|
66
|
+
this._propertySet.add(property);
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
return false;
|
|
70
|
+
};
|
|
71
|
+
Identify2.prototype._validate = function(operation, property, value) {
|
|
72
|
+
if (this._properties[event.IdentifyOperation.CLEAR_ALL] !== void 0) {
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
if (this._propertySet.has(property)) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
if (operation === event.IdentifyOperation.ADD) {
|
|
79
|
+
return typeof value === "number";
|
|
80
|
+
}
|
|
81
|
+
if (operation !== event.IdentifyOperation.UNSET && operation !== event.IdentifyOperation.REMOVE) {
|
|
82
|
+
return validProperties.isValidProperties(property, value);
|
|
83
|
+
}
|
|
84
|
+
return true;
|
|
85
|
+
};
|
|
86
|
+
return Identify2;
|
|
87
|
+
}()
|
|
88
|
+
);
|
|
89
|
+
exports.Identify = Identify;
|
|
90
|
+
//# sourceMappingURL=identify.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify.cjs","sources":["../../../../../../../../node_modules/@amplitude/analytics-core/lib/esm/identify.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { IdentifyOperation, } from '@amplitude/analytics-types';\nimport { UNSET_VALUE } from './constants';\nimport { isValidProperties } from './utils/valid-properties';\nvar Identify = /** @class */ (function () {\n function Identify() {\n this._propertySet = new Set();\n this._properties = {};\n }\n Identify.prototype.getUserProperties = function () {\n return __assign({}, this._properties);\n };\n Identify.prototype.set = function (property, value) {\n this._safeSet(IdentifyOperation.SET, property, value);\n return this;\n };\n Identify.prototype.setOnce = function (property, value) {\n this._safeSet(IdentifyOperation.SET_ONCE, property, value);\n return this;\n };\n Identify.prototype.append = function (property, value) {\n this._safeSet(IdentifyOperation.APPEND, property, value);\n return this;\n };\n Identify.prototype.prepend = function (property, value) {\n this._safeSet(IdentifyOperation.PREPEND, property, value);\n return this;\n };\n Identify.prototype.postInsert = function (property, value) {\n this._safeSet(IdentifyOperation.POSTINSERT, property, value);\n return this;\n };\n Identify.prototype.preInsert = function (property, value) {\n this._safeSet(IdentifyOperation.PREINSERT, property, value);\n return this;\n };\n Identify.prototype.remove = function (property, value) {\n this._safeSet(IdentifyOperation.REMOVE, property, value);\n return this;\n };\n Identify.prototype.add = function (property, value) {\n this._safeSet(IdentifyOperation.ADD, property, value);\n return this;\n };\n Identify.prototype.unset = function (property) {\n this._safeSet(IdentifyOperation.UNSET, property, UNSET_VALUE);\n return this;\n };\n Identify.prototype.clearAll = function () {\n // When clear all happens, all properties are unset. Reset the entire object.\n this._properties = {};\n this._properties[IdentifyOperation.CLEAR_ALL] = UNSET_VALUE;\n return this;\n };\n // Returns whether or not this set actually worked.\n Identify.prototype._safeSet = function (operation, property, value) {\n if (this._validate(operation, property, value)) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n var userPropertyMap = this._properties[operation];\n if (userPropertyMap === undefined) {\n userPropertyMap = {};\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n this._properties[operation] = userPropertyMap;\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n userPropertyMap[property] = value;\n this._propertySet.add(property);\n return true;\n }\n return false;\n };\n Identify.prototype._validate = function (operation, property, value) {\n if (this._properties[IdentifyOperation.CLEAR_ALL] !== undefined) {\n // clear all already set. Skipping operation;\n return false;\n }\n if (this._propertySet.has(property)) {\n // Property already used. Skipping operation\n return false;\n }\n if (operation === IdentifyOperation.ADD) {\n return typeof value === 'number';\n }\n if (operation !== IdentifyOperation.UNSET && operation !== IdentifyOperation.REMOVE) {\n return isValidProperties(property, value);\n }\n return true;\n };\n return Identify;\n}());\nexport { Identify };\n//# sourceMappingURL=identify.js.map"],"names":["Identify","__assign","IdentifyOperation","UNSET_VALUE","isValidProperties"],"mappings":";;;;;;AAIG,IAAC;AAAA;AAAA,EAA0B,WAAY;AACtC,aAASA,YAAW;AAChB,WAAK,eAAe,oBAAI;AACxB,WAAK,cAAc;IACtB;AACD,IAAAA,UAAS,UAAU,oBAAoB,WAAY;AAC/C,aAAOC,mBAAS,CAAA,GAAI,KAAK,WAAW;AAAA,IAC5C;AACI,IAAAD,UAAS,UAAU,MAAM,SAAU,UAAU,OAAO;AAChD,WAAK,SAASE,MAAiB,kBAAC,KAAK,UAAU,KAAK;AACpD,aAAO;AAAA,IACf;AACI,IAAAF,UAAS,UAAU,UAAU,SAAU,UAAU,OAAO;AACpD,WAAK,SAASE,MAAiB,kBAAC,UAAU,UAAU,KAAK;AACzD,aAAO;AAAA,IACf;AACI,IAAAF,UAAS,UAAU,SAAS,SAAU,UAAU,OAAO;AACnD,WAAK,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,eAAO;AAAA,MACV;AACD,aAAO;AAAA,IACf;AACI,IAAAA,UAAS,UAAU,YAAY,SAAU,WAAW,UAAU,OAAO;AACjE,UAAI,KAAK,YAAYE,MAAiB,kBAAC,SAAS,MAAM,QAAW;AAE7D,eAAO;AAAA,MACV;AACD,UAAI,KAAK,aAAa,IAAI,QAAQ,GAAG;AAEjC,eAAO;AAAA,MACV;AACD,UAAI,cAAcA,MAAiB,kBAAC,KAAK;AACrC,eAAO,OAAO,UAAU;AAAA,MAC3B;AACD,UAAI,cAAcA,MAAAA,kBAAkB,SAAS,cAAcA,MAAAA,kBAAkB,QAAQ;AACjF,eAAOE,gBAAiB,kBAAC,UAAU,KAAK;AAAA,MAC3C;AACD,aAAO;AAAA,IACf;AACI,WAAOJ;AAAA,EACX,EAAG;AAAA;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { __assign } from "../../../../tslib/tslib.es6.js";
|
|
2
|
+
import { UNSET_VALUE } from "./constants.js";
|
|
3
|
+
import { isValidProperties } from "./utils/valid-properties.js";
|
|
4
|
+
import { IdentifyOperation } from "../../../analytics-types/lib/esm/event.js";
|
|
5
|
+
var Identify = (
|
|
6
|
+
/** @class */
|
|
7
|
+
function() {
|
|
8
|
+
function Identify2() {
|
|
9
|
+
this._propertySet = /* @__PURE__ */ new Set();
|
|
10
|
+
this._properties = {};
|
|
11
|
+
}
|
|
12
|
+
Identify2.prototype.getUserProperties = function() {
|
|
13
|
+
return __assign({}, this._properties);
|
|
14
|
+
};
|
|
15
|
+
Identify2.prototype.set = function(property, value) {
|
|
16
|
+
this._safeSet(IdentifyOperation.SET, property, value);
|
|
17
|
+
return this;
|
|
18
|
+
};
|
|
19
|
+
Identify2.prototype.setOnce = function(property, value) {
|
|
20
|
+
this._safeSet(IdentifyOperation.SET_ONCE, property, value);
|
|
21
|
+
return this;
|
|
22
|
+
};
|
|
23
|
+
Identify2.prototype.append = function(property, value) {
|
|
24
|
+
this._safeSet(IdentifyOperation.APPEND, property, value);
|
|
25
|
+
return this;
|
|
26
|
+
};
|
|
27
|
+
Identify2.prototype.prepend = function(property, value) {
|
|
28
|
+
this._safeSet(IdentifyOperation.PREPEND, property, value);
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
Identify2.prototype.postInsert = function(property, value) {
|
|
32
|
+
this._safeSet(IdentifyOperation.POSTINSERT, property, value);
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
Identify2.prototype.preInsert = function(property, value) {
|
|
36
|
+
this._safeSet(IdentifyOperation.PREINSERT, property, value);
|
|
37
|
+
return this;
|
|
38
|
+
};
|
|
39
|
+
Identify2.prototype.remove = function(property, value) {
|
|
40
|
+
this._safeSet(IdentifyOperation.REMOVE, property, value);
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
Identify2.prototype.add = function(property, value) {
|
|
44
|
+
this._safeSet(IdentifyOperation.ADD, property, value);
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
Identify2.prototype.unset = function(property) {
|
|
48
|
+
this._safeSet(IdentifyOperation.UNSET, property, UNSET_VALUE);
|
|
49
|
+
return this;
|
|
50
|
+
};
|
|
51
|
+
Identify2.prototype.clearAll = function() {
|
|
52
|
+
this._properties = {};
|
|
53
|
+
this._properties[IdentifyOperation.CLEAR_ALL] = UNSET_VALUE;
|
|
54
|
+
return this;
|
|
55
|
+
};
|
|
56
|
+
Identify2.prototype._safeSet = function(operation, property, value) {
|
|
57
|
+
if (this._validate(operation, property, value)) {
|
|
58
|
+
var userPropertyMap = this._properties[operation];
|
|
59
|
+
if (userPropertyMap === void 0) {
|
|
60
|
+
userPropertyMap = {};
|
|
61
|
+
this._properties[operation] = userPropertyMap;
|
|
62
|
+
}
|
|
63
|
+
userPropertyMap[property] = value;
|
|
64
|
+
this._propertySet.add(property);
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
return false;
|
|
68
|
+
};
|
|
69
|
+
Identify2.prototype._validate = function(operation, property, value) {
|
|
70
|
+
if (this._properties[IdentifyOperation.CLEAR_ALL] !== void 0) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
if (this._propertySet.has(property)) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
if (operation === IdentifyOperation.ADD) {
|
|
77
|
+
return typeof value === "number";
|
|
78
|
+
}
|
|
79
|
+
if (operation !== IdentifyOperation.UNSET && operation !== IdentifyOperation.REMOVE) {
|
|
80
|
+
return isValidProperties(property, value);
|
|
81
|
+
}
|
|
82
|
+
return true;
|
|
83
|
+
};
|
|
84
|
+
return Identify2;
|
|
85
|
+
}()
|
|
86
|
+
);
|
|
87
|
+
export {
|
|
88
|
+
Identify
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=identify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identify.js","sources":["../../../../../../../../node_modules/@amplitude/analytics-core/lib/esm/identify.js"],"sourcesContent":["import { __assign } from \"tslib\";\nimport { IdentifyOperation, } from '@amplitude/analytics-types';\nimport { UNSET_VALUE } from './constants';\nimport { isValidProperties } from './utils/valid-properties';\nvar Identify = /** @class */ (function () {\n function Identify() {\n this._propertySet = new Set();\n this._properties = {};\n }\n Identify.prototype.getUserProperties = function () {\n return __assign({}, this._properties);\n };\n Identify.prototype.set = function (property, value) {\n this._safeSet(IdentifyOperation.SET, property, value);\n return this;\n };\n Identify.prototype.setOnce = function (property, value) {\n this._safeSet(IdentifyOperation.SET_ONCE, property, value);\n return this;\n };\n Identify.prototype.append = function (property, value) {\n this._safeSet(IdentifyOperation.APPEND, property, value);\n return this;\n };\n Identify.prototype.prepend = function (property, value) {\n this._safeSet(IdentifyOperation.PREPEND, property, value);\n return this;\n };\n Identify.prototype.postInsert = function (property, value) {\n this._safeSet(IdentifyOperation.POSTINSERT, property, value);\n return this;\n };\n Identify.prototype.preInsert = function (property, value) {\n this._safeSet(IdentifyOperation.PREINSERT, property, value);\n return this;\n };\n Identify.prototype.remove = function (property, value) {\n this._safeSet(IdentifyOperation.REMOVE, property, value);\n return this;\n };\n Identify.prototype.add = function (property, value) {\n this._safeSet(IdentifyOperation.ADD, property, value);\n return this;\n };\n Identify.prototype.unset = function (property) {\n this._safeSet(IdentifyOperation.UNSET, property, UNSET_VALUE);\n return this;\n };\n Identify.prototype.clearAll = function () {\n // When clear all happens, all properties are unset. Reset the entire object.\n this._properties = {};\n this._properties[IdentifyOperation.CLEAR_ALL] = UNSET_VALUE;\n return this;\n };\n // Returns whether or not this set actually worked.\n Identify.prototype._safeSet = function (operation, property, value) {\n if (this._validate(operation, property, value)) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n var userPropertyMap = this._properties[operation];\n if (userPropertyMap === undefined) {\n userPropertyMap = {};\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n this._properties[operation] = userPropertyMap;\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n userPropertyMap[property] = value;\n this._propertySet.add(property);\n return true;\n }\n return false;\n };\n Identify.prototype._validate = function (operation, property, value) {\n if (this._properties[IdentifyOperation.CLEAR_ALL] !== undefined) {\n // clear all already set. Skipping operation;\n return false;\n }\n if (this._propertySet.has(property)) {\n // Property already used. Skipping operation\n return false;\n }\n if (operation === IdentifyOperation.ADD) {\n return typeof value === 'number';\n }\n if (operation !== IdentifyOperation.UNSET && operation !== IdentifyOperation.REMOVE) {\n return isValidProperties(property, value);\n }\n return true;\n };\n return Identify;\n}());\nexport { Identify };\n//# sourceMappingURL=identify.js.map"],"names":["Identify"],"mappings":";;;;AAIG,IAAC;AAAA;AAAA,EAA0B,WAAY;AACtC,aAASA,YAAW;AAChB,WAAK,eAAe,oBAAI;AACxB,WAAK,cAAc;IACtB;AACD,IAAAA,UAAS,UAAU,oBAAoB,WAAY;AAC/C,aAAO,SAAS,CAAA,GAAI,KAAK,WAAW;AAAA,IAC5C;AACI,IAAAA,UAAS,UAAU,MAAM,SAAU,UA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AAI,kBAAkB,KAAK,YAAY,SAAS;AAChD,YAAI,oBAAoB,QAAW;AAC/B,4BAAkB,CAAA;AAElB,eAAK,YAAY,SAAS,IAAI;AAAA,QACjC;AAED,wBAAgB,QAAQ,IAAI;AAC5B,aAAK,aAAa,IAAI,QAAQ;AAC9B,eAAO;AAAA,MACV;AACD,aAAO;AAAA,IACf;AACI,IAAAA,UAAS,UAAU,YAAY,SAAU,WAAW,UAAU,OAAO;AACjE,UAAI,KAAK,YAAY,kBAAkB,SAAS,MAAM,QAAW;AAE7D,eAAO;AAAA,MACV;AACD,UAAI,KAAK,aAAa,IAAI,QAAQ,GAAG;AAEjC,eAAO;AAAA,MACV;AACD,UAAI,cAAc,kBAAkB,KAAK;AACrC,eAAO,OAAO,UAAU;AAAA,MAC3B;AACD,UAAI,cAAc,kBAAkB,SAAS,cAAc,kBAAkB,QAAQ;AACjF,eAAO,kBAAkB,UAAU,KAAK;AAAA,MAC3C;AACD,aAAO;AAAA,IACf;AACI,WAAOA;AAAA,EACX,EAAG;AAAA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const logger = require("../../../analytics-types/lib/esm/logger.cjs");
|
|
4
|
+
var PREFIX = "Amplitude Logger ";
|
|
5
|
+
var Logger = (
|
|
6
|
+
/** @class */
|
|
7
|
+
function() {
|
|
8
|
+
function Logger2() {
|
|
9
|
+
this.logLevel = logger.LogLevel.None;
|
|
10
|
+
}
|
|
11
|
+
Logger2.prototype.disable = function() {
|
|
12
|
+
this.logLevel = logger.LogLevel.None;
|
|
13
|
+
};
|
|
14
|
+
Logger2.prototype.enable = function(logLevel) {
|
|
15
|
+
if (logLevel === void 0) {
|
|
16
|
+
logLevel = logger.LogLevel.Warn;
|
|
17
|
+
}
|
|
18
|
+
this.logLevel = logLevel;
|
|
19
|
+
};
|
|
20
|
+
Logger2.prototype.log = function() {
|
|
21
|
+
var args = [];
|
|
22
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
23
|
+
args[_i] = arguments[_i];
|
|
24
|
+
}
|
|
25
|
+
if (this.logLevel < logger.LogLevel.Verbose) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
console.log("".concat(PREFIX, "[Log]: ").concat(args.join(" ")));
|
|
29
|
+
};
|
|
30
|
+
Logger2.prototype.warn = function() {
|
|
31
|
+
var args = [];
|
|
32
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
33
|
+
args[_i] = arguments[_i];
|
|
34
|
+
}
|
|
35
|
+
if (this.logLevel < logger.LogLevel.Warn) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
console.warn("".concat(PREFIX, "[Warn]: ").concat(args.join(" ")));
|
|
39
|
+
};
|
|
40
|
+
Logger2.prototype.error = function() {
|
|
41
|
+
var args = [];
|
|
42
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
43
|
+
args[_i] = arguments[_i];
|
|
44
|
+
}
|
|
45
|
+
if (this.logLevel < logger.LogLevel.Error) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
console.error("".concat(PREFIX, "[Error]: ").concat(args.join(" ")));
|
|
49
|
+
};
|
|
50
|
+
Logger2.prototype.debug = function() {
|
|
51
|
+
var args = [];
|
|
52
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
53
|
+
args[_i] = arguments[_i];
|
|
54
|
+
}
|
|
55
|
+
if (this.logLevel < logger.LogLevel.Debug) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
console.log("".concat(PREFIX, "[Debug]: ").concat(args.join(" ")));
|
|
59
|
+
};
|
|
60
|
+
return Logger2;
|
|
61
|
+
}()
|
|
62
|
+
);
|
|
63
|
+
exports.Logger = Logger;
|
|
64
|
+
//# sourceMappingURL=logger.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.cjs","sources":["../../../../../../../../node_modules/@amplitude/analytics-core/lib/esm/logger.js"],"sourcesContent":["import { LogLevel } from '@amplitude/analytics-types';\nvar PREFIX = 'Amplitude Logger ';\nvar Logger = /** @class */ (function () {\n function Logger() {\n this.logLevel = LogLevel.None;\n }\n Logger.prototype.disable = function () {\n this.logLevel = LogLevel.None;\n };\n Logger.prototype.enable = function (logLevel) {\n if (logLevel === void 0) { logLevel = LogLevel.Warn; }\n this.logLevel = logLevel;\n };\n Logger.prototype.log = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (this.logLevel < LogLevel.Verbose) {\n return;\n }\n console.log(\"\".concat(PREFIX, \"[Log]: \").concat(args.join(' ')));\n };\n Logger.prototype.warn = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (this.logLevel < LogLevel.Warn) {\n return;\n }\n console.warn(\"\".concat(PREFIX, \"[Warn]: \").concat(args.join(' ')));\n };\n Logger.prototype.error = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (this.logLevel < LogLevel.Error) {\n return;\n }\n console.error(\"\".concat(PREFIX, \"[Error]: \").concat(args.join(' ')));\n };\n Logger.prototype.debug = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (this.logLevel < LogLevel.Debug) {\n return;\n }\n // console.debug output is hidden by default in chrome\n console.log(\"\".concat(PREFIX, \"[Debug]: \").concat(args.join(' ')));\n };\n return Logger;\n}());\nexport { Logger };\n//# sourceMappingURL=logger.js.map"],"names":["Logger","LogLevel"],"mappings":";;;AACA,IAAI,SAAS;AACV,IAAC;AAAA;AAAA,EAAwB,WAAY;AACpC,aAASA,UAAS;AACd,WAAK,WAAWC,OAAQ,SAAC;AAAA,IAC5B;AACD,IAAAD,QAAO,UAAU,UAAU,WAAY;AACnC,WAAK,WAAWC,OA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aAAK,EAAE,IAAI,UAAU,EAAE;AAAA,MAC1B;AACD,UAAI,KAAK,WAAWC,OAAQ,SAAC,OAAO;AAChC;AAAA,MACH;AAED,cAAQ,IAAI,GAAG,OAAO,QAAQ,WAAW,EAAE,OAAO,KAAK,KAAK,GAAG,CAAC,CAAC;AAAA,IACzE;AACI,WAAOD;AAAA,EACX,EAAG;AAAA;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { LogLevel } from "../../../analytics-types/lib/esm/logger.js";
|
|
2
|
+
var PREFIX = "Amplitude Logger ";
|
|
3
|
+
var Logger = (
|
|
4
|
+
/** @class */
|
|
5
|
+
function() {
|
|
6
|
+
function Logger2() {
|
|
7
|
+
this.logLevel = LogLevel.None;
|
|
8
|
+
}
|
|
9
|
+
Logger2.prototype.disable = function() {
|
|
10
|
+
this.logLevel = LogLevel.None;
|
|
11
|
+
};
|
|
12
|
+
Logger2.prototype.enable = function(logLevel) {
|
|
13
|
+
if (logLevel === void 0) {
|
|
14
|
+
logLevel = LogLevel.Warn;
|
|
15
|
+
}
|
|
16
|
+
this.logLevel = logLevel;
|
|
17
|
+
};
|
|
18
|
+
Logger2.prototype.log = function() {
|
|
19
|
+
var args = [];
|
|
20
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
21
|
+
args[_i] = arguments[_i];
|
|
22
|
+
}
|
|
23
|
+
if (this.logLevel < LogLevel.Verbose) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
console.log("".concat(PREFIX, "[Log]: ").concat(args.join(" ")));
|
|
27
|
+
};
|
|
28
|
+
Logger2.prototype.warn = function() {
|
|
29
|
+
var args = [];
|
|
30
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
31
|
+
args[_i] = arguments[_i];
|
|
32
|
+
}
|
|
33
|
+
if (this.logLevel < LogLevel.Warn) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
console.warn("".concat(PREFIX, "[Warn]: ").concat(args.join(" ")));
|
|
37
|
+
};
|
|
38
|
+
Logger2.prototype.error = function() {
|
|
39
|
+
var args = [];
|
|
40
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
41
|
+
args[_i] = arguments[_i];
|
|
42
|
+
}
|
|
43
|
+
if (this.logLevel < LogLevel.Error) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
console.error("".concat(PREFIX, "[Error]: ").concat(args.join(" ")));
|
|
47
|
+
};
|
|
48
|
+
Logger2.prototype.debug = function() {
|
|
49
|
+
var args = [];
|
|
50
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
51
|
+
args[_i] = arguments[_i];
|
|
52
|
+
}
|
|
53
|
+
if (this.logLevel < LogLevel.Debug) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
console.log("".concat(PREFIX, "[Debug]: ").concat(args.join(" ")));
|
|
57
|
+
};
|
|
58
|
+
return Logger2;
|
|
59
|
+
}()
|
|
60
|
+
);
|
|
61
|
+
export {
|
|
62
|
+
Logger
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sources":["../../../../../../../../node_modules/@amplitude/analytics-core/lib/esm/logger.js"],"sourcesContent":["import { LogLevel } from '@amplitude/analytics-types';\nvar PREFIX = 'Amplitude Logger ';\nvar Logger = /** @class */ (function () {\n function Logger() {\n this.logLevel = LogLevel.None;\n }\n Logger.prototype.disable = function () {\n this.logLevel = LogLevel.None;\n };\n Logger.prototype.enable = function (logLevel) {\n if (logLevel === void 0) { logLevel = LogLevel.Warn; }\n this.logLevel = logLevel;\n };\n Logger.prototype.log = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (this.logLevel < LogLevel.Verbose) {\n return;\n }\n console.log(\"\".concat(PREFIX, \"[Log]: \").concat(args.join(' ')));\n };\n Logger.prototype.warn = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (this.logLevel < LogLevel.Warn) {\n return;\n }\n console.warn(\"\".concat(PREFIX, \"[Warn]: \").concat(args.join(' ')));\n };\n Logger.prototype.error = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (this.logLevel < LogLevel.Error) {\n return;\n }\n console.error(\"\".concat(PREFIX, \"[Error]: \").concat(args.join(' ')));\n };\n Logger.prototype.debug = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (this.logLevel < LogLevel.Debug) {\n return;\n }\n // console.debug output is hidden by default in chrome\n console.log(\"\".concat(PREFIX, \"[Debug]: \").concat(args.join(' ')));\n };\n return Logger;\n}());\nexport { Logger };\n//# sourceMappingURL=logger.js.map"],"names":["Logger"],"mappings":";AACA,IAAI,SAAS;AACV,IAAC;AAAA;AAAA,EAAwB,WAAY;AACpC,aAASA,UAAS;AACd,WAAK,WAAW,SAAS;AAAA,IAC5B;AACD,IAAAA,QAAO,UAAU,UAAU,WAAY;AACnC,WAAK,WAAW,SAAS;AAAA,IACjC;AACI,IAAAA,QAAO,UAAU,SAAS,SAAU,UAAU;AAC1C,UAAI,aAAa,QAAQ;AAAE,mBAAW,SAAS;AAAA,MAAO;AACtD,WAAK,WAAW;AAAA,IACxB;AACI,IAAAA,QAAO,UAAU,MAAM,WAAY;AAC/B,UAAI,OAAO,CAAA;AACX,eAAS,KAAK,GAAG,KAAK,UAAU,QAAQ,MAAM;AAC1C,aAAK,EAAE,IAAI,UAAU,EAAE;AAAA,MAC1B;AACD,UAAI,KAAK,WAAW,SAAS,SAAS;AAClC;AAAA,MACH;AACD,cAAQ,IAAI,GAAG,OAAO,QAAQ,SAAS,EAAE,OAAO,KAAK,KAAK,GAAG,CAAC,CAAC;AAAA,IACvE;AACI,IAAAA,QAAO,UAAU,OAAO,WAAY;AAChC,UAAI,OAAO,CAAA;AACX,eAAS,KAAK,GAAG,KAAK,UAAU,QAAQ,MAAM;AAC1C,aAAK,EAAE,IAAI,UAAU,EAAE;AAAA,MAC1B;AACD,UAAI,KAAK,WAAW,SAAS,MAAM;AAC/B;AAAA,MACH;AACD,cAAQ,KAAK,GAAG,OAAO,QAAQ,UAAU,EAAE,OAAO,KAAK,KAAK,GAAG,CAAC,CAAC;AAAA,IACzE;AACI,IAAAA,QAAO,UAAU,QAAQ,WAAY;AACjC,UAAI,OAAO,CAAA;AACX,eAAS,KAAK,GAAG,KAAK,UAAU,QAAQ,MAAM;AAC1C,aAAK,EAAE,IAAI,UAAU,EAAE;AAAA,MAC1B;AACD,UAAI,KAAK,WAAW,SAAS,OAAO;AAChC;AAAA,MACH;AACD,cAAQ,MAAM,GAAG,OAAO,QAAQ,WAAW,EAAE,OAAO,KAAK,KAAK,GAAG,CAAC,CAAC;AAAA,IAC3E;AACI,IAAAA,QAAO,UAAU,QAAQ,WAAY;AACjC,UAAI,OAAO,CAAA;AACX,eAAS,KAAK,GAAG,KAAK,UAAU,QAAQ,MAAM;AAC1C,aAAK,EAAE,IAAI,UAAU,EAAE;AAAA,MAC1B;AACD,UAAI,KAAK,WAAW,SAAS,OAAO;AAChC;AAAA,MACH;AAED,cAAQ,IAAI,GAAG,OAAO,QAAQ,WAAW,EAAE,OAAO,KAAK,KAAK,GAAG,CAAC,CAAC;AAAA,IACzE;AACI,WAAOA;AAAA,EACX,EAAG;AAAA;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var SUCCESS_MESSAGE = "Event tracked successfully";
|
|
4
|
+
var UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
|
|
5
|
+
var MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
|
|
6
|
+
var OPT_OUT_MESSAGE = "Event skipped due to optOut config";
|
|
7
|
+
var MISSING_API_KEY_MESSAGE = "Event rejected due to missing API key";
|
|
8
|
+
var INVALID_API_KEY = "Invalid API key";
|
|
9
|
+
var CLIENT_NOT_INITIALIZED = "Client not initialized";
|
|
10
|
+
exports.CLIENT_NOT_INITIALIZED = CLIENT_NOT_INITIALIZED;
|
|
11
|
+
exports.INVALID_API_KEY = INVALID_API_KEY;
|
|
12
|
+
exports.MAX_RETRIES_EXCEEDED_MESSAGE = MAX_RETRIES_EXCEEDED_MESSAGE;
|
|
13
|
+
exports.MISSING_API_KEY_MESSAGE = MISSING_API_KEY_MESSAGE;
|
|
14
|
+
exports.OPT_OUT_MESSAGE = OPT_OUT_MESSAGE;
|
|
15
|
+
exports.SUCCESS_MESSAGE = SUCCESS_MESSAGE;
|
|
16
|
+
exports.UNEXPECTED_ERROR_MESSAGE = UNEXPECTED_ERROR_MESSAGE;
|
|
17
|
+
//# sourceMappingURL=messages.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.cjs","sources":["../../../../../../../../node_modules/@amplitude/analytics-core/lib/esm/messages.js"],"sourcesContent":["export var SUCCESS_MESSAGE = 'Event tracked successfully';\nexport var UNEXPECTED_ERROR_MESSAGE = 'Unexpected error occurred';\nexport var MAX_RETRIES_EXCEEDED_MESSAGE = 'Event rejected due to exceeded retry count';\nexport var OPT_OUT_MESSAGE = 'Event skipped due to optOut config';\nexport var MISSING_API_KEY_MESSAGE = 'Event rejected due to missing API key';\nexport var INVALID_API_KEY = 'Invalid API key';\nexport var CLIENT_NOT_INITIALIZED = 'Client not initialized';\n//# sourceMappingURL=messages.js.map"],"names":[],"mappings":";;AAAU,IAAC,kBAAkB;AACnB,IAAC,2BAA2B;AAC5B,IAAC,+BAA+B;AAChC,IAAC,kBAAkB;AACnB,IAAC,0BAA0B;AAC3B,IAAC,kBAAkB;AACnB,IAAC,yBAAyB;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var SUCCESS_MESSAGE = "Event tracked successfully";
|
|
2
|
+
var UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
|
|
3
|
+
var MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
|
|
4
|
+
var OPT_OUT_MESSAGE = "Event skipped due to optOut config";
|
|
5
|
+
var MISSING_API_KEY_MESSAGE = "Event rejected due to missing API key";
|
|
6
|
+
var INVALID_API_KEY = "Invalid API key";
|
|
7
|
+
var CLIENT_NOT_INITIALIZED = "Client not initialized";
|
|
8
|
+
export {
|
|
9
|
+
CLIENT_NOT_INITIALIZED,
|
|
10
|
+
INVALID_API_KEY,
|
|
11
|
+
MAX_RETRIES_EXCEEDED_MESSAGE,
|
|
12
|
+
MISSING_API_KEY_MESSAGE,
|
|
13
|
+
OPT_OUT_MESSAGE,
|
|
14
|
+
SUCCESS_MESSAGE,
|
|
15
|
+
UNEXPECTED_ERROR_MESSAGE
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sources":["../../../../../../../../node_modules/@amplitude/analytics-core/lib/esm/messages.js"],"sourcesContent":["export var SUCCESS_MESSAGE = 'Event tracked successfully';\nexport var UNEXPECTED_ERROR_MESSAGE = 'Unexpected error occurred';\nexport var MAX_RETRIES_EXCEEDED_MESSAGE = 'Event rejected due to exceeded retry count';\nexport var OPT_OUT_MESSAGE = 'Event skipped due to optOut config';\nexport var MISSING_API_KEY_MESSAGE = 'Event rejected due to missing API key';\nexport var INVALID_API_KEY = 'Invalid API key';\nexport var CLIENT_NOT_INITIALIZED = 'Client not initialized';\n//# sourceMappingURL=messages.js.map"],"names":[],"mappings":"AAAU,IAAC,kBAAkB;AACnB,IAAC,2BAA2B;AAC5B,IAAC,+BAA+B;AAChC,IAAC,kBAAkB;AACnB,IAAC,0BAA0B;AAC3B,IAAC,kBAAkB;AACnB,IAAC,yBAAyB;","x_google_ignoreList":[0]}
|