@liquidcommercedev/rmn-sdk 1.5.0-beta.14 → 1.5.0-beta.15

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs CHANGED
@@ -19234,11 +19234,11 @@ class MonitorService {
19234
19234
  var _a, _b;
19235
19235
  if (!spots)
19236
19236
  return;
19237
- const eventProductIds = new Set(eventData.productIds);
19237
+ const eventProductIds = new Set(eventData.productIds.map((productId) => String(productId)));
19238
19238
  for (const spot of Object.values(spots)) {
19239
19239
  if (!spot.productIds.length)
19240
19240
  continue;
19241
- const hasCommonProductIds = spot.productIds.find((productId) => eventProductIds.has(productId));
19241
+ const hasCommonProductIds = spot.productIds.find((productId) => eventProductIds.has(String(productId)));
19242
19242
  if (hasCommonProductIds) {
19243
19243
  if (Object.values(exports.RMN_SPOT_EVENT).includes(eventData.event)) {
19244
19244
  await this.fireAndPublishSpotEvent({
package/dist/index.esm.js CHANGED
@@ -19232,11 +19232,11 @@ class MonitorService {
19232
19232
  var _a, _b;
19233
19233
  if (!spots)
19234
19234
  return;
19235
- const eventProductIds = new Set(eventData.productIds);
19235
+ const eventProductIds = new Set(eventData.productIds.map((productId) => String(productId)));
19236
19236
  for (const spot of Object.values(spots)) {
19237
19237
  if (!spot.productIds.length)
19238
19238
  continue;
19239
- const hasCommonProductIds = spot.productIds.find((productId) => eventProductIds.has(productId));
19239
+ const hasCommonProductIds = spot.productIds.find((productId) => eventProductIds.has(String(productId)));
19240
19240
  if (hasCommonProductIds) {
19241
19241
  if (Object.values(RMN_SPOT_EVENT).includes(eventData.event)) {
19242
19242
  await this.fireAndPublishSpotEvent({
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@liquidcommercedev/rmn-sdk",
3
3
  "description": "LiquidCommerce RMN SDK",
4
4
  "author": "LiquidCommerce Tech",
5
- "version": "1.5.0-beta.14",
5
+ "version": "1.5.0-beta.15",
6
6
  "homepage": "https://docs.liquidcommerce.co/rmn-sdk",
7
7
  "main": "./dist/index.cjs",
8
8
  "module": "./dist/index.esm.js",