@walkeros/web-destination-optimizely 4.0.0 → 4.0.1-next-1778183328892

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.
@@ -84,50 +84,50 @@ __export(step_exports, {
84
84
 
85
85
  // ../../../core/dist/index.mjs
86
86
  var e = Object.defineProperty;
87
- var a = {};
87
+ var s = {};
88
88
  ((t, n) => {
89
- for (var o in n) e(t, o, { get: n[o], enumerable: true });
90
- })(a, { Level: () => c });
89
+ for (var r in n) e(t, r, { get: n[r], enumerable: true });
90
+ })(s, { Level: () => c });
91
91
  var c = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(c || {});
92
- var X = { merge: true, shallow: true, extend: true };
93
- function G(e2, t = {}, n = {}) {
94
- n = { ...X, ...n };
95
- const o = Object.entries(t).reduce((t2, [o2, r]) => {
96
- const i = e2[o2];
97
- 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;
92
+ var J = { merge: true, shallow: true, extend: true };
93
+ function X(e2, t = {}, n = {}) {
94
+ n = { ...J, ...n };
95
+ const r = Object.entries(t).reduce((t2, [r2, o]) => {
96
+ const i = e2[r2];
97
+ return n.merge && Array.isArray(i) && Array.isArray(o) ? t2[r2] = o.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || r2 in e2) && (t2[r2] = o), t2;
98
98
  }, {});
99
- return n.shallow ? { ...e2, ...o } : (Object.assign(e2, o), e2);
99
+ return n.shallow ? { ...e2, ...r } : (Object.assign(e2, r), e2);
100
100
  }
101
- function he() {
101
+ function be() {
102
102
  let e2 = "";
103
103
  for (let t = 0; t < 16; t++) e2 += (16 * Math.random() | 0).toString(16);
104
104
  return e2;
105
105
  }
106
106
  function ve(e2 = {}) {
107
107
  var _a;
108
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = G({ 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" } }], consent: { functional: true }, id: e2.id || he(), trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, source: { type: "collector", schema: "4" } }, e2, { merge: false });
108
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = X({ 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" } }], consent: { functional: true }, id: e2.id || be(), trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, source: { type: "collector", schema: "4" } }, e2, { merge: false });
109
109
  if (e2.name) {
110
- const [t2, o] = (_a = e2.name.split(" ")) != null ? _a : [];
111
- t2 && o && (n.entity = t2, n.action = o);
110
+ const [t2, r] = (_a = e2.name.split(" ")) != null ? _a : [];
111
+ t2 && r && (n.entity = t2, n.action = r);
112
112
  }
113
113
  return n;
114
114
  }
115
- function we(e2 = "entity action", t = {}) {
116
- const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
117
- return ve({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
115
+ function he(e2 = "entity action", t = {}) {
116
+ const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), r = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, o = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
117
+ return ve({ ...{ "cart view": { data: { currency: "EUR", value: 2 * r.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...r.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: r.data.price + o.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...r, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...r, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...r.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
118
118
  }
119
119
 
120
120
  // src/examples/step.ts
121
121
  var defaultEventForwarding = {
122
122
  title: "Default event",
123
123
  description: "A walker event becomes an Optimizely trackEvent call with the event name and empty eventTags.",
124
- in: we("page view", { timestamp: 1700000100 }),
124
+ in: he("page view", { timestamp: 1700000100 }),
125
125
  out: [["optimizely.trackEvent", "page view", {}]]
126
126
  };
127
127
  var mappedEventName = {
128
128
  title: "Mapped event key",
129
129
  description: "A mapping renames the walker event to an Optimizely event key defined in the project.",
130
- in: we("product view", { timestamp: 1700000101 }),
130
+ in: he("product view", { timestamp: 1700000101 }),
131
131
  mapping: {
132
132
  name: "product_viewed"
133
133
  },
@@ -136,7 +136,7 @@ var mappedEventName = {
136
136
  var orderCompleteRevenue = {
137
137
  title: "Purchase revenue",
138
138
  description: "An order fires an Optimizely purchase event with revenue in cents, value, and additional event tags.",
139
- in: we("order complete", {
139
+ in: he("order complete", {
140
140
  timestamp: 1700000102,
141
141
  data: {
142
142
  revenue_cents: 55500,
@@ -169,7 +169,7 @@ var orderCompleteRevenue = {
169
169
  var signupWithAttributes = {
170
170
  title: "Signup with attributes",
171
171
  description: "A user signup sets per-event Optimizely attributes via setAttribute before firing the trackEvent.",
172
- in: we("user signup", {
172
+ in: he("user signup", {
173
173
  timestamp: 1700000103,
174
174
  data: {
175
175
  method: "google",
@@ -195,14 +195,14 @@ var signupWithAttributes = {
195
195
  };
196
196
  var wildcardIgnored = {
197
197
  public: false,
198
- in: we("debug noise", { timestamp: 1700000104 }),
198
+ in: he("debug noise", { timestamp: 1700000104 }),
199
199
  mapping: { ignore: true },
200
200
  out: []
201
201
  };
202
202
  var attributesOnlySilent = {
203
203
  title: "Attributes only",
204
204
  description: "A profile update sets Optimizely user attributes without firing a trackEvent for user enrichment.",
205
- in: we("profile update", {
205
+ in: he("profile update", {
206
206
  timestamp: 1700000105,
207
207
  data: {
208
208
  plan: "premium",
@@ -63,50 +63,50 @@ __export(step_exports, {
63
63
 
64
64
  // ../../../core/dist/index.mjs
65
65
  var e = Object.defineProperty;
66
- var a = {};
66
+ var s = {};
67
67
  ((t, n) => {
68
- for (var o in n) e(t, o, { get: n[o], enumerable: true });
69
- })(a, { Level: () => c });
68
+ for (var r in n) e(t, r, { get: n[r], enumerable: true });
69
+ })(s, { Level: () => c });
70
70
  var c = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(c || {});
71
- var X = { merge: true, shallow: true, extend: true };
72
- function G(e2, t = {}, n = {}) {
73
- n = { ...X, ...n };
74
- const o = Object.entries(t).reduce((t2, [o2, r]) => {
75
- const i = e2[o2];
76
- 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;
71
+ var J = { merge: true, shallow: true, extend: true };
72
+ function X(e2, t = {}, n = {}) {
73
+ n = { ...J, ...n };
74
+ const r = Object.entries(t).reduce((t2, [r2, o]) => {
75
+ const i = e2[r2];
76
+ return n.merge && Array.isArray(i) && Array.isArray(o) ? t2[r2] = o.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || r2 in e2) && (t2[r2] = o), t2;
77
77
  }, {});
78
- return n.shallow ? { ...e2, ...o } : (Object.assign(e2, o), e2);
78
+ return n.shallow ? { ...e2, ...r } : (Object.assign(e2, r), e2);
79
79
  }
80
- function he() {
80
+ function be() {
81
81
  let e2 = "";
82
82
  for (let t = 0; t < 16; t++) e2 += (16 * Math.random() | 0).toString(16);
83
83
  return e2;
84
84
  }
85
85
  function ve(e2 = {}) {
86
86
  var _a;
87
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = G({ 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" } }], consent: { functional: true }, id: e2.id || he(), trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, source: { type: "collector", schema: "4" } }, e2, { merge: false });
87
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = X({ 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" } }], consent: { functional: true }, id: e2.id || be(), trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, source: { type: "collector", schema: "4" } }, e2, { merge: false });
88
88
  if (e2.name) {
89
- const [t2, o] = (_a = e2.name.split(" ")) != null ? _a : [];
90
- t2 && o && (n.entity = t2, n.action = o);
89
+ const [t2, r] = (_a = e2.name.split(" ")) != null ? _a : [];
90
+ t2 && r && (n.entity = t2, n.action = r);
91
91
  }
92
92
  return n;
93
93
  }
94
- function we(e2 = "entity action", t = {}) {
95
- const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
96
- return ve({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
94
+ function he(e2 = "entity action", t = {}) {
95
+ const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), r = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, o = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
96
+ return ve({ ...{ "cart view": { data: { currency: "EUR", value: 2 * r.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...r.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: r.data.price + o.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...r, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...r, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...r.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
97
97
  }
98
98
 
99
99
  // src/examples/step.ts
100
100
  var defaultEventForwarding = {
101
101
  title: "Default event",
102
102
  description: "A walker event becomes an Optimizely trackEvent call with the event name and empty eventTags.",
103
- in: we("page view", { timestamp: 1700000100 }),
103
+ in: he("page view", { timestamp: 1700000100 }),
104
104
  out: [["optimizely.trackEvent", "page view", {}]]
105
105
  };
106
106
  var mappedEventName = {
107
107
  title: "Mapped event key",
108
108
  description: "A mapping renames the walker event to an Optimizely event key defined in the project.",
109
- in: we("product view", { timestamp: 1700000101 }),
109
+ in: he("product view", { timestamp: 1700000101 }),
110
110
  mapping: {
111
111
  name: "product_viewed"
112
112
  },
@@ -115,7 +115,7 @@ var mappedEventName = {
115
115
  var orderCompleteRevenue = {
116
116
  title: "Purchase revenue",
117
117
  description: "An order fires an Optimizely purchase event with revenue in cents, value, and additional event tags.",
118
- in: we("order complete", {
118
+ in: he("order complete", {
119
119
  timestamp: 1700000102,
120
120
  data: {
121
121
  revenue_cents: 55500,
@@ -148,7 +148,7 @@ var orderCompleteRevenue = {
148
148
  var signupWithAttributes = {
149
149
  title: "Signup with attributes",
150
150
  description: "A user signup sets per-event Optimizely attributes via setAttribute before firing the trackEvent.",
151
- in: we("user signup", {
151
+ in: he("user signup", {
152
152
  timestamp: 1700000103,
153
153
  data: {
154
154
  method: "google",
@@ -174,14 +174,14 @@ var signupWithAttributes = {
174
174
  };
175
175
  var wildcardIgnored = {
176
176
  public: false,
177
- in: we("debug noise", { timestamp: 1700000104 }),
177
+ in: he("debug noise", { timestamp: 1700000104 }),
178
178
  mapping: { ignore: true },
179
179
  out: []
180
180
  };
181
181
  var attributesOnlySilent = {
182
182
  title: "Attributes only",
183
183
  description: "A profile update sets Optimizely user attributes without firing a trackEvent for user enrichment.",
184
- in: we("profile update", {
184
+ in: he("profile update", {
185
185
  timestamp: 1700000105,
186
186
  data: {
187
187
  plan: "premium",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-optimizely",
4
- "version": "4.0.0",
4
+ "version": "4.0.1-next-1778183328892",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "web"
@@ -86,7 +86,7 @@
86
86
  "init": {
87
87
  "optimizely": {
88
88
  "createInstance": {
89
- "$code": "()=>xh()"
89
+ "$code": "()=>kh()"
90
90
  },
91
91
  "createPollingProjectConfigManager": {
92
92
  "$code": "()=>({})"
@@ -99,7 +99,7 @@
99
99
  "push": {
100
100
  "optimizely": {
101
101
  "createInstance": {
102
- "$code": "()=>xh()"
102
+ "$code": "()=>kh()"
103
103
  },
104
104
  "createPollingProjectConfigManager": {
105
105
  "$code": "()=>({})"
@@ -156,7 +156,7 @@
156
156
  "consent": {
157
157
  "functional": true
158
158
  },
159
- "id": "9d0741daa61eaba5",
159
+ "id": "bcb9e448cb984761",
160
160
  "trigger": "test",
161
161
  "entity": "profile",
162
162
  "action": "update",
@@ -255,7 +255,7 @@
255
255
  "consent": {
256
256
  "functional": true
257
257
  },
258
- "id": "f26089490386b68f",
258
+ "id": "4acfafc8dbfbe809",
259
259
  "trigger": "load",
260
260
  "entity": "page",
261
261
  "action": "view",
@@ -307,7 +307,7 @@
307
307
  "consent": {
308
308
  "functional": true
309
309
  },
310
- "id": "ffdc8feeed845cee",
310
+ "id": "a0084c09d770d860",
311
311
  "trigger": "load",
312
312
  "entity": "product",
313
313
  "action": "view",
@@ -408,7 +408,7 @@
408
408
  "consent": {
409
409
  "functional": true
410
410
  },
411
- "id": "85d189184f4b1b3f",
411
+ "id": "01a2be0c11be04f4",
412
412
  "trigger": "load",
413
413
  "entity": "order",
414
414
  "action": "complete",
@@ -482,7 +482,7 @@
482
482
  "consent": {
483
483
  "functional": true
484
484
  },
485
- "id": "12a092502a09802c",
485
+ "id": "a20b313a6471f025",
486
486
  "trigger": "test",
487
487
  "entity": "user",
488
488
  "action": "signup",
@@ -564,7 +564,7 @@
564
564
  "consent": {
565
565
  "functional": true
566
566
  },
567
- "id": "8cb52f6c2ba90ef0",
567
+ "id": "41535a6b7ad0e02f",
568
568
  "trigger": "test",
569
569
  "entity": "debug",
570
570
  "action": "noise",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-optimizely",
3
3
  "description": "Optimizely Feature Experimentation web destination for walkerOS (conversion tracking, revenue metrics, user targeting)",
4
- "version": "4.0.0",
4
+ "version": "4.0.1-next-1778183328892",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@optimizely/optimizely-sdk": "^6.0.0",
41
- "@walkeros/web-core": "4.0.0"
41
+ "@walkeros/web-core": "4.0.1-next-1778183328892"
42
42
  },
43
43
  "devDependencies": {
44
- "@walkeros/collector": "4.0.0"
44
+ "@walkeros/collector": "4.0.1-next-1778183328892"
45
45
  },
46
46
  "repository": {
47
47
  "url": "git+https://github.com/elbwalker/walkerOS.git",