@mindful-web/marko-web-omeda-identity-x 1.40.2 → 1.41.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.
@@ -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.40.2/components/identify.marko",
5
+ marko_componentType = "/@mindful-web/marko-web-omeda-identity-x$1.41.0/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.40.2/components/identify.marko",
54
+ id: "/@mindful-web/marko-web-omeda-identity-x$1.41.0/components/identify.marko",
55
55
  component: "./identify.marko",
56
56
  tags: [
57
57
  "@mindful-web/marko-web-identity-x/components/identify.marko",
package/index.js CHANGED
@@ -188,7 +188,7 @@ module.exports = (app, params = {}) => {
188
188
  onLoginLinkSentFormatter: Joi.function(),
189
189
  onAuthenticationSuccessFormatter: Joi.function(),
190
190
  onUserProfileUpdateFormatter: Joi.function(),
191
- rapidIdentProductId: Joi.number().required(),
191
+ rapidIdentProductId: Joi.number(),
192
192
  }), params);
193
193
 
194
194
  // strip `oly_enc_id` when identity-x user is logged-in
@@ -232,7 +232,7 @@ module.exports = (app, params = {}) => {
232
232
  // attach the identity-x rapid identification wrapper middleware
233
233
  app.use(rapidIdentify({
234
234
  brandKey,
235
- productId: rapidIdentProductId,
235
+ ...(rapidIdentProductId && { productId: rapidIdentProductId }),
236
236
  prop: idxOmedaRapidIdentifyProp,
237
237
  omedaRapidIdentifyProp,
238
238
  omedaPromoCodeCookieName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindful-web/marko-web-omeda-identity-x",
3
- "version": "1.40.2",
3
+ "version": "1.41.0",
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>",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@mindful-web/marko-web-identity-x": "^1.40.1",
17
- "@mindful-web/marko-web-omeda": "^1.26.1",
17
+ "@mindful-web/marko-web-omeda": "^1.41.0",
18
18
  "@mindful-web/object-path": "^1.11.9",
19
19
  "@mindful-web/utils": "^1.11.9",
20
20
  "@parameter1/joi": "^1.2.10",
@@ -29,5 +29,5 @@
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
- "gitHead": "76c8a5fd96ac5a9becbe515fc7fc254406165793"
32
+ "gitHead": "5dada65610ddbc750fe16fdd9ef779e5de7960d7"
33
33
  }
package/rapid-identify.js CHANGED
@@ -165,7 +165,7 @@ module.exports = async ({
165
165
 
166
166
  const { id, encryptedCustomerId } = await omedaRapidIdentify({
167
167
  email: appUser.email,
168
- productId,
168
+ ...(productId && { productId }),
169
169
  ...(givenName && { firstName: givenName }),
170
170
  ...(familyName && { lastName: familyName }),
171
171
  ...(organization && { companyName: organization }),