wingbot-mongodb
Advanced tools
Comparing version 2.22.0-alpha.2 to 2.22.0-alpha.3
@@ -1,1 +0,1 @@ | ||
{"processes":{"28ee104d-8ece-4824-bb02-ada068f4d2d3":{"parent":null,"children":[]}},"files":{"/Users/david/Development/wingbot-mongodb/src/AttachmentCache.js":["28ee104d-8ece-4824-bb02-ada068f4d2d3"],"/Users/david/Development/wingbot-mongodb/src/AuditLogStorage.js":["28ee104d-8ece-4824-bb02-ada068f4d2d3"],"/Users/david/Development/wingbot-mongodb/src/BaseStorage.js":["28ee104d-8ece-4824-bb02-ada068f4d2d3"],"/Users/david/Development/wingbot-mongodb/src/BotConfigStorage.js":["28ee104d-8ece-4824-bb02-ada068f4d2d3"],"/Users/david/Development/wingbot-mongodb/src/BotTokenStorage.js":["28ee104d-8ece-4824-bb02-ada068f4d2d3"],"/Users/david/Development/wingbot-mongodb/src/tokenFactory.js":["28ee104d-8ece-4824-bb02-ada068f4d2d3"],"/Users/david/Development/wingbot-mongodb/src/ChatLogStorage.js":["28ee104d-8ece-4824-bb02-ada068f4d2d3"],"/Users/david/Development/wingbot-mongodb/src/NotificationsStorage.js":["28ee104d-8ece-4824-bb02-ada068f4d2d3"],"/Users/david/Development/wingbot-mongodb/src/StateStorage.js":["28ee104d-8ece-4824-bb02-ada068f4d2d3"]},"externalIds":{}} | ||
{"processes":{"75b2d1cb-d4fe-472b-a674-acdcb631b536":{"parent":null,"children":[]}},"files":{"/Users/david/Development/wingbot-mongodb/src/AttachmentCache.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"],"/Users/david/Development/wingbot-mongodb/src/AuditLogStorage.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"],"/Users/david/Development/wingbot-mongodb/src/BaseStorage.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"],"/Users/david/Development/wingbot-mongodb/src/defaultLogger.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"],"/Users/david/Development/wingbot-mongodb/src/BotConfigStorage.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"],"/Users/david/Development/wingbot-mongodb/src/BotTokenStorage.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"],"/Users/david/Development/wingbot-mongodb/src/tokenFactory.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"],"/Users/david/Development/wingbot-mongodb/src/ChatLogStorage.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"],"/Users/david/Development/wingbot-mongodb/src/NotificationsStorage.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"],"/Users/david/Development/wingbot-mongodb/src/StateStorage.js":["75b2d1cb-d4fe-472b-a674-acdcb631b536"]},"externalIds":{}} |
{ | ||
"name": "wingbot-mongodb", | ||
"version": "2.22.0-alpha.2", | ||
"version": "2.22.0-alpha.3", | ||
"description": "MongoDB storage for wingbot.ai", | ||
@@ -5,0 +5,0 @@ "main": "src/main.js", |
@@ -8,2 +8,3 @@ /** | ||
const BaseStorage = require('./BaseStorage'); | ||
const defaultLogger = require('./defaultLogger'); | ||
@@ -110,3 +111,3 @@ const LEVEL_CRITICAL = 'Critical'; | ||
*/ | ||
constructor (mongoDb, collectionName = 'auditlog', log = console, isCosmo = false, secret = null, jwtVerifier = null) { | ||
constructor (mongoDb, collectionName = 'auditlog', log = defaultLogger, isCosmo = false, secret = null, jwtVerifier = null) { | ||
super(mongoDb, collectionName, log, isCosmo); | ||
@@ -113,0 +114,0 @@ |
@@ -8,2 +8,3 @@ /** | ||
const crypto = require('crypto'); | ||
const defaultLogger = require('./defaultLogger'); | ||
@@ -47,3 +48,3 @@ /** @typedef {import('mongodb').Db} Db */ | ||
*/ | ||
constructor (mongoDb, collectionName, log = console, isCosmo = false) { | ||
constructor (mongoDb, collectionName, log = defaultLogger, isCosmo = false) { | ||
this._mongoDb = mongoDb; | ||
@@ -50,0 +51,0 @@ this._collectionName = collectionName; |
@@ -7,2 +7,3 @@ /* | ||
const BaseStorage = require('./BaseStorage'); | ||
const defaultLogger = require('./defaultLogger'); | ||
@@ -29,3 +30,3 @@ const PAGE_SENDER_TIMESTAMP = 'pageId_1_senderId_1_timestamp_-1'; | ||
*/ | ||
constructor (mongoDb, collectionName = 'chatlogs', log = console, isCosmo = false, secret = null) { | ||
constructor (mongoDb, collectionName = 'chatlogs', log = defaultLogger, isCosmo = false, secret = null) { | ||
super(mongoDb, collectionName, log, isCosmo); | ||
@@ -32,0 +33,0 @@ |
@@ -7,2 +7,3 @@ /** | ||
const mongodb = require('mongodb'); | ||
const defaultLogger = require('./defaultLogger'); | ||
@@ -88,3 +89,3 @@ const { ObjectID } = mongodb; | ||
*/ | ||
constructor (mongoDb, collectionsPrefix = '', log = console, isCosmo = false) { | ||
constructor (mongoDb, collectionsPrefix = '', log = defaultLogger, isCosmo = false) { | ||
this._mongoDb = mongoDb; | ||
@@ -91,0 +92,0 @@ |
@@ -7,2 +7,3 @@ /* | ||
const BaseStorage = require('./BaseStorage'); | ||
const defaultLogger = require('./defaultLogger'); | ||
@@ -41,3 +42,3 @@ const USER_INDEX = 'senderId_1_pageId_1'; | ||
*/ | ||
constructor (mongoDb, collectionName = 'states', log = console, isCosmo = false) { | ||
constructor (mongoDb, collectionName = 'states', log = defaultLogger, isCosmo = false) { | ||
super(mongoDb, collectionName, log, isCosmo); | ||
@@ -44,0 +45,0 @@ |
241636
20
2176