Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@klevu/core

Package Overview
Dependencies
Maintainers
3
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@klevu/core - npm Package Compare versions

Comparing version
5.7.0
to
5.8.0
+3
-3
dist/cjs/connection/moi/moi.js

@@ -18,4 +18,4 @@ "use strict";

const MAX_MESSAGES = 10;
const saveProductInfo = (config, productInfo) => __awaiter(void 0, void 0, void 0, function* () {
return yield (0, fetch_js_1.post)(`${config.moiApiUrl}chat/productInfo`, productInfo);
const saveProductInfo = (config, productInfo, widgetId) => __awaiter(void 0, void 0, void 0, function* () {
return yield (0, fetch_js_1.post)(`${config.moiApiUrl}chat/${widgetId}/productInfo`, productInfo);
});

@@ -68,3 +68,3 @@ function startMoi(options = {}) {

if (options.productInfo && options.mode === "PQA")
yield saveProductInfo(config, options.productInfo);
yield saveProductInfo(config, options.productInfo, options.pqaWidgetId || 'NA');
}

@@ -71,0 +71,0 @@ catch (err) {

@@ -15,4 +15,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

const MAX_MESSAGES = 10;
const saveProductInfo = (config, productInfo) => __awaiter(void 0, void 0, void 0, function* () {
return yield post(`${config.moiApiUrl}chat/productInfo`, productInfo);
const saveProductInfo = (config, productInfo, widgetId) => __awaiter(void 0, void 0, void 0, function* () {
return yield post(`${config.moiApiUrl}chat/${widgetId}/productInfo`, productInfo);
});

@@ -65,3 +65,3 @@ export function startMoi(options = {}) {

if (options.productInfo && options.mode === "PQA")
yield saveProductInfo(config, options.productInfo);
yield saveProductInfo(config, options.productInfo, options.pqaWidgetId || 'NA');
}

@@ -68,0 +68,0 @@ catch (err) {

{
"name": "@klevu/core",
"sideEffects": false,
"version": "5.7.0",
"version": "5.8.0",
"description": "Typescript SDK that simplifies development on Klevu backend. Klevu provides advanced AI-powered search and discovery solutions for online retailers.",

@@ -6,0 +6,0 @@ "keywords": [