transactions-mongoose
Advanced tools
Comparing version 1.1.5 to 1.1.8
{ | ||
"name": "transactions-mongoose", | ||
"version": "1.1.5", | ||
"version": "1.1.8", | ||
"description": "Transactions for mongoose", | ||
@@ -25,3 +25,6 @@ "main": "index.js", | ||
"mongoose": "^7.5.4" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 0" | ||
} | ||
} |
@@ -11,4 +11,14 @@ # 🇺🇦 Transactions for mongoose | ||
### Install module | ||
Very simple and extremely easy ☕️ : | ||
- A couple of methods for everything | ||
- Mix executors as you like | ||
- Use the session for your usual, standard saving | ||
And yes, let's start! | ||
### Installation | ||
First install [Node.js](https://nodejs.org/uk) and [MongoDB](https://www.mongodb.com/try). Then: | ||
```shell | ||
@@ -18,2 +28,4 @@ npm i transactions-mongoose | ||
Mongoose [7.5.4](https://www.npmjs.com/package/transactions-mongoose?activeTab=dependencies) also included | ||
### Usage | ||
@@ -102,4 +114,6 @@ | ||
const reader = new FileReader() ; | ||
reader.onload = function(){ onSuccess(this.result) } ; | ||
reader.readAsDataURL(blob) ; | ||
reader.onload = function () { | ||
onSuccess(this.result) | ||
}; | ||
reader.readAsDataURL(blob); | ||
}); | ||
@@ -173,2 +187,7 @@ }; | ||
[![](https://img.shields.io/badge/Node.js-v16.x.x-blue?logo=nodedotjs)](https://nodejs.org) | ||
If the scheme uses {timestamps: true} in the options, or the fields createdAt (if the document is new), updatedAt (for | ||
new and updates) - they will be automatically created or updated updatedAt. | ||
[![](https://img.shields.io/badge/mongoose-v5.x.x_and_up-blue?logo=mongoosedotws)](https://www.npmjs.com/package/mongoose) | ||
[![](https://img.shields.io/badge/Node.js-v16.x.x_and_up-blue?logo=nodedotjs)](https://nodejs.org) |
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
45108
189
7
2