@walkeros/web-destination-pinterest 3.3.1 → 3.4.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.
@@ -106,12 +106,9 @@ declare namespace env {
106
106
 
107
107
  /**
108
108
  * Output convention:
109
- * - Single SDK call: out = ['window.pintrk', 'track', 'checkout', { ... }]
110
- * (flat array: first element is the dot-path, remaining elements are args)
111
- * - Multiple SDK calls: out = [ [path, ...args], [path, ...args] ]
109
+ * - Single SDK call: out = [['pintrk', 'track', 'checkout', { ... }]]
110
+ * - Multiple SDK calls: out = [['pintrk', ...], ['pintrk', ...]]
112
111
  * - Zero SDK calls: out = []
113
- *
114
- * The step-examples test runner normalizes both shapes via flatten().
115
112
  */
116
113
  /**
117
114
  * Default event forwarding — no rule. Without a mapping.name, the walkerOS
@@ -136,55 +133,34 @@ declare const pageViewRename: Flow.StepExample;
136
133
  */
137
134
  declare const siteSearch: Flow.StepExample;
138
135
  /**
139
- * Single-product viewcontent. Illustrates:
140
- * - currency fallback via { key, value: 'EUR' }
141
- * - flat product_* parameter names
136
+ * Single-product viewcontent.
142
137
  */
143
138
  declare const productViewContent: Flow.StepExample;
144
139
  /**
145
140
  * Add-to-cart with an inline line_items array.
146
- *
147
- * Pinterest sends a single track() call with line_items as an ARRAY
148
- * INSIDE the event data — NOT a loop of N separate calls.
149
141
  */
150
142
  declare const productAddToCart: Flow.StepExample;
151
143
  /**
152
144
  * Multi-product checkout — the canonical Pinterest ecommerce pattern.
153
- * `line_items.loop: ["nested", { condition, map }]` iterates event.nested
154
- * and produces ONE array inside a SINGLE track() call.
155
- *
156
- * Default fixture has 3 nested entries: ers (420 black), cc (42, no color),
157
- * gift (no price → filtered out by condition).
158
145
  */
159
146
  declare const orderCompleteCheckout: Flow.StepExample;
160
147
  /**
161
148
  * Lead conversion with per-event enhanced matching update.
162
- *
163
- * The rule-level settings.identify resolves to { em, external_id } and
164
- * triggers pintrk('set', data) BEFORE the track() call — enhanced
165
- * matching data is associated with the same event via event_id.
166
149
  */
167
150
  declare const userLoginLead: Flow.StepExample;
168
151
  /**
169
152
  * mapping.skip — processes side effects (identify set) but suppresses
170
- * the default pintrk('track', ...) call. Useful when an upstream
171
- * destination already fired the conversion and you only want to update
172
- * enhanced matching.
153
+ * the default pintrk('track', ...) call.
173
154
  */
174
155
  declare const identifyOnlySkip: Flow.StepExample;
175
156
  /**
176
157
  * Consent revocation — walkerOS walker consent { marketing: false }.
177
158
  * The destination's on('consent') handler flips the runtime state flag
178
- * and stops calling pintrk('track', ...) for subsequent events. There
179
- * is NO opt_out SDK call — Pinterest has no such API.
180
- *
181
- * Expected out: [] — no pintrk calls fire as a direct result of the
182
- * consent dispatch.
159
+ * and stops calling pintrk('track', ...) for subsequent events.
183
160
  */
184
161
  declare const consentRevoke: Flow.StepExample;
185
162
  /**
186
- * Consent grant — explicit opt-in. Same behavior: the destination's
187
- * on('consent') flips the flag. No SDK call fires.
163
+ * Consent grant — explicit opt-in.
188
164
  */
189
165
  declare const consentGrant: Flow.StepExample;
190
166
 
@@ -106,12 +106,9 @@ declare namespace env {
106
106
 
107
107
  /**
108
108
  * Output convention:
109
- * - Single SDK call: out = ['window.pintrk', 'track', 'checkout', { ... }]
110
- * (flat array: first element is the dot-path, remaining elements are args)
111
- * - Multiple SDK calls: out = [ [path, ...args], [path, ...args] ]
109
+ * - Single SDK call: out = [['pintrk', 'track', 'checkout', { ... }]]
110
+ * - Multiple SDK calls: out = [['pintrk', ...], ['pintrk', ...]]
112
111
  * - Zero SDK calls: out = []
113
- *
114
- * The step-examples test runner normalizes both shapes via flatten().
115
112
  */
116
113
  /**
117
114
  * Default event forwarding — no rule. Without a mapping.name, the walkerOS
@@ -136,55 +133,34 @@ declare const pageViewRename: Flow.StepExample;
136
133
  */
137
134
  declare const siteSearch: Flow.StepExample;
138
135
  /**
139
- * Single-product viewcontent. Illustrates:
140
- * - currency fallback via { key, value: 'EUR' }
141
- * - flat product_* parameter names
136
+ * Single-product viewcontent.
142
137
  */
143
138
  declare const productViewContent: Flow.StepExample;
144
139
  /**
145
140
  * Add-to-cart with an inline line_items array.
146
- *
147
- * Pinterest sends a single track() call with line_items as an ARRAY
148
- * INSIDE the event data — NOT a loop of N separate calls.
149
141
  */
150
142
  declare const productAddToCart: Flow.StepExample;
151
143
  /**
152
144
  * Multi-product checkout — the canonical Pinterest ecommerce pattern.
153
- * `line_items.loop: ["nested", { condition, map }]` iterates event.nested
154
- * and produces ONE array inside a SINGLE track() call.
155
- *
156
- * Default fixture has 3 nested entries: ers (420 black), cc (42, no color),
157
- * gift (no price → filtered out by condition).
158
145
  */
159
146
  declare const orderCompleteCheckout: Flow.StepExample;
160
147
  /**
161
148
  * Lead conversion with per-event enhanced matching update.
162
- *
163
- * The rule-level settings.identify resolves to { em, external_id } and
164
- * triggers pintrk('set', data) BEFORE the track() call — enhanced
165
- * matching data is associated with the same event via event_id.
166
149
  */
167
150
  declare const userLoginLead: Flow.StepExample;
168
151
  /**
169
152
  * mapping.skip — processes side effects (identify set) but suppresses
170
- * the default pintrk('track', ...) call. Useful when an upstream
171
- * destination already fired the conversion and you only want to update
172
- * enhanced matching.
153
+ * the default pintrk('track', ...) call.
173
154
  */
174
155
  declare const identifyOnlySkip: Flow.StepExample;
175
156
  /**
176
157
  * Consent revocation — walkerOS walker consent { marketing: false }.
177
158
  * The destination's on('consent') handler flips the runtime state flag
178
- * and stops calling pintrk('track', ...) for subsequent events. There
179
- * is NO opt_out SDK call — Pinterest has no such API.
180
- *
181
- * Expected out: [] — no pintrk calls fire as a direct result of the
182
- * consent dispatch.
159
+ * and stops calling pintrk('track', ...) for subsequent events.
183
160
  */
184
161
  declare const consentRevoke: Flow.StepExample;
185
162
  /**
186
- * Consent grant — explicit opt-in. Same behavior: the destination's
187
- * on('consent') flips the flag. No SDK call fires.
163
+ * Consent grant — explicit opt-in.
188
164
  */
189
165
  declare const consentGrant: Flow.StepExample;
190
166
 
@@ -113,9 +113,9 @@ var c = {};
113
113
  for (var o in n) e(t, o, { get: n[o], enumerable: true });
114
114
  })(c, { Level: () => u });
