@repobit/dex-target 1.4.1 → 1.7.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 +29 -0
- package/README.md +158 -4
- package/dist/src/index.d.ts +9 -2
- package/dist/src/index.js +29 -18
- package/dist/src/index.js.map +1 -1
- package/dist/src/typeDefinitions.d.ts +3 -3
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,35 @@
|
|
|
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
|
+
## [1.7.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-target@1.6.0...@repobit/dex-target@1.7.0) (2025-04-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **DEX-21820:** updated package versions and lerna script ([1cabbf9](https://github.com/bitdefender/dex-core/commit/1cabbf980c38f063ea3c64ad6e70b1abc0d0c4f7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [1.6.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-target@1.4.1...@repobit/dex-target@1.6.0) (2025-04-02)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **DEX-21820:** added package docs ([215639a](https://github.com/bitdefender/dex-core/commit/215639a57878fc6a14cffda3f5b76689f38ac1b6))
|
|
21
|
+
* **DEX-21820:** added target tests ([6436b75](https://github.com/bitdefender/dex-core/commit/6436b75ad1937da0f9bd932c86c3fe8ba0bf3d54))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [1.5.0](https://github.com/bitdefender/dex-core/compare/@repobit/dex-target@1.4.1...@repobit/dex-target@1.5.0) (2025-04-02)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **DEX-21820:** added package docs ([215639a](https://github.com/bitdefender/dex-core/commit/215639a57878fc6a14cffda3f5b76689f38ac1b6))
|
|
31
|
+
* **DEX-21820:** added target tests ([6436b75](https://github.com/bitdefender/dex-core/commit/6436b75ad1937da0f9bd932c86c3fe8ba0bf3d54))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
6
35
|
## [1.4.1](https://github.com/bitdefender/dex-core/compare/@repobit/dex-target@1.4.0...@repobit/dex-target@1.4.1) (2025-03-26)
|
|
7
36
|
|
|
8
37
|
|
package/README.md
CHANGED
|
@@ -1,11 +1,165 @@
|
|
|
1
|
-
# `@
|
|
1
|
+
# `@repobit/dex-target`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Target Integration SDK Documentation
|
|
4
|
+
|
|
5
|
+
This document provides a comprehensive overview of the Target Integration SDK, outlining its purpose, key features, installation guidelines, and detailed information on its core components such as the main class, available methods, public properties and usability.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
The Target Integration SDK is designed to simplify the integration process with Adobe Target and the Adobe Data Layer. It provides a centralized solution for managing visitor identity operations, sending events, appending visitor IDs to URLs, retrieving mbox offers, and fetching Customer Data Platform (CDP) data. The SDK encapsulates these operations within a single abstract class, ensuring that targeting functionalities are cleanly organized and maintainable in your application.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Key Features
|
|
16
|
+
|
|
17
|
+
- **Adobe SDK base:**
|
|
18
|
+
This package is built on top of the `Adobe WebSDK` implementation and it makes use of the `alloy` methods in order to deliver mbox offers, define the identity of the user using the Adobe Cloud and append identity information onto external links.
|
|
19
|
+
|
|
20
|
+
- **Integration through proxy:**
|
|
21
|
+
The SDK initializes a global proxy to Adobe WebSDK's `alloy` called `alloyProxy`, ensuring that all Adobe Target-related operations are performed through a consistent interface and that early calls are queued up before they can be resolved by the WebSDK once Adobe Launch actually loads.
|
|
22
|
+
|
|
23
|
+
- **Visitor Identity Management:**
|
|
24
|
+
It handles asynchronous retrieval and caching of visitor identity information, ensuring that personalized experiences are based on accurate and up-to-date visitor data.
|
|
25
|
+
|
|
26
|
+
- **Dynamic URL Parameter Extraction:**
|
|
27
|
+
Automatically extracts URL query parameters from the current page, enabling seamless integration with targeting operations without manual parameter management.
|
|
28
|
+
|
|
29
|
+
- **CDP Data Processing:**
|
|
30
|
+
The SDK retrieves, processes, and integrates Customer Data Platform (CDP) data, which is then dispatched to the Adobe Data Layer for further analysis and personalization.
|
|
31
|
+
|
|
32
|
+
- **Offer Retrieval and Caching:**
|
|
33
|
+
Supports multiple configurations for retrieving mbox offers. It caches responses to avoid redundant network requests and optimizes the offer delivery process.
|
|
34
|
+
|
|
35
|
+
- **Abort Mechanism for Robust Operations:**
|
|
36
|
+
Utilizes an AbortController to cancel pending operations if needed, preventing issues when operations take longer than expected or if a page is unloaded.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
This package relies on external dependencies:
|
|
43
|
+
- @repobit/dex-data-layer
|
|
44
|
+
- @repobit/dex-utils
|
|
45
|
+
|
|
46
|
+
Install via npm or yarn:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npm install @repobit/dex-target
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Class: Target
|
|
55
|
+
|
|
56
|
+
The `Target` class is an abstract class that serves as the main entry point for Adobe Target integration. It is responsible for initializing Adobe Target operations, managing internal state, and providing methods to interact with Adobe Target functionalities.
|
|
57
|
+
|
|
58
|
+
---
|
|
4
59
|
|
|
5
60
|
## Usage
|
|
6
61
|
|
|
62
|
+
### Import the SDK
|
|
63
|
+
Simply import the `Target` class into your project. Since `Target` is an abstract class with static methods, there’s no need to create an instance. The module automatically sets up the global `window.alloyProxy` and begins fetching necessary data as soon as it is loaded.
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
import Target from '@repobit/dex-target';
|
|
7
67
|
```
|
|
8
|
-
import Target from '@bitdefender/dex-target';
|
|
9
68
|
|
|
10
|
-
|
|
69
|
+
### Getting the config mbox
|
|
70
|
+
The `Config mbox` contains information regarding promotions, buy link and product information changes, as well as the useGeoIpPricing boolean value which specifies that the user locale should be used instead of the website locale. The type definition of the mbox is described below:
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
export type ConfigMbox = Partial<{
|
|
74
|
+
promotion: string,
|
|
75
|
+
products: {
|
|
76
|
+
[key: string]: {
|
|
77
|
+
[key: `${number}-${number}`]: Partial<{
|
|
78
|
+
extraParameters: {
|
|
79
|
+
key : string,
|
|
80
|
+
value: string
|
|
81
|
+
}[],
|
|
82
|
+
price : number,
|
|
83
|
+
discountedPrice: number,
|
|
84
|
+
buyLink : string
|
|
85
|
+
}>
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
useGeoIpPricing: boolean
|
|
89
|
+
}>;
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Usage:
|
|
93
|
+
|
|
94
|
+
```typescript
|
|
95
|
+
Target.configMbox.then(configMboxData => {
|
|
96
|
+
console.log('Config data: ', configMboxData);
|
|
97
|
+
});
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Getting Visitor Info
|
|
101
|
+
The visitorInfo property returns a promise that resolves to the visitor’s identity details (such as ECID).
|
|
102
|
+
|
|
103
|
+
```typescript
|
|
104
|
+
Target.visitorInfo.then(info => {
|
|
105
|
+
console.log('Visitor Info: ', info);
|
|
106
|
+
});
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Append Visitor IDs to a URL
|
|
110
|
+
Use the appendVisitorIDsTo method to append the Adobe Marketing Cloud (adobe_mc) identifier to any URL. This is useful for tracking and personalization.
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
Target.appendVisitorIDsTo('https://example.com')
|
|
114
|
+
.then((updatedUrl) => {
|
|
115
|
+
console.log('Updated URL:', updatedUrl);
|
|
116
|
+
});
|
|
11
117
|
```
|
|
118
|
+
|
|
119
|
+
### Retrieve Offers
|
|
120
|
+
The getOffers method can be used to fetch Adobe Target offers. It supports both single and multiple mbox names, and accepts optional mbox and profile parameters. It is important to note that all getOffers calls made are cached, but the calls themselves will differ based on the parameters and profile parameters passed, not just by the mboxNames. So if you make a call for an mbox, then another one for same mbox, but you use differenet parameters or profile parameters, these will be cached separately since their scope will be different.
|
|
121
|
+
|
|
122
|
+
#### Single mbox example:
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
Target.getOffers({
|
|
126
|
+
mboxNames: 'config-mbox',
|
|
127
|
+
parameters: { customParam: 'value' },
|
|
128
|
+
profileParameters: { profile.custom: 'value' }
|
|
129
|
+
}).then(offer => {
|
|
130
|
+
console.log('Config Mbox Offer:', offer);
|
|
131
|
+
});
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
#### Multiple mbox example:
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
Target.getOffers({
|
|
138
|
+
mboxNames: ['mbox1', 'mbox2'],
|
|
139
|
+
parameters: { customParam: 'value' },
|
|
140
|
+
profileParameters: { profile.custom: 'value' }
|
|
141
|
+
}).then(offers => {
|
|
142
|
+
console.log('Offers:', offers);
|
|
143
|
+
});
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Here the response type of offers will be something like this, instead of the actual data directly:
|
|
147
|
+
|
|
148
|
+
```typescript
|
|
149
|
+
{
|
|
150
|
+
mbox1: {<data_object>},
|
|
151
|
+
mbox2: {<data_object>}
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### Aborting Requests
|
|
157
|
+
If needed, abort all ongoing Target-related calls using the abort method. This is particularly useful when Target fails to load or if you need to cancel pending operations. This work well with the @repobit/dex-launch to cancel all alloy requests if the `Adobe Launch` does not load.
|
|
158
|
+
|
|
159
|
+
```typescript
|
|
160
|
+
try {
|
|
161
|
+
Launch.load()
|
|
162
|
+
} catch (e) {
|
|
163
|
+
Target.abort()
|
|
164
|
+
}
|
|
165
|
+
```
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlloyFunction, ConfigMbox,
|
|
1
|
+
import { AlloyFunction, ConfigMbox, MboxParameters, MboxProfileParameters } from "./typeDefinitions.js";
|
|
2
2
|
declare global {
|
|
3
3
|
interface Window {
|
|
4
4
|
alloyProxy: AlloyFunction;
|
|
@@ -30,7 +30,14 @@ export default abstract class Target {
|
|
|
30
30
|
};
|
|
31
31
|
useGeoIpPricing: boolean;
|
|
32
32
|
}> | undefined>;
|
|
33
|
-
static get visitorInfo(): Promise<
|
|
33
|
+
static get visitorInfo(): Promise<Partial<{
|
|
34
|
+
edge: {
|
|
35
|
+
regionId?: number;
|
|
36
|
+
};
|
|
37
|
+
identity: {
|
|
38
|
+
ECID: string;
|
|
39
|
+
};
|
|
40
|
+
}>>;
|
|
34
41
|
/** add adobe_mc parameter at the end of the url */
|
|
35
42
|
static appendVisitorIDsTo(url: string): Promise<string>;
|
|
36
43
|
/** abort all the Target calls for casese where Target does not load */
|
package/dist/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdobeDataLayerService, CdpEvent } from "@repobit/dex-data-layer";
|
|
2
2
|
import { Constants } from "@repobit/dex-utils";
|
|
3
|
-
const
|
|
3
|
+
const _window = window;
|
|
4
4
|
export default class Target {
|
|
5
5
|
static urlParameters = this.getUrlParameters();
|
|
6
6
|
static cachedMboxes = new Map();
|
|
@@ -21,7 +21,11 @@ export default class Target {
|
|
|
21
21
|
window.alloyProxy.q = [];
|
|
22
22
|
}
|
|
23
23
|
this._configMbox = this.getOffers({ mboxNames: 'config-mbox' });
|
|
24
|
-
this._visitorInfo =
|
|
24
|
+
this._visitorInfo = new Promise((resolve) => {
|
|
25
|
+
window.alloyProxy("getIdentity").then(result => resolve(result))
|
|
26
|
+
.catch(() => resolve({}));
|
|
27
|
+
this.controller.signal?.addEventListener("abort", () => resolve({}));
|
|
28
|
+
});
|
|
25
29
|
}
|
|
26
30
|
/** get an object containing all the url query parameters */
|
|
27
31
|
static getUrlParameters() {
|
|
@@ -39,17 +43,15 @@ export default class Target {
|
|
|
39
43
|
return this._visitorInfo;
|
|
40
44
|
}
|
|
41
45
|
/** add adobe_mc parameter at the end of the url */
|
|
42
|
-
static
|
|
43
|
-
if (url.includes('adobe_mc')) {
|
|
44
|
-
return url;
|
|
45
|
-
}
|
|
46
|
-
try {
|
|
47
|
-
return (await window.alloyProxy("appendIdentityToUrl", { url })).url;
|
|
48
|
-
}
|
|
49
|
-
catch (e) {
|
|
50
|
-
console.warn(e);
|
|
51
|
-
return url;
|
|
46
|
+
static appendVisitorIDsTo(url) {
|
|
47
|
+
if (url.includes('adobe_mc') || this.controller.signal?.aborted) {
|
|
48
|
+
return Promise.resolve(url);
|
|
52
49
|
}
|
|
50
|
+
return new Promise((resolve) => {
|
|
51
|
+
window.alloyProxy("appendIdentityToUrl", { url }).then(result => resolve(result.url))
|
|
52
|
+
.catch(() => resolve(url));
|
|
53
|
+
this.controller.signal?.addEventListener("abort", () => resolve(url));
|
|
54
|
+
});
|
|
53
55
|
}
|
|
54
56
|
/** abort all the Target calls for casese where Target does not load */
|
|
55
57
|
static abort() {
|
|
@@ -57,7 +59,14 @@ export default class Target {
|
|
|
57
59
|
}
|
|
58
60
|
static async getCdpData() {
|
|
59
61
|
try {
|
|
60
|
-
|
|
62
|
+
let didCdpGetInstantiated = false;
|
|
63
|
+
const mcid = (await this._visitorInfo)?.identity?.ECID;
|
|
64
|
+
if (!_window.BD.cdpDataCall) {
|
|
65
|
+
_window.BD.cdpDataCall = fetch(`${Constants.PUBLIC_URL_ORIGIN}/cdp/${mcid}`);
|
|
66
|
+
didCdpGetInstantiated = true;
|
|
67
|
+
}
|
|
68
|
+
const cdpDataCall = await _window.BD.cdpDataCall;
|
|
69
|
+
/** @type {{auds: string[], mdl: {key: string, value: string}[], ub: any[] vid: string}} */
|
|
61
70
|
const receivedCdpData = await cdpDataCall.json();
|
|
62
71
|
let cdpData = {
|
|
63
72
|
auds: receivedCdpData?.auds[0] || ''
|
|
@@ -68,7 +77,9 @@ export default class Target {
|
|
|
68
77
|
return acc;
|
|
69
78
|
}, cdpData);
|
|
70
79
|
}
|
|
71
|
-
|
|
80
|
+
if (didCdpGetInstantiated) {
|
|
81
|
+
AdobeDataLayerService.push(new CdpEvent(cdpData));
|
|
82
|
+
}
|
|
72
83
|
return cdpData;
|
|
73
84
|
}
|
|
74
85
|
catch (e) {
|
|
@@ -117,10 +128,10 @@ export default class Target {
|
|
|
117
128
|
});
|
|
118
129
|
this.controller.signal?.addEventListener("abort", reject);
|
|
119
130
|
});
|
|
120
|
-
this.cachedMboxes.set(`${mbox}_${JSON.stringify(parameters)}`, receivedMboxOfferCall);
|
|
131
|
+
this.cachedMboxes.set(`${mbox}_${JSON.stringify(parameters)}_${JSON.stringify(profileParameters)}`, receivedMboxOfferCall);
|
|
121
132
|
});
|
|
122
133
|
}
|
|
123
|
-
const mboxesPromises = mboxNames.map(mboxName => this.cachedMboxes.get(`${mboxName}_${JSON.stringify(parameters)}`));
|
|
134
|
+
const mboxesPromises = mboxNames.map(mboxName => this.cachedMboxes.get(`${mboxName}_${JSON.stringify(parameters)}_${JSON.stringify(profileParameters)}`));
|
|
124
135
|
const resolvedMboxes = await Promise.allSettled(mboxesPromises);
|
|
125
136
|
const offersResult = mboxNames.reduce((acc, mboxName, index) => {
|
|
126
137
|
acc[mboxName] = resolvedMboxes[index].status === 'fulfilled' ? resolvedMboxes[index].value : undefined;
|
|
@@ -129,6 +140,6 @@ export default class Target {
|
|
|
129
140
|
return mboxNames.length > 1 ? offersResult : offersResult[mboxNames[0]];
|
|
130
141
|
}
|
|
131
142
|
}
|
|
132
|
-
|
|
133
|
-
|
|
143
|
+
_window.BD = _window.BD || {};
|
|
144
|
+
_window.BD.Target = Target;
|
|
134
145
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAyB/C,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAyB/C,MAAM,OAAO,GAAG,MAGb,CAAA;AAEH,MAAM,CAAC,OAAO,OAAgB,MAAM;IAC1B,MAAM,CAAC,aAAa,GAAkB,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC9D,MAAM,CAAC,YAAY,GAA8C,IAAI,GAAG,EAAE,CAAC;IAC3E,MAAM,CAAC,WAAW,CAAoC;IACtD,MAAM,CAAC,UAAU,GAAuB,IAAI,eAAe,EAAE,CAAC;IAC9D,MAAM,CAAC,YAAY,CAAgC;IACnD,MAAM,CAAC,OAAO,GAA2B,IAAI,CAAC,UAAU,EAAE,CAAC;IAEnE,mDAAmD;IACnD,2CAA2C;IAC3C;QACE,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;YAKvB,SAAS,OAAO,CAAC,GAAG,IAAuF;gBAEzG,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;oBACrC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;gBACpD,CAAC,CAAC,CAAC;YACL,CAAC;YAED,MAAM,CAAC,UAAU,GAAG,OAAwB,CAAC;YAC7C,MAA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C,CAAC,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC;;AAGH,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC;AAC9B,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -87,14 +87,14 @@ export type AlloyAppendIdentityToUrlResponse = {
|
|
|
87
87
|
export type AlloyApplyPropositionsResponse = {
|
|
88
88
|
propositions: AlloyResponsePropositions[];
|
|
89
89
|
};
|
|
90
|
-
export type GetIdentityResponse = {
|
|
90
|
+
export type GetIdentityResponse = Partial<{
|
|
91
91
|
edge: {
|
|
92
|
-
regionId
|
|
92
|
+
regionId?: number;
|
|
93
93
|
};
|
|
94
94
|
identity: {
|
|
95
95
|
ECID: string;
|
|
96
96
|
};
|
|
97
|
-
}
|
|
97
|
+
}>;
|
|
98
98
|
export type AlloyFunction = {
|
|
99
99
|
(...args: SendEventCall): Promise<AlloySendEventResponse>;
|
|
100
100
|
(...args: AppendIdentityToUrlCall): Promise<AlloyAppendIdentityToUrlResponse>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-target",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Client for Adobe Target",
|
|
5
5
|
"author": "Constantin Ioan Mihai <iconstantin@bitdefender.com>",
|
|
6
6
|
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
@@ -27,11 +27,14 @@
|
|
|
27
27
|
"url": "https://github.com/bitdefender/dex-core/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@repobit/dex-data-layer": "
|
|
31
|
-
"@repobit/dex-utils": "
|
|
30
|
+
"@repobit/dex-data-layer": "^1.2.0",
|
|
31
|
+
"@repobit/dex-utils": "*"
|
|
32
32
|
},
|
|
33
33
|
"module": "dist/src/index.js",
|
|
34
34
|
"type": "module",
|
|
35
35
|
"types": "dist/src/index.d.ts",
|
|
36
|
-
"
|
|
36
|
+
"volta": {
|
|
37
|
+
"node": "22.14.0"
|
|
38
|
+
},
|
|
39
|
+
"gitHead": "e4c954268a935d77691d779025eb23ae705909ef"
|
|
37
40
|
}
|