@repobit/dex-utils 2.2.0 → 2.2.1
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 +8 -0
- package/README.md +23 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [2.2.1](https://github.com/bitdefender/dex-core/compare/@repobit/dex-utils@2.2.0...@repobit/dex-utils@2.2.1) (2026-04-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @repobit/dex-utils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.2.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-utils@2.1.12...@repobit/dex-utils@2.2.0) (2026-04-08)
|
|
7
15
|
|
|
8
16
|
### Features
|
package/README.md
CHANGED
|
@@ -251,4 +251,26 @@ const debouncedFunction = debounce(() => {
|
|
|
251
251
|
}, 300);
|
|
252
252
|
|
|
253
253
|
document.querySelector('input')?.addEventListener('input', debouncedFunction);
|
|
254
|
-
```
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## getUserVisitorId
|
|
259
|
+
|
|
260
|
+
### Description
|
|
261
|
+
Fetches the current user's visitor ID from the `/bduuid` endpoint and returns the `bd_visitor_id` value from the response payload.
|
|
262
|
+
|
|
263
|
+
### Parameters:
|
|
264
|
+
|
|
265
|
+
This function does not accept any parameters.
|
|
266
|
+
|
|
267
|
+
### Returns:
|
|
268
|
+
|
|
269
|
+
- #### Promise<string> - Resolves to the user's visitor ID.
|
|
270
|
+
|
|
271
|
+
### Usage
|
|
272
|
+
|
|
273
|
+
```typescript
|
|
274
|
+
const visitorId = await getUserVisitorId();
|
|
275
|
+
console.log(visitorId);
|
|
276
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-utils",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Client for Utils",
|
|
5
5
|
"author": "Constantin Ioan Mihai <iconstantin@bitdefender.com>",
|
|
6
6
|
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"types": "dist/src/index.d.ts",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@repobit/dex-constants": "^2.1.
|
|
33
|
+
"@repobit/dex-constants": "^2.1.1",
|
|
34
34
|
"js-cookie": "^3.0.5"
|
|
35
35
|
},
|
|
36
36
|
"volta": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/js-cookie": "^3.0.6"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "b5e5567f6d68800a73154c9da2e4a3023eb18945"
|
|
43
43
|
}
|