115
115
  var u = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(u || {});
116
- var F = { merge: true, shallow: true, extend: true };
116
+ var W = { merge: true, shallow: true, extend: true };
117
117
  function L(e2, t = {}, n = {}) {
118
- n = { ...F, ...n };
118
+ n = { ...W, ...n };
119
119
  const o = Object.entries(t).reduce((t2, [o2, r]) => {
120
120
  const i = e2[o2];
121
121
  return n.merge && Array.isArray(i) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
@@ -124,7 +124,7 @@ function L(e2, t = {}, n = {}) {
124
124
  }
125
125
  function fe(e2 = {}) {
126
126
  var _a;
127
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.3.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
127
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
128
128
  if (e2.name) {
129
129
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
130
130
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -140,7 +140,7 @@ function le(e2 = "entity action", t = {}) {
140
140
  var defaultForward = {
141
141
  in: le("page view", { timestamp: 1700000100, id: "ev-1700000100" }),
142
142
  mapping: void 0,
143
- out: ["window.pintrk", "track", "page view", { event_id: "ev-1700000100" }]
143
+ out: [["pintrk", "track", "page view", { event_id: "ev-1700000100" }]]
144
144
  };
145
145
  var wildcardIgnored = {
146
146
  in: le("debug noise", { timestamp: 1700000101 }),
@@ -150,7 +150,7 @@ var wildcardIgnored = {
150
150
  var pageViewRename = {
151
151
  in: le("page view", { timestamp: 1700000102, id: "ev-1700000102" }),
152
152
  mapping: { name: "pagevisit" },
153
- out: ["window.pintrk", "track", "pagevisit", { event_id: "ev-1700000102" }]
153
+ out: [["pintrk", "track", "pagevisit", { event_id: "ev-1700000102" }]]
154
154
  };
155
155
  var siteSearch = {
156
156
  in: le("site search", {
@@ -167,13 +167,15 @@ var siteSearch = {
167
167
  }
168
168
  },
169
169
  out: [
170
- "window.pintrk",
171
- "track",
172
- "search",
173
- {
174
- search_query: "leather jacket",
175
- event_id: "ev-1700000103"
176
- }
170
+ [
171
+ "pintrk",
172
+ "track",
173
+ "search",
174
+ {
175
+ search_query: "leather jacket",
176
+ event_id: "ev-1700000103"
177
+ }
178
+ ]
177
179
  ]
178
180
  };
179
181
  var productViewContent = {
@@ -193,16 +195,18 @@ var productViewContent = {
193
195
  }
194
196
  },
195
197
  out: [
196
- "window.pintrk",
197
- "track",
198
- "viewcontent",
199
- {
200
- value: 420,
201
- currency: "EUR",
202
- product_id: "ers",
203
- product_name: "black",
204
- event_id: "ev-1700000104"
205
- }
198
+ [
199
+ "pintrk",
200
+ "track",
201
+ "viewcontent",
202
+ {
203
+ value: 420,
204
+ currency: "EUR",
205
+ product_id: "ers",
206
+ product_name: "black",
207
+ event_id: "ev-1700000104"
208
+ }
209
+ ]
206
210
  ]
207
211
  };
208
212
  var productAddToCart = {
@@ -233,23 +237,25 @@ var productAddToCart = {
233
237
  }
234
238
  },
235
239
  out: [
236
- "window.pintrk",
237
- "track",
238
- "addtocart",
239
- {
240
- value: 420,
241
- order_quantity: 1,
242
- currency: "EUR",
243
- line_items: [
244
- {
245
- product_id: "ers",
246
- product_name: "black",
247
- product_price: 420,
248
- product_quantity: 1
249
- }
250
- ],
251
- event_id: "ev-1700000105"
252
- }
240
+ [
241
+ "pintrk",
242
+ "track",
243
+ "addtocart",
244
+ {
245
+ value: 420,
246
+ order_quantity: 1,
247
+ currency: "EUR",
248
+ line_items: [
249
+ {
250
+ product_id: "ers",
251
+ product_name: "black",
252
+ product_price: 420,
253
+ product_quantity: 1
254
+ }
255
+ ],
256
+ event_id: "ev-1700000105"
257
+ }
258
+ ]
253
259
  ]
254
260
  };
255
261
  var orderCompleteCheckout = {
@@ -286,29 +292,30 @@ var orderCompleteCheckout = {
286
292
  }
287
293
  },
288
294
  out: [
289
- "window.pintrk",
290
- "track",
291
- "checkout",
292
- {
293
- value: 555,
294
- order_id: "0rd3r1d",
295
- currency: "EUR",
296
- line_items: [
297
- {
298
- product_id: "ers",
299
- product_name: "black",
300
- product_price: 420,
301
- product_quantity: 1
302
- },
303
- {
304
- // Second product (Cool Cap) has no color in the fixture — product_name is omitted
305
- product_id: "cc",
306
- product_price: 42,
307
- product_quantity: 1
308
- }
309
- ],
310
- event_id: "ev-1700000106"
311
- }
295
+ [
296
+ "pintrk",
297
+ "track",
298
+ "checkout",
299
+ {
300
+ value: 555,
301
+ order_id: "0rd3r1d",
302
+ currency: "EUR",
303
+ line_items: [
304
+ {
305
+ product_id: "ers",
306
+ product_name: "black",
307
+ product_price: 420,
308
+ product_quantity: 1
309
+ },
310
+ {
311
+ product_id: "cc",
312
+ product_price: 42,
313
+ product_quantity: 1
314
+ }
315
+ ],
316
+ event_id: "ev-1700000106"
317
+ }
318
+ ]
312
319
  ]
313
320
  };
314
321
  var userLoginLead = {
@@ -337,13 +344,9 @@ var userLoginLead = {
337
344
  }
338
345
  },
339
346
  out: [
347
+ ["pintrk", "set", { em: "jane@example.com", external_id: "usr_123" }],
340
348
  [
341
- "window.pintrk",
342
- "set",
343
- { em: "jane@example.com", external_id: "usr_123" }
344
- ],
345
- [
346
- "window.pintrk",
349
+ "pintrk",
347
350
  "track",
348
351
  "lead",
349
352
  {
@@ -373,11 +376,7 @@ var identifyOnlySkip = {
373
376
  }
374
377
  }
375
378
  },
376
- out: [
377
- "window.pintrk",
378
- "set",
379
- { em: "new@example.com", external_id: "usr_456" }
380
- ]
379
+ out: [["pintrk", "set", { em: "new@example.com", external_id: "usr_456" }]]
381
380
  };
382
381
  var consentRevoke = {
383
382
  command: "consent",
@@ -92,9 +92,9 @@ var c = {};
92
92
  for (var o in n) e(t, o, { get: n[o], enumerable: true });
93
93
  })(c, { Level: () => u });
94
94
  var u = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(u || {});
95
- var F = { merge: true, shallow: true, extend: true };
95
+ var W = { merge: true, shallow: true, extend: true };
96
96
  function L(e2, t = {}, n = {}) {
97
- n = { ...F, ...n };
97
+ n = { ...W, ...n };
98
98
  const o = Object.entries(t).reduce((t2, [o2, r]) => {
99
99
  const i = e2[o2];
100
100
  return n.merge && Array.isArray(i) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
@@ -103,7 +103,7 @@ function L(e2, t = {}, n = {}) {
103
103
  }
104
104
  function fe(e2 = {}) {
105
105
  var _a;
106
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.3.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
106
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
107
107
  if (e2.name) {
108
108
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
109
109
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -119,7 +119,7 @@ function le(e2 = "entity action", t = {}) {
119
119
  var defaultForward = {
120
120
  in: le("page view", { timestamp: 1700000100, id: "ev-1700000100" }),
121
121
  mapping: void 0,
122
- out: ["window.pintrk", "track", "page view", { event_id: "ev-1700000100" }]
122
+ out: [["pintrk", "track", "page view", { event_id: "ev-1700000100" }]]
123
123
  };
124
124
  var wildcardIgnored = {
125
125
  in: le("debug noise", { timestamp: 1700000101 }),
@@ -129,7 +129,7 @@ var wildcardIgnored = {
129
129
  var pageViewRename = {
130
130
  in: le("page view", { timestamp: 1700000102, id: "ev-1700000102" }),
131
131
  mapping: { name: "pagevisit" },
132
- out: ["window.pintrk", "track", "pagevisit", { event_id: "ev-1700000102" }]
132
+ out: [["pintrk", "track", "pagevisit", { event_id: "ev-1700000102" }]]
133
133
  };
134
134
  var siteSearch = {
135
135
  in: le("site search", {
@@ -146,13 +146,15 @@ var siteSearch = {
146
146
  }
147
147
  },
148
148
  out: [
149
- "window.pintrk",
150
- "track",
151
- "search",
152
- {
153
- search_query: "leather jacket",
154
- event_id: "ev-1700000103"
155
- }
149
+ [
150
+ "pintrk",
151
+ "track",
152
+ "search",
153
+ {
154
+ search_query: "leather jacket",
155
+ event_id: "ev-1700000103"
156
+ }
157
+ ]
156
158
  ]
157
159
  };
158
160
  var productViewContent = {
@@ -172,16 +174,18 @@ var productViewContent = {
172
174
  }
173
175
  },
174
176
  out: [
175
- "window.pintrk",
176
- "track",
177
- "viewcontent",
178
- {
179
- value: 420,
180
- currency: "EUR",
181
- product_id: "ers",
182
- product_name: "black",
183
- event_id: "ev-1700000104"
184
- }
177
+ [
178
+ "pintrk",
179
+ "track",
180
+ "viewcontent",
181
+ {
182
+ value: 420,
183
+ currency: "EUR",
184
+ product_id: "ers",
185
+ product_name: "black",
186
+ event_id: "ev-1700000104"
187
+ }
188
+ ]
185
189
  ]
186
190
  };
187
191
  var productAddToCart = {
@@ -212,23 +216,25 @@ var productAddToCart = {
212
216
  }
213
217
  },
214
218
  out: [
215
- "window.pintrk",
216
- "track",
217
- "addtocart",
218
- {
219
- value: 420,
220
- order_quantity: 1,
221
- currency: "EUR",
222
- line_items: [
223
- {
224
- product_id: "ers",
225
- product_name: "black",
226
- product_price: 420,
227
- product_quantity: 1
228
- }
229
- ],
230
- event_id: "ev-1700000105"
231
- }
219
+ [
220
+ "pintrk",
221
+ "track",
222
+ "addtocart",
223
+ {
224
+ value: 420,
225
+ order_quantity: 1,
226
+ currency: "EUR",
227
+ line_items: [
228
+ {
229
+ product_id: "ers",
230
+ product_name: "black",
231
+ product_price: 420,
232
+ product_quantity: 1
233
+ }
234
+ ],
235
+ event_id: "ev-1700000105"
236
+ }
237
+ ]
232
238
  ]
233
239
  };
234
240
  var orderCompleteCheckout = {
@@ -265,29 +271,30 @@ var orderCompleteCheckout = {
265
271
  }
266
272
  },
267
273
  out: [
268
- "window.pintrk",
269
- "track",
270
- "checkout",
271
- {
272
- value: 555,
273
- order_id: "0rd3r1d",
274
- currency: "EUR",
275
- line_items: [
276
- {
277
- product_id: "ers",
278
- product_name: "black",
279
- product_price: 420,
280
- product_quantity: 1
281
- },
282
- {
283
- // Second product (Cool Cap) has no color in the fixture — product_name is omitted
284
- product_id: "cc",
285
- product_price: 42,
286
- product_quantity: 1
287
- }
288
- ],
289
- event_id: "ev-1700000106"
290
- }
274
+ [
275
+ "pintrk",
276
+ "track",
277
+ "checkout",
278
+ {
279
+ value: 555,
280
+ order_id: "0rd3r1d",
281
+ currency: "EUR",
282
+ line_items: [
283
+ {
284
+ product_id: "ers",
285
+ product_name: "black",
286
+ product_price: 420,
287
+ product_quantity: 1
288
+ },
289
+ {
290
+ product_id: "cc",
291
+ product_price: 42,
292
+ product_quantity: 1
293
+ }
294
+ ],
295
+ event_id: "ev-1700000106"
296
+ }
297
+ ]
291
298
  ]
292
299
  };
293
300
  var userLoginLead = {
@@ -316,13 +323,9 @@ var userLoginLead = {
316
323
  }
317
324
  },
318
325
  out: [
326
+ ["pintrk", "set", { em: "jane@example.com", external_id: "usr_123" }],
319
327
  [
320
- "window.pintrk",
321
- "set",
322
- { em: "jane@example.com", external_id: "usr_123" }
323
- ],
324
- [
325
- "window.pintrk",
328
+ "pintrk",
326
329
  "track",
327
330
  "lead",
328
331
  {
@@ -352,11 +355,7 @@ var identifyOnlySkip = {
352
355
  }
353
356
  }
354
357
  },
355
- out: [
356
- "window.pintrk",
357
- "set",
358
- { em: "new@example.com", external_id: "usr_456" }
359
- ]
358
+ out: [["pintrk", "set", { em: "new@example.com", external_id: "usr_456" }]]
360
359
  };
361
360
  var consentRevoke = {
362
361
  command: "consent",