@ebenos/framework
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -11,5 +11,12 @@ "use strict"; | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -19,2 +26,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GenericAdapter = exports.User = exports.Bot = void 0; | ||
const bot_1 = __importDefault(require("./bot")); | ||
@@ -26,3 +34,3 @@ exports.Bot = bot_1.default; | ||
exports.GenericAdapter = adapter_1.default; | ||
__export(require("./interfaces/interactions")); | ||
__exportStar(require("./interfaces/interactions"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isNotifyInteraction = exports.isSenderActionInteraction = exports.isMessageInteraction = void 0; | ||
function isMessageInteraction(interaction) { | ||
@@ -4,0 +5,0 @@ return interaction.type === 'message'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UserModel = void 0; | ||
const mongoose_1 = require("mongoose"); | ||
@@ -4,0 +5,0 @@ const userSchema = new mongoose_1.Schema({ |
@@ -19,3 +19,2 @@ /** | ||
private rules; | ||
constructor(); | ||
/** | ||
@@ -22,0 +21,0 @@ * Adds text rules |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const bodyParser = require("body-parser"); | ||
exports.start = void 0; | ||
const body_parser_1 = __importDefault(require("body-parser")); | ||
function start(app, port, route, adapter) { | ||
app.use(route, bodyParser()); | ||
app.use(route, body_parser_1.default.json()); | ||
app.use(route, adapter.webhook); | ||
@@ -7,0 +11,0 @@ app.listen(port); |
{ | ||
"name": "@ebenos/framework", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "A module-based NodeJS chatbot framework.", | ||
@@ -36,11 +36,11 @@ "main": "./build/index.js", | ||
"@types/lodash": "^4.14.138", | ||
"@types/mongodb": "^3.3.2", | ||
"@types/mongoose": "^5.5.17", | ||
"@types/node-fetch": "^2.1.6", | ||
"@types/mongodb": "^3.5.27", | ||
"@types/mongoose": "^5.7.36", | ||
"@types/node-fetch": "^2.5.7", | ||
"body-parser": "^1.19.0", | ||
"express": "^4.17.1", | ||
"lodash": "^4.17.15", | ||
"mongodb": "^3.3.2", | ||
"mongoose": "^5.7.5", | ||
"node-fetch": "^2.6.0" | ||
"mongodb": "^3.6.2", | ||
"mongoose": "^5.10.5", | ||
"node-fetch": "^2.6.1" | ||
}, | ||
@@ -55,3 +55,3 @@ "engines": { | ||
], | ||
"gitHead": "ec16dc7c086d51c242e258048ab3a6a6c5a77371" | ||
"gitHead": "7a24c49feff5adca994a139f2d8047d49c2115e5" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88619
98
1436
Updated@types/mongodb@^3.5.27
Updated@types/mongoose@^5.7.36
Updated@types/node-fetch@^2.5.7
Updatedmongodb@^3.6.2
Updatedmongoose@^5.10.5
Updatednode-fetch@^2.6.1