@repobit/dex-constants 1.1.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 +11 -0
- package/README.md +3 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.js +23 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +36 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## 1.1.0 (2025-05-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **DEX-21820:** added constants and sendCdpDataFunction ([fcdc7e5](https://github.com/bitdefender/dex-core/commit/fcdc7e5ee787ac5d702f7c8d11642321ab49a1b4))
|
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const Constants: {
|
|
2
|
+
ADOBE_MC_LOADED: string;
|
|
3
|
+
LAUNCH_URL: string;
|
|
4
|
+
ADOBE_MC_URL_ENV_MAP: Map<string, string>;
|
|
5
|
+
FINGERPRINT_LOCAL_STORAGE_NAME: string;
|
|
6
|
+
NO_FINGERPRINT_COOKIE_NAME: string;
|
|
7
|
+
LOGIN_LOGGED_USER_EXPIRY_COOKIE_NAME: string;
|
|
8
|
+
PUBLIC_URL_ORIGIN: string;
|
|
9
|
+
WWW_ONLY_ORIGIN: string;
|
|
10
|
+
FINGERPRINT_HEADER: string;
|
|
11
|
+
LOGIN_ATTEMPT_SESSION_STORAGE_KEY: string;
|
|
12
|
+
LOGIN_ENDPOINT: string;
|
|
13
|
+
PRODUCT_LOADED_EVENT: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const Constants = {
|
|
2
|
+
ADOBE_MC_LOADED: 'adobe_mc::loaded',
|
|
3
|
+
LAUNCH_URL: 'https://assets.adobedtm.com',
|
|
4
|
+
ADOBE_MC_URL_ENV_MAP: new Map([
|
|
5
|
+
['prod', '8a93f8486ba4/5492896ad67e/launch-b1f76be4d2ee.min.js'],
|
|
6
|
+
['stage', '8a93f8486ba4/5492896ad67e/launch-3e7065dd10db-staging.min.js'],
|
|
7
|
+
['dev', '8a93f8486ba4/5492896ad67e/launch-fbd6d02d30e8-development.min.js']
|
|
8
|
+
]),
|
|
9
|
+
FINGERPRINT_LOCAL_STORAGE_NAME: 'rhvID',
|
|
10
|
+
NO_FINGERPRINT_COOKIE_NAME: 'fgpnoneBD',
|
|
11
|
+
LOGIN_LOGGED_USER_EXPIRY_COOKIE_NAME: 'bdcslue',
|
|
12
|
+
PUBLIC_URL_ORIGIN: ['www.', 'stage.'].some(domain => window.location.hostname.includes(domain))
|
|
13
|
+
? window.location.origin
|
|
14
|
+
: 'https://www.bitdefender.com',
|
|
15
|
+
WWW_ONLY_ORIGIN: window.location.hostname.includes('www.')
|
|
16
|
+
? ''
|
|
17
|
+
: 'https://www.bitdefender.com',
|
|
18
|
+
FINGERPRINT_HEADER: 'BDUSRH_8D053E77FD604F168345E0F77318E993',
|
|
19
|
+
LOGIN_ATTEMPT_SESSION_STORAGE_KEY: 'login-attempt',
|
|
20
|
+
LOGIN_ENDPOINT: '/bin/login/init',
|
|
21
|
+
PRODUCT_LOADED_EVENT: 'product loaded'
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,eAAe,EAAO,kBAAkB;IACxC,UAAU,EAAY,6BAA6B;IACnD,oBAAoB,EAAE,IAAI,GAAG,CAAC;QAC5B,CAAC,MAAM,EAAE,sDAAsD,CAAC;QAChE,CAAC,OAAO,EAAE,8DAA8D,CAAC;QACzE,CAAC,KAAK,EAAE,kEAAkE,CAAC;KAC5E,CAAC;IACF,8BAA8B,EAAQ,OAAO;IAC7C,0BAA0B,EAAY,WAAW;IACjD,oCAAoC,EAAE,SAAS;IAC/C,iBAAiB,EAAqB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAChH,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM;QACxB,CAAC,CAAC,6BAA6B;IACjC,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;QACxD,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,6BAA6B;IACjC,kBAAkB,EAAiB,yCAAyC;IAC5E,iCAAiC,EAAE,eAAe;IAClD,cAAc,EAAqB,iBAAiB;IACpD,oBAAoB,EAAe,gBAAgB;CAEpD,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@repobit/dex-constants",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Package for Constants",
|
|
5
|
+
"author": "Constantin Ioan Mihai <iconstantin@bitdefender.com>",
|
|
6
|
+
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"main": "dist/src/index.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/src",
|
|
11
|
+
"README.md",
|
|
12
|
+
"CHANGELOG.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/bitdefender/dex-core.git"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc && tsc-alias",
|
|
24
|
+
"test": "vitest run"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/bitdefender/dex-core/issues"
|
|
28
|
+
},
|
|
29
|
+
"module": "dist/src/index.js",
|
|
30
|
+
"type": "module",
|
|
31
|
+
"types": "dist/src/index.d.ts",
|
|
32
|
+
"volta": {
|
|
33
|
+
"node": "22.14.0"
|
|
34
|
+
},
|
|
35
|
+
"gitHead": "cac3128091c62b4905b3625f23ee357093465256"
|
|
36
|
+
}
|