@repobit/dex-launch 2.1.7 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,27 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.0.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-launch@2.1.8...@repobit/dex-launch@3.0.0) (2026-02-17)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * **DEX-26358:** update environment constants and refactor launch script loading
12
+
13
+ ### Features
14
+
15
+ * **DEX-26358:** update environment constants and refactor launch script loading ([4eaea4d](https://github.com/bitdefender/dex-core/commit/4eaea4dd2949cb37e26aca3cfd78e432ef7e3f13))
16
+
17
+
18
+
19
+ ## [2.1.8](https://github.com/bitdefender/dex-core/compare/@repobit/dex-launch@2.1.7...@repobit/dex-launch@2.1.8) (2026-02-16)
20
+
21
+ **Note:** Version bump only for package @repobit/dex-launch
22
+
23
+
24
+
25
+
26
+
6
27
  ## [2.1.7](https://github.com/bitdefender/dex-core/compare/@repobit/dex-launch@2.1.6...@repobit/dex-launch@2.1.7) (2026-02-16)
7
28
 
8
29
  **Note:** Version bump only for package @repobit/dex-launch
@@ -1,3 +1,4 @@
1
+ import { ENVIRONMENTS } from './typeDefinitions.js';
1
2
  declare global {
2
3
  interface Window {
3
4
  BD: {
@@ -8,5 +9,5 @@ declare global {
8
9
  }
9
10
  }
10
11
  export default abstract class Launch {
11
- static load(environment: 'dev' | 'stage' | 'prod' | 'prodCheckout' | 'stageCheckout' | 'devCheckout'): Promise<void>;
12
+ static load(environment: ENVIRONMENTS): Promise<void>;
12
13
  }
package/dist/src/index.js CHANGED
@@ -5,10 +5,7 @@ export default class Launch {
5
5
  if (window.BD.state.launchScript) {
6
6
  return;
7
7
  }
8
- window.BD.state.launchScript = `${Constants.LAUNCH_URL}/${Constants.ADOBE_MC_URL_ENV_MAP.get(environment)}`;
9
- if (environment === 'dev') {
10
- window.BD.state.launchScript = `https://www.bitdefender.com/content/dam/launch/8a93f8486ba4/5492896ad67e/launch-fbd6d02d30e8-development.min.js`;
11
- }
8
+ window.BD.state.launchScript = `${Constants.ADOBE_MC_URL_ENV_MAP.get(environment)}`;
12
9
  await loadScript(window.BD.state.launchScript);
13
10
  }
14
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAYhD,MAAM,CAAC,OAAO,OAAgB,MAAM;IAC3B,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,WAAwF;QAC/G,IAAI,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;YACjC,OAAO;QACT,CAAC;QAED,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,GAAG,GAAG,SAAS,CAAC,UAAU,IAAI,SAAS,CAAC,oBAAoB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;QAC5G,IAAI,WAAW,KAAK,KAAK,EAAE,CAAC;YAC1B,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,GAAG,iHAAiH,CAAC;QACnJ,CAAC;QACD,MAAM,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACjD,CAAC;CACF;AAED,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;AAC5B,MAAM,CAAC,EAAE,CAAC,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC","sourcesContent":["import { Constants } from '@repobit/dex-constants';\nimport { loadScript } from \"@repobit/dex-utils\";\n\ndeclare global {\n interface Window {\n BD: {\n state: {\n launchScript: string\n }\n }\n }\n}\n\nexport default abstract class Launch {\n public static async load(environment: 'dev' | 'stage' | 'prod' | 'prodCheckout' | 'stageCheckout' | 'devCheckout'): Promise<void> {\n if (window.BD.state.launchScript) {\n return;\n }\n\n window.BD.state.launchScript = `${Constants.LAUNCH_URL}/${Constants.ADOBE_MC_URL_ENV_MAP.get(environment)}`;\n if (environment === 'dev') {\n window.BD.state.launchScript = `https://www.bitdefender.com/content/dam/launch/8a93f8486ba4/5492896ad67e/launch-fbd6d02d30e8-development.min.js`;\n }\n await loadScript(window.BD.state.launchScript);\n }\n}\n\nwindow.BD = window.BD || {};\nwindow.BD.state = window.BD.state || {};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAahD,MAAM,CAAC,OAAO,OAAgB,MAAM;IAC3B,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,WAAyB;QAChD,IAAI,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;YACjC,OAAO;QACT,CAAC;QAED,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,GAAG,GAAG,SAAS,CAAC,oBAAoB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;QACpF,MAAM,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACjD,CAAC;CACF;AAED,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;AAC5B,MAAM,CAAC,EAAE,CAAC,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC","sourcesContent":["import { Constants } from '@repobit/dex-constants';\nimport { loadScript } from \"@repobit/dex-utils\";\nimport { ENVIRONMENTS } from './typeDefinitions';\n\ndeclare global {\n interface Window {\n BD: {\n state: {\n launchScript: string\n }\n }\n }\n}\n\nexport default abstract class Launch {\n public static async load(environment: ENVIRONMENTS): Promise<void> {\n if (window.BD.state.launchScript) {\n return;\n }\n\n window.BD.state.launchScript = `${Constants.ADOBE_MC_URL_ENV_MAP.get(environment)}`;\n await loadScript(window.BD.state.launchScript);\n }\n}\n\nwindow.BD = window.BD || {};\nwindow.BD.state = window.BD.state || {};\n"]}
@@ -0,0 +1 @@
1
+ export type ENVIRONMENTS = 'dev' | 'stage' | 'prod' | 'prodCheckout' | 'stageCheckout' | 'devCheckout' | 'devCentral' | 'stageCentral' | 'prodCentral';
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=typeDefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeDefinitions.js","sourceRoot":"","sources":["../../src/typeDefinitions.ts"],"names":[],"mappings":"","sourcesContent":["export type ENVIRONMENTS = 'dev' | 'stage' | 'prod'\n | 'prodCheckout' | 'stageCheckout' | 'devCheckout'\n | 'devCentral' | 'stageCentral' | 'prodCentral';"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobit/dex-launch",
3
- "version": "2.1.7",
3
+ "version": "3.0.0",
4
4
  "description": "Client for Adobe Launch",
5
5
  "author": "Constantin Ioan Mihai <iconstantin@bitdefender.com>",
6
6
  "homepage": "https://github.com/bitdefender/dex-core#readme",
@@ -30,11 +30,11 @@
30
30
  "type": "module",
31
31
  "types": "dist/src/index.d.ts",
32
32
  "dependencies": {
33
- "@repobit/dex-constants": "^1.3.6",
34
- "@repobit/dex-utils": "^2.1.8"
33
+ "@repobit/dex-constants": "^2.0.0",
34
+ "@repobit/dex-utils": "^2.1.10"
35
35
  },
36
36
  "volta": {
37
37
  "node": "22.14.0"
38
38
  },
39
- "gitHead": "08ed6d2b786da2195071370e579b9e7f7df42982"
39
+ "gitHead": "cce9959bc55c65ba1435d1a1366ff19096c59913"
40
40
  }