@mindful-web/marko-web-omeda-identity-x 1.87.0 → 1.87.2

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.
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
 
4
4
  var marko_template = module.exports = require("marko/dist/html").t(__filename),
5
- marko_componentType = "/@mindful-web/marko-web-omeda-identity-x$1.87.0/components/identify.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-omeda-identity-x$1.87.2/components/identify.marko",
6
6
  marko_component = require("./identify.marko"),
7
7
  marko_renderer = require("marko/dist/runtime/components/renderer"),
8
8
  module_getCookieId = require("@mindful-web/marko-web-omeda-identity-x/utils/get-cookie-id"),
@@ -51,7 +51,7 @@ marko_template._ = marko_renderer(render, {
51
51
  }, marko_component);
52
52
 
53
53
  marko_template.meta = {
54
- id: "/@mindful-web/marko-web-omeda-identity-x$1.87.0/components/identify.marko",
54
+ id: "/@mindful-web/marko-web-omeda-identity-x$1.87.2/components/identify.marko",
55
55
  component: "./identify.marko",
56
56
  tags: [
57
57
  "@mindful-web/marko-web-identity-x/components/identify.marko",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindful-web/marko-web-omeda-identity-x",
3
- "version": "1.87.0",
3
+ "version": "1.87.2",
4
4
  "description": "Marko Omeda+IdentityX integration tools",
5
5
  "repository": "https://github.com/parameter1/mindful-web/tree/main/packages/marko-web-omeda-identity-x",
6
6
  "author": "Josh Worden <josh@parameter1.com>",
@@ -13,7 +13,7 @@
13
13
  "test": "yarn compile --no-clean && yarn lint && mocha --reporter spec"
14
14
  },
15
15
  "dependencies": {
16
- "@mindful-web/marko-web-identity-x": "^1.87.0",
16
+ "@mindful-web/marko-web-identity-x": "^1.87.1",
17
17
  "@mindful-web/marko-web-omeda": "^1.85.0",
18
18
  "@mindful-web/object-path": "^1.83.1",
19
19
  "@mindful-web/utils": "^1.83.1",
@@ -33,5 +33,5 @@
33
33
  "chai": "^4.3.7",
34
34
  "mocha": "^6.2.3"
35
35
  },
36
- "gitHead": "ff4b26653f19375680d94b56997484a7dab24f05"
36
+ "gitHead": "6538c2484bbf419592ddfdbf82ead6d1e2e99c98"
37
37
  }
@@ -48,8 +48,19 @@ module.exports = ({
48
48
  data.encryptedId = encryptedId;
49
49
  data.source = 'existing';
50
50
  } else {
51
- // no omeda identifier found for this user, rapidly identify.
52
- const { encryptedCustomerId } = await idxOmedaRapidIdentify({ user, promoCode });
51
+ // No omeda identifier found for this user: rapidly identify.
52
+ //
53
+ // This is a pure identity bootstrap — no form is anywhere in sight — so NO stored answers
54
+ // may become writes: an empty scope sends contact fields + promo only. Left unscoped, this
55
+ // route was the post-#329 kill vector: it fires on page load for any logged-in member
56
+ // lacking an encrypted id (common on tenants with duplicate/unprimed Omeda customers) and
57
+ // mapped every channel-mirror boolean into Receive: 0 / opt-out writes — allured and
58
+ // fusable kept unsubscribing members daily after the login hooks were fixed.
59
+ const { encryptedCustomerId } = await idxOmedaRapidIdentify({
60
+ user,
61
+ promoCode,
62
+ restrictAnswersToFieldIds: [],
63
+ });
53
64
  data.encryptedId = encryptedCustomerId;
54
65
  data.source = 'new';
55
66
  }