@tomsd/mongodbclient 3.0.1 → 3.0.4

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.
package/.env.default ADDED
@@ -0,0 +1 @@
1
+ MONGODB_URI=mongodb+srv://...
package/README.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @tomsd/mongodbclient
2
2
 
3
+ ![npm](https://img.shields.io/npm/v/@tomsd/mongodbclient)
4
+ ![NPM](https://img.shields.io/npm/l/@tomsd/mongodbclient)
5
+ ![npms.io (quality)](https://img.shields.io/npms-io/quality-score/@tomsd/mongodbclient)
6
+ ![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/@tomsd/mongodbclient)
7
+ ![Maintenance](https://img.shields.io/maintenance/yes/2022)
8
+ ![depends on mongodb@4](https://img.shields.io/badge/depends%20on-mongodb@4-informational)
9
+
3
10
  ## Installation
4
11
  ``` sh
5
12
  npm install @tomsd/mongodbclient
@@ -27,14 +34,6 @@ const items = [
27
34
  const { insertedCount } = await mdbc.insertMany(items);
28
35
  console.log(insertedCount); // 4
29
36
 
30
- const collections = await mdbc.getCollections();
31
- console.log(
32
- collections.some(
33
- // @ts-ignore
34
- collection => collection.s.namespace.db === dbName
35
- )
36
- ); // true
37
-
38
37
  const docs = await mdbc.read();
39
38
  console.log(docs);
40
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomsd/mongodbclient",
3
- "version": "3.0.1",
3
+ "version": "3.0.4",
4
4
  "description": "",
5
5
  "main": "dist/cjs/mongodbclient.js",
6
6
  "module": "dist/esm/mongodbclient.js",