Skip to content

Commit 50be557

Browse files
fix(env_key): send env_key for event arch accounts
1 parent b454e71 commit 50be557

File tree

7 files changed

+53
-21
lines changed

7 files changed

+53
-21
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.60.1] - 2023-10-09
9+
10+
### Fixed
11+
12+
- Send environment key for event arch accounts
13+
814
## [1.60.0] - 2023-09-27
915

1016
### Added

dist/vwo-javascript-sdk.js

Lines changed: 37 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vwo-javascript-sdk.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vwo-javascript-sdk.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vwo-javascript-sdk.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/utils/ImpressionUtil.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,8 @@ let ImpressionUtil = {
355355

356356
let props = {
357357
vwo_sdkName: Constants.SDK_NAME,
358-
vwo_sdkVersion: Constants.SDK_VERSION
358+
vwo_sdkVersion: Constants.SDK_VERSION,
359+
vwo_envKey: sdkKey
359360
};
360361

361362
// if (usageStats) {

test/utils/ImpressionUtil.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ describe('ImpressionUtil', () => {
100100
props: {
101101
vwo_sdkName: expect.any(String),
102102
vwo_sdkVersion: expect.any(String),
103+
vwo_envKey: expect.any(String),
103104
id: expect.any(Number),
104105
isFirst: expect.any(Number),
105106
variation: expect.any(Number)
@@ -161,6 +162,7 @@ describe('ImpressionUtil', () => {
161162
props: {
162163
vwo_sdkName: expect.any(String),
163164
vwo_sdkVersion: expect.any(String),
165+
vwo_envKey: expect.any(String),
164166
vwoMeta: {
165167
metric: expect.any(Object),
166168
revenue: expect.any(Number)
@@ -202,6 +204,7 @@ describe('ImpressionUtil', () => {
202204
props: {
203205
vwo_sdkName: expect.any(String),
204206
vwo_sdkVersion: expect.any(String),
207+
vwo_envKey: expect.any(String),
205208
isCustomEvent: expect.any(Boolean)
206209
},
207210
name: expect.any(String),
@@ -237,6 +240,7 @@ describe('ImpressionUtil', () => {
237240
props: {
238241
vwo_sdkName: expect.any(String),
239242
vwo_sdkVersion: expect.any(String),
243+
vwo_envKey: expect.any(String),
240244
isCustomEvent: expect.any(Boolean)
241245
},
242246
name: expect.any(String),

0 commit comments

Comments
 (0)