Skip to content

Commit a64cd19

Browse files
Fix(webpack5): Should not import named export from default-exporting module (#103)
* Fix(webpack5): Should not import named export from default-exporting module * empty commit in an attempt to trigger build checks Co-authored-by: Eric Fichtel <efichtel@adobe.com>
1 parent 0a6ff1b commit a64cd19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/target-nodejs-sdk/src/helper.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import {
5454
SESSION_ID_COOKIE
5555
} from "./cookies";
5656

57-
import { version } from "../package.json";
57+
import packageInfo from "../package.json";
5858

5959
import {
6060
executeSendBeacon,
@@ -85,6 +85,7 @@ const HOST = "tt.omtrdc.net";
8585
const SESSION_ID_MAX_AGE = 1860;
8686
const DEVICE_ID_MAX_AGE = 63244800;
8787
const LOCATION_HINT_MAX_AGE = 1860;
88+
const PACKAGE_VERSION = packageInfo.version;
8889

8990
DeliveryApi.prototype.decisioningMethod = DECISIONING_METHOD.SERVER_SIDE;
9091

@@ -156,7 +157,7 @@ export function createHeaders(uuidMethod = uuid) {
156157
return {
157158
"Content-Type": "application/json",
158159
"X-EXC-SDK": "AdobeTargetNode",
159-
"X-EXC-SDK-Version": version,
160+
"X-EXC-SDK-Version": PACKAGE_VERSION,
160161
"X-Request-Id": uuidMethod()
161162
};
162163
}

0 commit comments

Comments
 (0)