You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -70,7 +69,7 @@ import DiffPlugin from 'mongoose-history-diff';
70
69
71
70
## Track diffs
72
71
73
-
After adding, plugin will create a diff document with a following shape in separate collection on every changing of your documents.
72
+
After adding, the plugin will create a diff document with the following shape in a separate collection on every changing of your documents.
74
73
75
74
```js
76
75
{
@@ -107,12 +106,12 @@ Diffs are represented as one or more change records. Change records have the fol
107
106
*`i` - when `k === 'A'`, indicates the array index where the change occurred
108
107
*`it` - when `k === 'A'`, contains a nested change record indicating the change that occurred at the array index
109
108
110
-
Under the hood plugin uses refactored and simplified algorithm of `deep-diff` package, that is why this plugin has similar structure of changes. You can explore that [repo](https://github.com/flitbit/diff) too if you are interested in.
109
+
Under the hood, the plugin uses refactored and simplified algorithm of `deep-diff` package, that is why this plugin has similar structure of changes. You can explore that [repo](https://github.com/flitbit/diff) too if you are interested in.
111
110
112
111
113
112
## Methods
114
113
115
-
Also, plugin will add static `diffModel` method that return the model of diff collection.
114
+
Also, the plugin will add a static `diffModel` method that returns the model of diff collection.
116
115
117
116
```js
118
117
constDiff=Post.diffModel();
@@ -127,7 +126,7 @@ This model contains several static methods as well:
127
126
128
127
## Contribution
129
128
130
-
Feel free to submit pull request. Also, be sure all tests has passed otherwise pull request won't be merged.
129
+
Feel free to submit a pull request. Also, be sure all tests have passed otherwise pull request won't be merged.
0 commit comments