@squiz/component-cli-lib 1.64.1 → 1.65.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/component-cli-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.65.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@squiz/dx-common-lib": "^1.64.0",
|
|
23
23
|
"@squiz/dx-json-schema-lib": "^1.65.0",
|
|
24
24
|
"@squiz/dx-logger-lib": "^1.64.0",
|
|
25
|
-
"@squiz/dxp-session-lib": "^1.
|
|
25
|
+
"@squiz/dxp-session-lib": "^1.65.0",
|
|
26
26
|
"@squiz/virus-scanner-lib": "^1.64.0",
|
|
27
27
|
"@types/cli-color": "2.0.2",
|
|
28
28
|
"@types/express": "4.17.17",
|
|
@@ -98,7 +98,7 @@ describe('PageRenderController- Integration', () => {
|
|
|
98
98
|
segments: ['is-authenticated'],
|
|
99
99
|
},
|
|
100
100
|
optimize: {
|
|
101
|
-
experiments: [
|
|
101
|
+
experiments: [],
|
|
102
102
|
},
|
|
103
103
|
},
|
|
104
104
|
],
|
|
@@ -124,7 +124,7 @@ describe('PageRenderController- Integration', () => {
|
|
|
124
124
|
},
|
|
125
125
|
],
|
|
126
126
|
[
|
|
127
|
-
'an experiment variant',
|
|
127
|
+
'an experiment variant (experiments as an array in session)',
|
|
128
128
|
{
|
|
129
129
|
version: DxpSessionVersion.version1,
|
|
130
130
|
cdp: {
|
|
@@ -147,6 +147,30 @@ describe('PageRenderController- Integration', () => {
|
|
|
147
147
|
},
|
|
148
148
|
},
|
|
149
149
|
],
|
|
150
|
+
[
|
|
151
|
+
'an experiment variant (experiments as an object in session)',
|
|
152
|
+
{
|
|
153
|
+
version: DxpSessionVersion.version1,
|
|
154
|
+
cdp: {
|
|
155
|
+
anonymous: false,
|
|
156
|
+
customerid: 'test-id-123',
|
|
157
|
+
segments: ['is-authenticated'],
|
|
158
|
+
},
|
|
159
|
+
optimize: {
|
|
160
|
+
experiments: { experiment1: 'B' },
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
'<h1>Hello Authenticated User with experiment B!</h1>',
|
|
164
|
+
{
|
|
165
|
+
version: DxpSessionVersion.version1,
|
|
166
|
+
cdp: {
|
|
167
|
+
segments: ['is-authenticated'],
|
|
168
|
+
},
|
|
169
|
+
optimize: {
|
|
170
|
+
experiments: { experiment1: 'B' },
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
],
|
|
150
174
|
[
|
|
151
175
|
'the default variant',
|
|
152
176
|
{
|