wingbot-mongodb 4.2.9 → 4.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":490220,"argv":["/nix/store/h4apbnz8p5fmjwcmzlaxcjm5vr70d97x-nodejs-slim-24.13.0/bin/node","/home/lika85456/workspace/wingbot/wingbot-mongodb/node_modules/.bin/mocha","./test"],"execArgv":[],"cwd":"/home/lika85456/workspace/wingbot/wingbot-mongodb","time":1772629403276,"ppid":490083,"coverageFilename":"/home/lika85456/workspace/wingbot/wingbot-mongodb/.nyc_output/6c56c7b8-6b82-4996-ac02-8b00e2cd98c7.json","externalId":"","uuid":"6c56c7b8-6b82-4996-ac02-8b00e2cd98c7","files":["/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BaseStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/defaultLogger.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/getNestedObjects.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/AttachmentCache.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/AuditLogStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BotConfigStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BotTokenStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/tokenFactory.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/ChatLogStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/NotificationsStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/StateStorage.js"]}
@@ -1 +1 @@
1
- {"processes":{"e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7":{"parent":null,"children":[]}},"files":{"/Users/david/Development/wingbot-mongodb/src/BaseStorage.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/defaultLogger.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/getNestedObjects.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/AttachmentCache.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/AuditLogStorage.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/BotConfigStorage.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/BotTokenStorage.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/tokenFactory.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/ChatLogStorage.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/NotificationsStorage.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"],"/Users/david/Development/wingbot-mongodb/src/StateStorage.js":["e6d9f3c1-d3d8-4e19-a2e5-18bcc8f35eb7"]},"externalIds":{}}
1
+ {"processes":{"6c56c7b8-6b82-4996-ac02-8b00e2cd98c7":{"parent":null,"children":[]}},"files":{"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BaseStorage.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/defaultLogger.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/getNestedObjects.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/AttachmentCache.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/AuditLogStorage.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BotConfigStorage.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BotTokenStorage.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/tokenFactory.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/ChatLogStorage.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/NotificationsStorage.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/StateStorage.js":["6c56c7b8-6b82-4996-ac02-8b00e2cd98c7"]},"externalIds":{}}
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
package/jsconfig.json CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot-mongodb",
3
- "version": "4.2.9",
3
+ "version": "4.2.11",
4
4
  "description": "MongoDB storage for wingbot.ai",
5
5
  "main": "src/main.js",
6
6
  "types": "types/main.d.ts",
File without changes
@@ -13,15 +13,9 @@ const getNestedObjects = require('./getNestedObjects');
13
13
  /** @typedef {import('mongodb').Document} Document */
14
14
  /** @typedef {import('mongodb').CreateIndexesOptions} CreateIndexesOptions */
15
15
 
16
- /**
17
- * @template T=ObjectId
18
- * @typedef {object} CustomIdentifier
19
- * @prop {T} _id
20
- */
21
-
22
16
  /**
23
17
  * @template {object} T
24
- * @typedef {T & CustomIdentifier<ObjectId>} WithId
18
+ * @typedef {import('mongodb').WithId<T>} WithId
25
19
  */
26
20
 
27
21
  /**
@@ -42,7 +36,7 @@ function signReplacer (k, v) {
42
36
  }
43
37
 
44
38
  /**
45
- * @template T={} {Document}
39
+ * @template T={Document}
46
40
  */
47
41
  class BaseStorage {
48
42
 
File without changes
File without changes
File without changes
package/src/compact.js CHANGED
File without changes
File without changes
File without changes
package/src/main.js CHANGED
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  export = BaseStorage;
2
2
  /**
3
- * @template T={} {Document}
3
+ * @template T={Document}
4
4
  */
5
5
  declare class BaseStorage<T> {
6
6
  static netFailuresIntervalMs: number;
@@ -177,13 +177,10 @@ declare class BaseStorage<T> {
177
177
  drop(): Promise<any>;
178
178
  }
179
179
  declare namespace BaseStorage {
180
- export { Db, Document, CreateIndexesOptions, CustomIdentifier, WithId };
180
+ export { Db, Document, CreateIndexesOptions, WithId };
181
181
  }
182
182
  import { ObjectId } from "mongodb";
183
183
  type Db = import("mongodb").Db;
184
184
  type Document = import("mongodb").Document;
185
185
  type CreateIndexesOptions = import("mongodb").CreateIndexesOptions;
186
- type CustomIdentifier<T> = {
187
- _id: T;
188
- };
189
- type WithId<T extends unknown> = T & CustomIdentifier<ObjectId>;
186
+ type WithId<T extends unknown> = import("mongodb").WithId<T>;