fng-audit 0.12.0-beta.178 → 0.12.0-beta.180
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/dist/server/fng-audit.js +2 -2
- package/package.json +6 -6
package/dist/server/fng-audit.js
CHANGED
|
@@ -172,7 +172,7 @@ function getRevision(model, id, revisionCrit, doCleaning, callback) {
|
|
|
172
172
|
console.error(err);
|
|
173
173
|
return callback(err, null);
|
|
174
174
|
}
|
|
175
|
-
var object = latest ? latest.toObject() : { _id: Mongoose.Types.ObjectId(id) };
|
|
175
|
+
var object = latest ? latest.toObject() : { _id: new Mongoose.Types.ObjectId(id) };
|
|
176
176
|
async.each(histories, function (history, eachCallback) {
|
|
177
177
|
jsondiffpatch.unpatch(object, history.chg);
|
|
178
178
|
eachCallback();
|
|
@@ -195,7 +195,7 @@ function getVersion(model, id, version, doCleaning, callback) {
|
|
|
195
195
|
}
|
|
196
196
|
exports.getVersion = getVersion;
|
|
197
197
|
function getSnapshot(model, id, snapshotDt, doCleaning, callback) {
|
|
198
|
-
var dateAsObjectId = Mongoose.Types.ObjectId(Math.floor(snapshotDt.getTime() / 1000).toString(16) + "0000000000000000");
|
|
198
|
+
var dateAsObjectId = new Mongoose.Types.ObjectId(Math.floor(snapshotDt.getTime() / 1000).toString(16) + "0000000000000000");
|
|
199
199
|
getRevision(model, id, { _id: { $gte: dateAsObjectId } }, doCleaning, callback);
|
|
200
200
|
}
|
|
201
201
|
exports.getSnapshot = getSnapshot;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fng-audit",
|
|
3
|
-
"version": "0.12.0-beta.
|
|
3
|
+
"version": "0.12.0-beta.180",
|
|
4
4
|
"description": "Client part of forms-angular audit plugin",
|
|
5
5
|
"homepage": "https://www.forms-angular.org/#/plugins",
|
|
6
6
|
"files": [
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"@types/chai": "4.3.0",
|
|
25
25
|
"@types/express": "4.17.13",
|
|
26
26
|
"@types/mocha": "9.1.0",
|
|
27
|
-
"angular": "^1.8.
|
|
27
|
+
"angular": "^1.8.3",
|
|
28
28
|
"chai": "4.3.6",
|
|
29
|
-
"forms-angular": "0.12.0-beta.
|
|
30
|
-
"grunt": "^1.
|
|
29
|
+
"forms-angular": "0.12.0-beta.180",
|
|
30
|
+
"grunt": "^1.5.2",
|
|
31
31
|
"grunt-angular-templates": "^1.2.0",
|
|
32
|
-
"grunt-contrib-concat": "2.
|
|
32
|
+
"grunt-contrib-concat": "2.1.0",
|
|
33
33
|
"grunt-contrib-copy": "1.0.0",
|
|
34
34
|
"grunt-contrib-uglify": "5.1.0",
|
|
35
35
|
"grunt-legacy-log": "3.0.0",
|
|
36
36
|
"mocha": "^9.2.2",
|
|
37
|
-
"mongoose": "6.2.
|
|
37
|
+
"mongoose": "6.2.10"
|
|
38
38
|
},
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"authors": [
|