Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qb-ai-answer-assistant

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qb-ai-answer-assistant - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

dist/AIAnswerAssistantException.js

159

dist/index.js

@@ -1,153 +0,8 @@

/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(self, function() {
return /******/ (function() { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "./node_modules/qb-ai-core/dist/index.js":
/*!***********************************************!*\
!*** ./node_modules/qb-ai-core/dist/index.js ***!
\***********************************************/
/***/ (function(module) {
eval("/*\n * ATTENTION: The \"eval\" devtool has been used (maybe by default in mode: \"development\").\n * This devtool is neither made for production nor for readable output files.\n * It uses \"eval()\" calls to create a separate source file in the browser devtools.\n * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)\n * or disable the default devtool with \"devtool: false\".\n * If you are looking for production-ready output files, see mode: \"production\" (https://webpack.js.org/configuration/mode/).\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\t\tmodule.exports = factory();\n\telse { var i, a; }\n})(self, function() {\nreturn /******/ (function() { // webpackBootstrap\n/******/ \t\"use strict\";\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ \"./src/AIException.ts\":\n/*!****************************!*\\\n !*** ./src/AIException.ts ***!\n \\****************************/\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ AIException: function() { return /* binding */ AIException; }\\n/* harmony export */ });\\nvar __extends = (undefined && undefined.__extends) || (function () {\\n var extendStatics = function (d, b) {\\n extendStatics = Object.setPrototypeOf ||\\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\\n return extendStatics(d, b);\\n };\\n return function (d, b) {\\n if (typeof b !== \\\"function\\\" && b !== null)\\n throw new TypeError(\\\"Class extends value \\\" + String(b) + \\\" is not a constructor or null\\\");\\n extendStatics(d, b);\\n function __() { this.constructor = d; }\\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\\n };\\n})();\\nvar AIException = /** @class */ (function (_super) {\\n __extends(AIException, _super);\\n function AIException(message, code) {\\n var _this = _super.call(this, message) || this;\\n _this.message = message;\\n _this.code = code;\\n return _this;\\n }\\n return AIException;\\n}(Error));\\n\\n\\n\\n//# sourceURL=webpack://qb-ai-core/./src/AIException.ts?\");\n\n/***/ }),\n\n/***/ \"./src/AIModel.ts\":\n/*!************************!*\\\n !*** ./src/AIModel.ts ***!\n \\************************/\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ AIModel: function() { return /* binding */ AIModel; }\\n/* harmony export */ });\\nvar AIModel = /** @class */ (function () {\\n function AIModel() {\\n }\\n AIModel.gpt__3_5__turbo = \\\"gpt-3.5-turbo\\\";\\n AIModel.gpt__3_5__turbo__0613 = \\\"gpt-3.5-turbo-0613\\\";\\n AIModel.gpt__3_5__turbo__16k = \\\"gpt-3.5-turbo-16k\\\";\\n AIModel.gpt__3_5__turbo__16k__0613 = \\\"gpt-3.5-turbo-16k-0613\\\";\\n AIModel.gpt__4 = \\\"gpt-4\\\";\\n AIModel.gpt__4__0613 = \\\"gpt-4-0613\\\";\\n AIModel.gpt__4__32k = \\\"gpt-4-32k\\\";\\n AIModel.gpt__4__32k__0613 = \\\"gpt-4-32k-0613\\\";\\n return AIModel;\\n}());\\n\\n\\n\\n//# sourceURL=webpack://qb-ai-core/./src/AIModel.ts?\");\n\n/***/ }),\n\n/***/ \"./src/ApiVersion.ts\":\n/*!***************************!*\\\n !*** ./src/ApiVersion.ts ***!\n \\***************************/\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ ApiVersion: function() { return /* binding */ ApiVersion; }\\n/* harmony export */ });\\nvar ApiVersion = /** @class */ (function () {\\n function ApiVersion() {\\n }\\n ApiVersion.v1 = \\\"v1\\\";\\n return ApiVersion;\\n}());\\n\\n\\n\\n//# sourceURL=webpack://qb-ai-core/./src/ApiVersion.ts?\");\n\n/***/ }),\n\n/***/ \"./src/QBAICore.ts\":\n/*!*************************!*\\\n !*** ./src/QBAICore.ts ***!\n \\*************************/\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\neval(\"__webpack_require__.r(__webpack_exports__);\\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\n return new (P || (P = Promise))(function (resolve, reject) {\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\n function rejected(value) { try { step(generator[\\\"throw\\\"](value)); } catch (e) { reject(e); } }\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\n });\\n};\\nvar __generator = (undefined && undefined.__generator) || function (thisArg, body) {\\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\\n return g = { next: verb(0), \\\"throw\\\": verb(1), \\\"return\\\": verb(2) }, typeof Symbol === \\\"function\\\" && (g[Symbol.iterator] = function() { return this; }), g;\\n function verb(n) { return function (v) { return step([n, v]); }; }\\n function step(op) {\\n if (f) throw new TypeError(\\\"Generator is already executing.\\\");\\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\\n if (f = 1, y && (t = op[0] & 2 ? y[\\\"return\\\"] : op[0] ? y[\\\"throw\\\"] || ((t = y[\\\"return\\\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\\n if (y = 0, t) op = [op[0] & 2, t.value];\\n switch (op[0]) {\\n case 0: case 1: t = op; break;\\n case 4: _.label++; return { value: op[1], done: false };\\n case 5: _.label++; y = op[1]; op = [0]; continue;\\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\\n default:\\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\\n if (t[2]) _.ops.pop();\\n _.trys.pop(); continue;\\n }\\n op = body.call(thisArg, _);\\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\\n }\\n};\\nvar QBAICore = /** @class */ (function () {\\n function QBAICore() {\\n }\\n QBAICore.sendPromptToProxy = function (apiKey, context, model, temperature, apiEndpoint) {\\n var _a;\\n return __awaiter(this, void 0, void 0, function () {\\n var requestOptions, response, data, outputMessage;\\n return __generator(this, function (_b) {\\n switch (_b.label) {\\n case 0:\\n requestOptions = {\\n method: 'POST',\\n headers: {\\n 'Content-Type': 'application/json',\\n 'qb-token': apiKey,\\n },\\n body: JSON.stringify({\\n // messages: [...dialogMessages, { role: 'user', content: prompt }],\\n messages: context,\\n model: model,\\n temperature: temperature,\\n }),\\n };\\n return [4 /*yield*/, fetch(apiEndpoint, requestOptions)];\\n case 1:\\n response = _b.sent();\\n return [4 /*yield*/, response.json()];\\n case 2:\\n data = _b.sent();\\n outputMessage = ((_a = data.choices[0].message) === null || _a === void 0 ? void 0 : _a.content) || '';\\n return [2 /*return*/, outputMessage];\\n }\\n });\\n });\\n };\\n QBAICore.sendPromptToOpenai = function (apiKey, context, model, temperature, organization, apiEndpoint) {\\n var _a;\\n return __awaiter(this, void 0, void 0, function () {\\n var requestOptions, requestOptionsWithOrganization, workOptions, response, data, outputMessage;\\n return __generator(this, function (_b) {\\n switch (_b.label) {\\n case 0:\\n requestOptions = {\\n method: 'POST',\\n headers: {\\n 'Content-Type': 'application/json',\\n Authorization: \\\"Bearer \\\".concat(apiKey),\\n },\\n body: JSON.stringify({\\n messages: context,\\n model: model,\\n temperature: temperature,\\n }),\\n };\\n requestOptionsWithOrganization = {\\n method: 'POST',\\n headers: {\\n 'Content-Type': 'application/json',\\n Authorization: \\\"Bearer \\\".concat(apiKey),\\n 'OpenAI-Organization': \\\"\\\".concat(organization),\\n },\\n body: JSON.stringify({\\n messages: context,\\n temperature: temperature,\\n }),\\n };\\n workOptions = organization && organization.length > 0\\n ? requestOptionsWithOrganization\\n : requestOptions;\\n return [4 /*yield*/, fetch(apiEndpoint, workOptions)];\\n case 1:\\n response = _b.sent();\\n return [4 /*yield*/, response.json()];\\n case 2:\\n data = _b.sent();\\n outputMessage = ((_a = data.choices[0].message) === null || _a === void 0 ? void 0 : _a.content) || '';\\n return [2 /*return*/, outputMessage];\\n }\\n });\\n });\\n };\\n return QBAICore;\\n}());\\n/* harmony default export */ __webpack_exports__[\\\"default\\\"] = (QBAICore);\\n\\n\\n//# sourceURL=webpack://qb-ai-core/./src/QBAICore.ts?\");\n\n/***/ }),\n\n/***/ \"./src/Role.ts\":\n/*!*********************!*\\\n !*** ./src/Role.ts ***!\n \\*********************/\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ Role: function() { return /* binding */ Role; }\\n/* harmony export */ });\\nvar Role = /** @class */ (function () {\\n function Role() {\\n }\\n Role.me = \\\"me\\\";\\n Role.other = \\\"other\\\";\\n return Role;\\n}());\\n\\n;\\n\\n\\n//# sourceURL=webpack://qb-ai-core/./src/Role.ts?\");\n\n/***/ }),\n\n/***/ \"./src/index.ts\":\n/*!**********************!*\\\n !*** ./src/index.ts ***!\n \\**********************/\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\neval(\"__webpack_require__.r(__webpack_exports__);\\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\\n/* harmony export */ AIException: function() { return /* reexport safe */ _AIException__WEBPACK_IMPORTED_MODULE_3__.AIException; },\\n/* harmony export */ AIModel: function() { return /* reexport safe */ _AIModel__WEBPACK_IMPORTED_MODULE_0__.AIModel; },\\n/* harmony export */ ApiVersion: function() { return /* reexport safe */ _ApiVersion__WEBPACK_IMPORTED_MODULE_1__.ApiVersion; },\\n/* harmony export */ QBAICore: function() { return /* reexport safe */ _QBAICore__WEBPACK_IMPORTED_MODULE_4__[\\\"default\\\"]; },\\n/* harmony export */ Role: function() { return /* reexport safe */ _Role__WEBPACK_IMPORTED_MODULE_2__.Role; }\\n/* harmony export */ });\\n/* harmony import */ var _AIModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AIModel */ \\\"./src/AIModel.ts\\\");\\n/* harmony import */ var _ApiVersion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApiVersion */ \\\"./src/ApiVersion.ts\\\");\\n/* harmony import */ var _Role__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Role */ \\\"./src/Role.ts\\\");\\n/* harmony import */ var _AIException__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AIException */ \\\"./src/AIException.ts\\\");\\n/* harmony import */ var _QBAICore__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./QBAICore */ \\\"./src/QBAICore.ts\\\");\\n\\n\\n\\n\\n\\n\\n\\n\\n//# sourceURL=webpack://qb-ai-core/./src/index.ts?\");\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __nested_webpack_require_13895__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \t\tif (cachedModule !== undefined) {\n/******/ \t\t\treturn cachedModule.exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_13895__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t!function() {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__nested_webpack_require_13895__.d = function(exports, definition) {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__nested_webpack_require_13895__.o(definition, key) && !__nested_webpack_require_13895__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t!function() {\n/******/ \t\t__nested_webpack_require_13895__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }\n/******/ \t}();\n/******/ \t\n/******/ \t/* webpack/runtime/make namespace object */\n/******/ \t!function() {\n/******/ \t\t// define __esModule on exports\n/******/ \t\t__nested_webpack_require_13895__.r = function(exports) {\n/******/ \t\t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t\t}\n/******/ \t\t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t\t};\n/******/ \t}();\n/******/ \t\n/************************************************************************/\n/******/ \t\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \t// This entry module can't be inlined because the eval devtool is used.\n/******/ \tvar __nested_webpack_exports__ = __nested_webpack_require_13895__(\"./src/index.ts\");\n/******/ \t\n/******/ \treturn __nested_webpack_exports__;\n/******/ })()\n;\n});\n\n//# sourceURL=webpack://qb-ai-answer-assistant/./node_modules/qb-ai-core/dist/index.js?");
/***/ }),
/***/ "./src/AIAnswerAssistantException.ts":
/*!*******************************************!*\
!*** ./src/AIAnswerAssistantException.ts ***!
\*******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_CODE: function() { return /* binding */ UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_CODE; },\n/* harmony export */ UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_MESSAGE: function() { return /* binding */ UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_MESSAGE; }\n/* harmony export */ });\n/* harmony import */ var qb_ai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! qb-ai-core */ \"./node_modules/qb-ai-core/dist/index.js\");\n/* harmony import */ var qb_ai_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qb_ai_core__WEBPACK_IMPORTED_MODULE_0__);\nvar __extends = (undefined && undefined.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n\nvar UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_MESSAGE = 'Undefined settings';\nvar UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_CODE = 121;\nvar AIAnswerAssistantException = /** @class */ (function (_super) {\n __extends(AIAnswerAssistantException, _super);\n function AIAnswerAssistantException(message, code) {\n var _this = _super.call(this, message, code) || this;\n _this.message = message;\n return _this;\n }\n return AIAnswerAssistantException;\n}(qb_ai_core__WEBPACK_IMPORTED_MODULE_0__.AIException));\n/* harmony default export */ __webpack_exports__[\"default\"] = (AIAnswerAssistantException);\n\n\n//# sourceURL=webpack://qb-ai-answer-assistant/./src/AIAnswerAssistantException.ts?");
/***/ }),
/***/ "./src/AIAnswerAssistantSettings.ts":
/*!******************************************!*\
!*** ./src/AIAnswerAssistantSettings.ts ***!
\******************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nvar AIAnswerAssistantSettings = /** @class */ (function () {\n function AIAnswerAssistantSettings(apiKey, apiVersion, maxRequestTokens, maxResponseTokens, model, organization, serverPath, temperature, token) {\n this._apiKey = apiKey;\n this._apiVersion = apiVersion;\n this._maxRequestTokens = maxRequestTokens;\n this._maxResponseTokens = maxResponseTokens;\n this._model = model;\n this._organization = organization;\n this._serverPath = serverPath;\n this._temperature = temperature;\n this._token = token;\n }\n Object.defineProperty(AIAnswerAssistantSettings.prototype, \"apiKey\", {\n get: function () {\n return this._apiKey;\n },\n set: function (value) {\n this._apiKey = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(AIAnswerAssistantSettings.prototype, \"apiVersion\", {\n get: function () {\n return this._apiVersion;\n },\n set: function (value) {\n this._apiVersion = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(AIAnswerAssistantSettings.prototype, \"maxRequestTokens\", {\n get: function () {\n return this._maxRequestTokens;\n },\n set: function (value) {\n this._maxRequestTokens = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(AIAnswerAssistantSettings.prototype, \"maxResponseTokens\", {\n get: function () {\n return this._maxResponseTokens;\n },\n set: function (value) {\n this._maxResponseTokens = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(AIAnswerAssistantSettings.prototype, \"model\", {\n get: function () {\n return this._model;\n },\n set: function (value) {\n this._model = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(AIAnswerAssistantSettings.prototype, \"organization\", {\n get: function () {\n return this._organization;\n },\n set: function (value) {\n this._organization = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(AIAnswerAssistantSettings.prototype, \"serverPath\", {\n get: function () {\n return this._serverPath;\n },\n set: function (value) {\n this._serverPath = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(AIAnswerAssistantSettings.prototype, \"temperature\", {\n get: function () {\n return this._temperature;\n },\n set: function (value) {\n this._temperature = value;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(AIAnswerAssistantSettings.prototype, \"token\", {\n get: function () {\n return this._token;\n },\n set: function (value) {\n this._token = value;\n },\n enumerable: false,\n configurable: true\n });\n return AIAnswerAssistantSettings;\n}());\n/* harmony default export */ __webpack_exports__[\"default\"] = (AIAnswerAssistantSettings);\n\n\n//# sourceURL=webpack://qb-ai-answer-assistant/./src/AIAnswerAssistantSettings.ts?");
/***/ }),
/***/ "./src/QBAIAnswerAssistant.ts":
/*!************************************!*\
!*** ./src/QBAIAnswerAssistant.ts ***!
\************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var qb_ai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! qb-ai-core */ \"./node_modules/qb-ai-core/dist/index.js\");\n/* harmony import */ var qb_ai_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(qb_ai_core__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _AIAnswerAssistantSettings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AIAnswerAssistantSettings */ \"./src/AIAnswerAssistantSettings.ts\");\n/* harmony import */ var _AIAnswerAssistantException__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AIAnswerAssistantException */ \"./src/AIAnswerAssistantException.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (undefined && undefined.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __spreadArray = (undefined && undefined.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\n\n\n\nvar QBAIAnswerAssistant = /** @class */ (function () {\n function QBAIAnswerAssistant() {\n }\n QBAIAnswerAssistant.createAnswer = function (text, messages, settings) {\n return __awaiter(this, void 0, void 0, function () {\n var prompt;\n return __generator(this, function (_a) {\n prompt = QBAIAnswerAssistant.createAnswerAssistPrompt(text);\n if (settings.apiKey) {\n return [2 /*return*/, QBAIAnswerAssistant.getData(prompt, \n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n messages, settings.serverPath, settings.apiKey, qb_ai_core__WEBPACK_IMPORTED_MODULE_0__.AIModel.gpt__3_5__turbo, settings.temperature, settings.organization)];\n }\n else if (settings.serverPath) {\n return [2 /*return*/, QBAIAnswerAssistant.getDataWithProxyServer(prompt, \n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n messages, settings.serverPath, settings.token, qb_ai_core__WEBPACK_IMPORTED_MODULE_0__.AIModel.gpt__3_5__turbo, settings.temperature, settings.organization)];\n }\n else {\n throw new _AIAnswerAssistantException__WEBPACK_IMPORTED_MODULE_2__[\"default\"](_AIAnswerAssistantException__WEBPACK_IMPORTED_MODULE_2__.UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_MESSAGE, _AIAnswerAssistantException__WEBPACK_IMPORTED_MODULE_2__.UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_CODE);\n }\n return [2 /*return*/];\n });\n });\n };\n QBAIAnswerAssistant.createAnswerAssistPrompt = function (textToSend) {\n var prompt = \"You are a customer support chat operator. Your goal is to provide helpful and informative responses to customer inquiries. Give a response to the next user's query, considering the entire conversation context. Answer in the format of simple sentences. Do not include question in answer. Please, provide answer for this issue:'\".concat(textToSend, \"'.\");\n return prompt;\n };\n QBAIAnswerAssistant.createDefaultAIAnswerAssistantSettings = function () {\n return new _AIAnswerAssistantSettings__WEBPACK_IMPORTED_MODULE_1__[\"default\"]('', qb_ai_core__WEBPACK_IMPORTED_MODULE_0__.ApiVersion.v1, 3584, 3584, qb_ai_core__WEBPACK_IMPORTED_MODULE_0__.AIModel.gpt__3_5__turbo, '', 'https://api.openai.com/v1/chat/completions', 0.5, '');\n };\n QBAIAnswerAssistant.updateChatRoles = function (result) {\n var context = result.map(function (item) {\n var currentRole = 'user';\n if (item.role === 'system') {\n currentRole = 'system';\n }\n else {\n currentRole = item.role === qb_ai_core__WEBPACK_IMPORTED_MODULE_0__.Role.other ? 'assistant' : 'user';\n }\n var tmp = { role: currentRole, content: item.content };\n return tmp;\n });\n return context;\n };\n QBAIAnswerAssistant.getData = function (prompt, dialogMessages, servername, sessionToken, openAIModel, temperature, organization) {\n if (openAIModel === void 0) { openAIModel = 'gpt-3.5-turbo'; }\n if (temperature === void 0) { temperature = 0.5; }\n if (organization === void 0) { organization = ''; }\n return __awaiter(this, void 0, void 0, function () {\n var apiEndpoint, apiKey, model, allData, context, err_1, outputMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n apiEndpoint = \"\".concat(servername);\n apiKey = sessionToken;\n model = openAIModel;\n allData = __spreadArray(__spreadArray([], dialogMessages, true), [{ role: 'user', content: prompt }], false);\n context = this.updateChatRoles(allData);\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, qb_ai_core__WEBPACK_IMPORTED_MODULE_0__.QBAICore.sendPromptToOpenai(apiKey, context, model, temperature, organization, apiEndpoint)];\n case 2: return [2 /*return*/, _a.sent()];\n case 3:\n err_1 = _a.sent();\n outputMessage = QBAIAnswerAssistant.stringifyError(err_1);\n throw new _AIAnswerAssistantException__WEBPACK_IMPORTED_MODULE_2__[\"default\"](outputMessage, -1);\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n QBAIAnswerAssistant.getDataWithProxyServer = function (prompt, dialogMessages, servername, sessionToken, openAIModel, temperature, organization) {\n if (openAIModel === void 0) { openAIModel = 'gpt-3.5-turbo'; }\n if (temperature === void 0) { temperature = 0.5; }\n if (organization === void 0) { organization = ''; }\n return __awaiter(this, void 0, void 0, function () {\n var apiEndpoint, apiKey, model, allData, context, err_2, outputMessage;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n apiEndpoint = \"\".concat(servername);\n apiKey = sessionToken;\n model = openAIModel;\n allData = __spreadArray(__spreadArray([], dialogMessages, true), [{ role: 'user', content: prompt }], false);\n context = this.updateChatRoles(allData);\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, qb_ai_core__WEBPACK_IMPORTED_MODULE_0__.QBAICore.sendPromptToProxy(apiKey, context, model, temperature, apiEndpoint)];\n case 2: return [2 /*return*/, _a.sent()];\n case 3:\n err_2 = _a.sent();\n outputMessage = QBAIAnswerAssistant.stringifyError(err_2);\n throw new _AIAnswerAssistantException__WEBPACK_IMPORTED_MODULE_2__[\"default\"](outputMessage, -1);\n case 4: return [2 /*return*/];\n }\n });\n });\n };\n QBAIAnswerAssistant.stringifyError = function (error) {\n if (typeof error === 'string')\n return error;\n if (error && typeof error === 'object') {\n var dataError = error;\n if (dataError.detail) {\n return QBAIAnswerAssistant.parseErrorMessage(dataError.detail);\n }\n if (dataError === null || dataError === void 0 ? void 0 : dataError.message) {\n return QBAIAnswerAssistant.parseErrorMessage(dataError.message);\n }\n return QBAIAnswerAssistant.parseErrorObject(dataError);\n }\n return JSON.stringify(error);\n };\n QBAIAnswerAssistant.parseErrorMessage = function (message) {\n var data = QBAIAnswerAssistant.jsonParse(message);\n if (typeof data === 'string') {\n return data;\n }\n if (Array.isArray(data)) {\n return data.join('');\n }\n if (typeof data === 'object') {\n return QBAIAnswerAssistant.parseErrorObject(data);\n }\n return data;\n };\n QBAIAnswerAssistant.jsonParse = function (text) {\n try {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n return JSON.parse(text);\n }\n catch (error) {\n return text;\n }\n };\n QBAIAnswerAssistant.parseErrorObject = function (data) {\n return Object.keys(data)\n .map(function (key) {\n var field = data[key];\n return Array.isArray(field)\n ? \"\".concat(key, \" \").concat(field.join(''))\n : \"\".concat(key, \" \").concat(field);\n })\n .join(' ')\n .replace(/errors\\s?/, '');\n };\n return QBAIAnswerAssistant;\n}());\n/* harmony default export */ __webpack_exports__[\"default\"] = (QBAIAnswerAssistant);\n\n\n//# sourceURL=webpack://qb-ai-answer-assistant/./src/QBAIAnswerAssistant.ts?");
/***/ }),
/***/ "./src/index.ts":
/*!**********************!*\
!*** ./src/index.ts ***!
\**********************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ QBAIAnswerAssistant: function() { return /* reexport safe */ _QBAIAnswerAssistant__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; }\n/* harmony export */ });\n/* harmony import */ var _QBAIAnswerAssistant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./QBAIAnswerAssistant */ \"./src/QBAIAnswerAssistant.ts\");\n\n\n\n\n//# sourceURL=webpack://qb-ai-answer-assistant/./src/index.ts?");
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ !function() {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function() { return module['default']; } :
/******/ function() { return module; };
/******/ __webpack_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ !function() {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = function(exports, definition) {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ }();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ !function() {
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
/******/ }();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ !function() {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ }();
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval devtool is used.
/******/ var __webpack_exports__ = __webpack_require__("./src/index.ts");
/******/
/******/ return __webpack_exports__;
/******/ })()
;
});
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.QBAIAnswerAssistant = void 0;
var QBAIAnswerAssistant_1 = __importDefault(require("./QBAIAnswerAssistant"));
exports.QBAIAnswerAssistant = QBAIAnswerAssistant_1.default;
{
"name": "qb-ai-answer-assistant",
"version": "0.1.0",
"version": "0.1.1",
"description": "Quickblox AI Answer assistant library",

@@ -8,5 +8,3 @@ "main": "dist/index.js",

"dependencies": {
"@types/node": "^16.18.6",
"qb-ai-core": "^0.1.0",
"typescript": "^4.9.3"
"qb-ai-core": "^0.1.1"
},

@@ -40,3 +38,3 @@ "devDependencies": {

"scripts": {
"build": "webpack",
"build": "tsc",
"lint": "eslint ./src"

@@ -43,0 +41,0 @@ },

@@ -57,13 +57,13 @@ <div align="center">

const settings: AIAnswerAssistantSettings =
QBAIAnswerAssistant.createDefaultAIAnswerAssistantSettings();
QBAIAnswerAssistant.createDefaultAIAnswerAssistantSettings();
settings.apiKey = 'YOUR_OPEN_AI_API_KEY';
settings.organization = 'YOUR_ORGANIZATION';// might be empty
settings.model = AIModel.gpt__3_5__turbo;
settings.apiKey = 'YOUR_OPEN_AI_API_KEY';
settings.organization = 'YOUR_ORGANIZATION';// might be empty
settings.model = AIModel.gpt__3_5__turbo;
return QBAIAnswerAssistant.createAnswer(
promt,
messages,
settings,
);
return QBAIAnswerAssistant.createAnswer(
promt,
messages,
settings,
);
```

@@ -75,14 +75,14 @@

const settings: AIAnswerAssistantSettings =
QBAIAnswerAssistant.createDefaultAIAnswerAssistantSettings();
QBAIAnswerAssistant.createDefaultAIAnswerAssistantSettings();
settings.organization = 'YOUR_ORGANIZATION';// might be empty
settings.model = AIModel.gpt__3_5__turbo;
settings.token = 'YOUR_QUICKBLOX_USER_SESSION_TOKEN';
settings.serverPath = `https://your-proxy-server-url`;
settings.organization = 'YOUR_ORGANIZATION';// might be empty
settings.model = AIModel.gpt__3_5__turbo;
settings.token = 'YOUR_QUICKBLOX_USER_SESSION_TOKEN';
settings.serverPath = `https://your-proxy-server-url`;
return QBAIAnswerAssistant.createAnswer(
promt,
messages,
settings,
);
return QBAIAnswerAssistant.createAnswer(
promt,
messages,
settings,
);
```

@@ -89,0 +89,0 @@

import { AIException } from 'qb-ai-core';
export const UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_MESSAGE = 'Undefined settings';
export const UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_MESSAGE =
'Undefined settings';
export const UNDEFINED_SETTINGS__AI_ANSWER_ASSISTANT_CODE = 121;
export default class AIAnswerAssistantException extends AIException {
constructor(public message: string, code: number) {
super(message, code);
}
}
constructor(public message: string, code: number) {
super(message, code);
}
}
import { IAISettings } from './IAISettings';
import { AIModel, ApiVersion } from 'qb-ai-core';
export default class AIAnswerAssistantSettings implements IAISettings{
constructor(apiKey: string, apiVersion: string, maxRequestTokens: number, maxResponseTokens: number | undefined, model: AIModel, organization: string | undefined, serverPath: string, temperature: number, token: string) {
this._apiKey = apiKey;
this._apiVersion = apiVersion;
this._maxRequestTokens = maxRequestTokens;
this._maxResponseTokens = maxResponseTokens;
this._model = model;
this._organization = organization;
this._serverPath = serverPath;
this._temperature = temperature;
this._token = token;
}
get apiKey(): string {
return this._apiKey;
}
export default class AIAnswerAssistantSettings implements IAISettings {
constructor(
apiKey: string,
apiVersion: string,
maxRequestTokens: number,
maxResponseTokens: number | undefined,
model: AIModel,
organization: string | undefined,
serverPath: string,
temperature: number,
token: string,
) {
this._apiKey = apiKey;
this._apiVersion = apiVersion;
this._maxRequestTokens = maxRequestTokens;
this._maxResponseTokens = maxResponseTokens;
this._model = model;
this._organization = organization;
this._serverPath = serverPath;
this._temperature = temperature;
this._token = token;
}
get apiKey(): string {
return this._apiKey;
}
set apiKey(value: string) {
this._apiKey = value;
}
set apiKey(value: string) {
this._apiKey = value;
}
get apiVersion(): string {
return this._apiVersion;
}
get apiVersion(): string {
return this._apiVersion;
}
set apiVersion(value: string) {
this._apiVersion = value;
}
set apiVersion(value: string) {
this._apiVersion = value;
}
get maxRequestTokens(): number {
return this._maxRequestTokens;
}
get maxRequestTokens(): number {
return this._maxRequestTokens;
}
set maxRequestTokens(value: number) {
this._maxRequestTokens = value;
}
set maxRequestTokens(value: number) {
this._maxRequestTokens = value;
}
get maxResponseTokens(): number | undefined {
return this._maxResponseTokens;
}
get maxResponseTokens(): number | undefined {
return this._maxResponseTokens;
}
set maxResponseTokens(value: number | undefined) {
this._maxResponseTokens = value;
}
set maxResponseTokens(value: number | undefined) {
this._maxResponseTokens = value;
}
get model(): AIModel {
return this._model;
}
get model(): AIModel {
return this._model;
}
set model(value: AIModel) {
this._model = value;
}
set model(value: AIModel) {
this._model = value;
}
get organization(): string | undefined {
return this._organization;
}
get organization(): string | undefined {
return this._organization;
}
set organization(value: string | undefined) {
this._organization = value;
}
set organization(value: string | undefined) {
this._organization = value;
}
get serverPath(): string {
return this._serverPath;
}
get serverPath(): string {
return this._serverPath;
}
set serverPath(value: string) {
this._serverPath = value;
}
set serverPath(value: string) {
this._serverPath = value;
}
get temperature(): number {
return this._temperature;
}
get temperature(): number {
return this._temperature;
}
set temperature(value: number) {
this._temperature = value;
}
set temperature(value: number) {
this._temperature = value;
}
get token(): string {
return this._token;
}
get token(): string {
return this._token;
}
set token(value: string) {
this._token = value;
}
private _apiKey: string;
private _apiVersion: string;
private _maxRequestTokens: number;
private _maxResponseTokens: number | undefined;
private _model: AIModel;
private _organization: string | undefined;
private _serverPath: string;
private _temperature: number;
private _token: string;
}
set token(value: string) {
this._token = value;
}
private _apiKey: string;
private _apiVersion: string;
private _maxRequestTokens: number;
private _maxResponseTokens: number | undefined;
private _model: AIModel;
private _organization: string | undefined;
private _serverPath: string;
private _temperature: number;
private _token: string;
}
import { ApiVersion, Settings } from 'qb-ai-core';
export interface IAISettings extends Settings{
}
export interface IAISettings extends Settings {}

@@ -1,8 +0,2 @@

import {
AIModel,
ApiVersion,
ChatMessage,
QBAICore,
Role,
} from 'qb-ai-core';
import { AIModel, ApiVersion, ChatMessage, QBAICore, Role } from 'qb-ai-core';
import AIAnswerAssistantSettings from './AIAnswerAssistantSettings';

@@ -52,3 +46,3 @@ import AIAnswerAssistantException, {

private static createAnswerAssistPrompt(textToSend: string) {
const prompt = `You are a customer support chat operator. Your goal is to provide helpful and informative responses to customer inquiries. Give a response to the next user's query, considering the entire conversation context. Answer in the format of simple sentences. Do not include question in answer. Please, provide answer for this issue:'${textToSend}'.`;
const prompt = `You are a customer support chat operator. Your goal is to provide helpful and informative responses to customer inquiries. Give a response to the next user’s query, considering the entire conversation context, and use grammar and vocabulary at the A2-B2 level. Answer in the format of simple sentences. Do not include question in answer. Translate your response into the same language as the my issue. Please, provide answer for this issue:'${textToSend}'.`;

@@ -55,0 +49,0 @@ return prompt;

{
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
"outDir": "./dist",
"declaration": true,

@@ -20,13 +19,11 @@ "target": "es5",

"noFallthroughCasesInSwitch": true,
"module": "esnext",
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
},
"include": [
"src",
"src/**/*",
],
"exclude": ["node_modules", "dist"]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc