assai 0.2.1 → 0.3.0
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/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 `
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/TimeLord2010/assai",
|
|
6
6
|
"type": "git"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"main": "index.mjs",
|
|
10
10
|
"types": "dist/index.d.mts",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"
|
|
12
|
+
"postinstall": "tsc -p ./jsconfig.prod.json",
|
|
13
13
|
"start": "node --env-file=.env index.mjs",
|
|
14
14
|
"test": "node --env-file=.env --test"
|
|
15
15
|
},
|