assai 0.2.1 → 0.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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,7 +41,7 @@ await collection.insertOne({
41
41
  })
42
42
  ```
43
43
 
44
- Every time you need a new id, you can call the `id` method:
44
+ Every time you need a new id, you can call the `generateNewId` method:
45
45
 
46
46
  ```js
47
47
  import { mongo } from 'assai'
@@ -94,7 +94,7 @@ This will read the value from `process.env.DATABASE_URL`.
94
94
  You can still pass a custom connection string:
95
95
  ```js
96
96
  const database = await createMongoCollection('myCollection', {
97
- cs: 'my connection string',
97
+ connectionString: 'my connection string',
98
98
  })
99
99
  ```
100
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assai",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "repository": {
5
5
  "url": "https://github.com/TimeLord2010/assai",
6
6
  "type": "git"