axiodb 22.2.1 → 22.2.2

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.
@@ -154,11 +154,15 @@ class MessageValidator {
154
154
  case command_types_1.CommandType.CREATE_COLLECTION:
155
155
  case command_types_1.CommandType.DELETE_COLLECTION:
156
156
  case command_types_1.CommandType.COLLECTION_EXISTS:
157
- case command_types_1.CommandType.GET_COLLECTION_INFO:
158
157
  if (!params.dbName || !params.collectionName) {
159
158
  throw new Error(`${keys_1.ErrorMessage.MISSING_REQUIRED_PARAMS}: dbName, collectionName`);
160
159
  }
161
160
  break;
161
+ case command_types_1.CommandType.GET_COLLECTION_INFO:
162
+ if (!params.dbName) {
163
+ throw new Error(`${keys_1.ErrorMessage.MISSING_REQUIRED_PARAMS}: dbName`);
164
+ }
165
+ break;
162
166
  case command_types_1.CommandType.INSERT_DOCUMENT:
163
167
  if (!params.dbName || !params.collectionName || !params.data) {
164
168
  throw new Error(`${keys_1.ErrorMessage.MISSING_REQUIRED_PARAMS}: dbName, collectionName, data`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axiodb",
3
- "version": "22.2.1",
3
+ "version": "22.2.2",
4
4
  "description": "The embedded database for Node.js. Replaces SQLite, LowDB, NeDB & raw JSON files with MongoDB-style queries, ACID transactions, zero native dependencies, and built-in InMemoryCache. No compilation, no platform issues. Perfect for desktop apps, CLI tools, and embedded systems.",
5
5
  "main": "./lib/config/DB.js",
6
6
  "types": "./lib/config/DB.d.ts",