@klevu/core
Advanced tools
@@ -22,3 +22,3 @@ "use strict"; | ||
| function startMoi(options = {}) { | ||
| var _a, _b, _c, _d; | ||
| var _a, _b, _c, _d, _e; | ||
| return __awaiter(this, void 0, void 0, function* () { | ||
@@ -76,3 +76,3 @@ const config = ((_a = options.settings) === null || _a === void 0 ? void 0 : _a.configOverride) || index_js_1.KlevuConfig.getDefault(); | ||
| }, config); | ||
| if (!(result === null || result === void 0 ? void 0 : result.data[0].context)) { | ||
| if (!(result === null || result === void 0 ? void 0 : result.data) || !((_e = result === null || result === void 0 ? void 0 : result.data[0]) === null || _e === void 0 ? void 0 : _e.context)) { | ||
| throw new Error("No context found"); | ||
@@ -79,0 +79,0 @@ } |
@@ -19,3 +19,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
| export function startMoi(options = {}) { | ||
| var _a, _b, _c, _d; | ||
| var _a, _b, _c, _d, _e; | ||
| return __awaiter(this, void 0, void 0, function* () { | ||
@@ -73,3 +73,3 @@ const config = ((_a = options.settings) === null || _a === void 0 ? void 0 : _a.configOverride) || KlevuConfig.getDefault(); | ||
| }, config); | ||
| if (!(result === null || result === void 0 ? void 0 : result.data[0].context)) { | ||
| if (!(result === null || result === void 0 ? void 0 : result.data) || !((_e = result === null || result === void 0 ? void 0 : result.data[0]) === null || _e === void 0 ? void 0 : _e.context)) { | ||
| throw new Error("No context found"); | ||
@@ -76,0 +76,0 @@ } |
+1
-1
| { | ||
| "name": "@klevu/core", | ||
| "sideEffects": false, | ||
| "version": "5.6.0", | ||
| "version": "5.7.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": [ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
772416
0.03%