@deriv-com/analytics 1.39.8 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"inputs":{"node_modules/@rudderstack/analytics-js/dist/npm/modern/esm/index.mjs":{"bytes":256555,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/utils/urls.ts":{"bytes":1675,"imports":[],"format":"esm"},"node_modules/js-cookie/dist/js.cookie.mjs":{"bytes":3475,"imports":[],"format":"esm"},"src/utils/helpers.ts":{"bytes":5304,"imports":[{"path":"node_modules/js-cookie/dist/js.cookie.mjs","kind":"import-statement","original":"js-cookie"},{"path":"src/utils/urls.ts","kind":"import-statement","original":"./urls"}],"format":"esm"},"src/providers/rudderstack.ts":{"bytes":8820,"imports":[{"path":"node_modules/@rudderstack/analytics-js/dist/npm/modern/esm/index.mjs","kind":"import-statement","original":"@rudderstack/analytics-js"},{"path":"src/utils/urls.ts","kind":"import-statement","original":"../utils/urls"},{"path":"src/utils/helpers.ts","kind":"import-statement","original":"../utils/helpers"}],"format":"esm"},"src/utils/storage.ts":{"bytes":2625,"imports":[],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/util.mjs":{"bytes":9941,"imports":[],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs":{"bytes":13664,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"}],"format":"esm"},"node_modules/dom-mutator/dist/dom-mutator.esm.js":{"bytes":14835,"imports":[],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs":{"bytes":7849,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/core.mjs":{"bytes":30540,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs","kind":"import-statement","original":"./mongrule.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs":{"bytes":26161,"imports":[{"path":"node_modules/dom-mutator/dist/dom-mutator.esm.js","kind":"import-statement","original":"dom-mutator"},{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs","kind":"import-statement","original":"./feature-repository.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/core.mjs","kind":"import-statement","original":"./core.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/GrowthBookClient.mjs":{"bytes":8990,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs","kind":"import-statement","original":"./feature-repository.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/core.mjs","kind":"import-statement","original":"./core.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/sticky-bucket-service.mjs":{"bytes":6878,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/core.mjs","kind":"import-statement","original":"./core.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/index.mjs":{"bytes":789,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs","kind":"import-statement","original":"./feature-repository.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs","kind":"import-statement","original":"./GrowthBook.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/GrowthBookClient.mjs","kind":"import-statement","original":"./GrowthBookClient.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/sticky-bucket-service.mjs","kind":"import-statement","original":"./sticky-bucket-service.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs","kind":"import-statement","original":"./mongrule.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/core.mjs","kind":"import-statement","original":"./core.mjs"}],"format":"esm"},"src/providers/growthbook.ts":{"bytes":7568,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/index.mjs","kind":"import-statement","original":"@growthbook/growthbook"},{"path":"node_modules/@rudderstack/analytics-js/dist/npm/modern/esm/index.mjs","kind":"import-statement","original":"@rudderstack/analytics-js"},{"path":"./growthbookTypes","kind":"import-statement","external":true},{"path":"src/utils/urls.ts","kind":"import-statement","original":"../utils/urls"},{"path":"src/utils/helpers.ts","kind":"import-statement","original":"../utils/helpers"}],"format":"esm"},"node_modules/posthog-js/dist/module.js":{"bytes":180600,"imports":[],"format":"esm"},"src/providers/posthog.ts":{"bytes":9676,"imports":[{"path":"node_modules/posthog-js/dist/module.js","kind":"import-statement","original":"posthog-js"},{"path":"src/utils/urls.ts","kind":"import-statement","original":"../utils/urls"},{"path":"src/utils/helpers.ts","kind":"import-statement","original":"../utils/helpers"}],"format":"esm"},"src/analytics.ts":{"bytes":23365,"imports":[{"path":"src/providers/rudderstack.ts","kind":"import-statement","original":"./providers/rudderstack"},{"path":"src/utils/storage.ts","kind":"import-statement","original":"./utils/storage"},{"path":"src/utils/helpers.ts","kind":"import-statement","original":"./utils/helpers"},{"path":"src/providers/growthbook.ts","kind":"dynamic-import","original":"./providers/growthbook"},{"path":"src/providers/posthog.ts","kind":"dynamic-import","original":"./providers/posthog"}],"format":"esm"},"src/index.ts":{"bytes":40,"imports":[{"path":"src/analytics.ts","kind":"import-statement","original":"./analytics"}],"format":"esm"}},"outputs":{"dist/browser/analytics.bundle.global.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1843916},"dist/browser/analytics.bundle.global.js":{"imports":[],"exports":[],"entryPoint":"src/index.ts","inputs":{"node_modules/@rudderstack/analytics-js/dist/npm/modern/esm/index.mjs":{"bytesInOutput":110845},"src/utils/urls.ts":{"bytesInOutput":891},"node_modules/js-cookie/dist/js.cookie.mjs":{"bytesInOutput":1413},"src/utils/helpers.ts":{"bytesInOutput":1276},"node_modules/@growthbook/growthbook/dist/esm/util.mjs":{"bytesInOutput":3635},"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs":{"bytesInOutput":5508},"node_modules/dom-mutator/dist/dom-mutator.esm.js":{"bytesInOutput":6145},"node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs":{"bytesInOutput":2996},"node_modules/@growthbook/growthbook/dist/esm/core.mjs":{"bytesInOutput":10937},"node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs":{"bytesInOutput":14735},"node_modules/@growthbook/growthbook/dist/esm/index.mjs":{"bytesInOutput":35},"src/providers/growthbook.ts":{"bytesInOutput":3383},"node_modules/posthog-js/dist/module.js":{"bytesInOutput":178193},"src/providers/posthog.ts":{"bytesInOutput":3318},"src/index.ts":{"bytesInOutput":36},"src/providers/rudderstack.ts":{"bytesInOutput":3187},"src/utils/storage.ts":{"bytesInOutput":1089},"src/analytics.ts":{"bytesInOutput":6246}},"bytes":354718}}}
1
+ {"inputs":{"node_modules/@rudderstack/analytics-js/dist/npm/modern/esm/index.mjs":{"bytes":256555,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/utils/urls.ts":{"bytes":1675,"imports":[],"format":"esm"},"node_modules/js-cookie/dist/js.cookie.mjs":{"bytes":3475,"imports":[],"format":"esm"},"src/utils/helpers.ts":{"bytes":5304,"imports":[{"path":"node_modules/js-cookie/dist/js.cookie.mjs","kind":"import-statement","original":"js-cookie"},{"path":"src/utils/urls.ts","kind":"import-statement","original":"./urls"}],"format":"esm"},"src/providers/rudderstack.ts":{"bytes":8820,"imports":[{"path":"node_modules/@rudderstack/analytics-js/dist/npm/modern/esm/index.mjs","kind":"import-statement","original":"@rudderstack/analytics-js"},{"path":"src/utils/urls.ts","kind":"import-statement","original":"../utils/urls"},{"path":"src/utils/helpers.ts","kind":"import-statement","original":"../utils/helpers"}],"format":"esm"},"src/utils/storage.ts":{"bytes":2625,"imports":[],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/util.mjs":{"bytes":9941,"imports":[],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs":{"bytes":13664,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"}],"format":"esm"},"node_modules/dom-mutator/dist/dom-mutator.esm.js":{"bytes":14835,"imports":[],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs":{"bytes":7849,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/core.mjs":{"bytes":30540,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs","kind":"import-statement","original":"./mongrule.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs":{"bytes":26161,"imports":[{"path":"node_modules/dom-mutator/dist/dom-mutator.esm.js","kind":"import-statement","original":"dom-mutator"},{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs","kind":"import-statement","original":"./feature-repository.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/core.mjs","kind":"import-statement","original":"./core.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/GrowthBookClient.mjs":{"bytes":8990,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs","kind":"import-statement","original":"./feature-repository.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/core.mjs","kind":"import-statement","original":"./core.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/sticky-bucket-service.mjs":{"bytes":6878,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/core.mjs","kind":"import-statement","original":"./core.mjs"}],"format":"esm"},"node_modules/@growthbook/growthbook/dist/esm/index.mjs":{"bytes":789,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs","kind":"import-statement","original":"./feature-repository.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs","kind":"import-statement","original":"./GrowthBook.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/GrowthBookClient.mjs","kind":"import-statement","original":"./GrowthBookClient.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/sticky-bucket-service.mjs","kind":"import-statement","original":"./sticky-bucket-service.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs","kind":"import-statement","original":"./mongrule.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/util.mjs","kind":"import-statement","original":"./util.mjs"},{"path":"node_modules/@growthbook/growthbook/dist/esm/core.mjs","kind":"import-statement","original":"./core.mjs"}],"format":"esm"},"src/providers/growthbook.ts":{"bytes":7568,"imports":[{"path":"node_modules/@growthbook/growthbook/dist/esm/index.mjs","kind":"import-statement","original":"@growthbook/growthbook"},{"path":"node_modules/@rudderstack/analytics-js/dist/npm/modern/esm/index.mjs","kind":"import-statement","original":"@rudderstack/analytics-js"},{"path":"./growthbookTypes","kind":"import-statement","external":true},{"path":"src/utils/urls.ts","kind":"import-statement","original":"../utils/urls"},{"path":"src/utils/helpers.ts","kind":"import-statement","original":"../utils/helpers"}],"format":"esm"},"node_modules/posthog-js/dist/module.js":{"bytes":180600,"imports":[],"format":"esm"},"src/providers/posthog.ts":{"bytes":9915,"imports":[{"path":"node_modules/posthog-js/dist/module.js","kind":"import-statement","original":"posthog-js"},{"path":"src/utils/urls.ts","kind":"import-statement","original":"../utils/urls"},{"path":"src/utils/helpers.ts","kind":"import-statement","original":"../utils/helpers"}],"format":"esm"},"src/analytics.ts":{"bytes":23508,"imports":[{"path":"src/providers/rudderstack.ts","kind":"import-statement","original":"./providers/rudderstack"},{"path":"src/utils/storage.ts","kind":"import-statement","original":"./utils/storage"},{"path":"src/utils/helpers.ts","kind":"import-statement","original":"./utils/helpers"},{"path":"src/providers/growthbook.ts","kind":"dynamic-import","original":"./providers/growthbook"},{"path":"src/providers/posthog.ts","kind":"dynamic-import","original":"./providers/posthog"}],"format":"esm"},"src/index.ts":{"bytes":40,"imports":[{"path":"src/analytics.ts","kind":"import-statement","original":"./analytics"}],"format":"esm"}},"outputs":{"dist/browser/analytics.bundle.global.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1844410},"dist/browser/analytics.bundle.global.js":{"imports":[],"exports":[],"entryPoint":"src/index.ts","inputs":{"node_modules/@rudderstack/analytics-js/dist/npm/modern/esm/index.mjs":{"bytesInOutput":110845},"src/utils/urls.ts":{"bytesInOutput":891},"node_modules/js-cookie/dist/js.cookie.mjs":{"bytesInOutput":1413},"src/utils/helpers.ts":{"bytesInOutput":1276},"node_modules/@growthbook/growthbook/dist/esm/util.mjs":{"bytesInOutput":3635},"node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs":{"bytesInOutput":5508},"node_modules/dom-mutator/dist/dom-mutator.esm.js":{"bytesInOutput":6145},"node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs":{"bytesInOutput":2996},"node_modules/@growthbook/growthbook/dist/esm/core.mjs":{"bytesInOutput":10937},"node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs":{"bytesInOutput":14735},"node_modules/@growthbook/growthbook/dist/esm/index.mjs":{"bytesInOutput":35},"src/providers/growthbook.ts":{"bytesInOutput":3383},"node_modules/posthog-js/dist/module.js":{"bytesInOutput":178193},"src/providers/posthog.ts":{"bytesInOutput":3360},"src/index.ts":{"bytesInOutput":36},"src/providers/rudderstack.ts":{"bytesInOutput":3187},"src/utils/storage.ts":{"bytesInOutput":1089},"src/analytics.ts":{"bytesInOutput":6268}},"bytes":354782}}}
@@ -100,11 +100,13 @@ declare class Posthog {
100
100
  *
101
101
  * @param params.user_id - The user ID to use as client_id
102
102
  * @param params.email - The user's email, used to determine is_internal
103
+ * @param params.language - The user's language (BCP 47 tag, e.g. "en-GB")
103
104
  * @param params.country_of_residence - The user's country of residence
104
105
  */
105
- backfillPersonProperties: ({ user_id, email, country_of_residence, }: {
106
+ backfillPersonProperties: ({ user_id, email, language, country_of_residence, }: {
106
107
  user_id: string;
107
108
  email?: string;
109
+ language?: string;
108
110
  country_of_residence?: string;
109
111
  }) => void;
110
112
  /**
@@ -100,11 +100,13 @@ declare class Posthog {
100
100
  *
101
101
  * @param params.user_id - The user ID to use as client_id
102
102
  * @param params.email - The user's email, used to determine is_internal
103
+ * @param params.language - The user's language (BCP 47 tag, e.g. "en-GB")
103
104
  * @param params.country_of_residence - The user's country of residence
104
105
  */
105
- backfillPersonProperties: ({ user_id, email, country_of_residence, }: {
106
+ backfillPersonProperties: ({ user_id, email, language, country_of_residence, }: {
106
107
  user_id: string;
107
108
  email?: string;
109
+ language?: string;
108
110
  country_of_residence?: string;
109
111
  }) => void;
110
112
  /**