fng-audit 0.12.0-beta.184 → 0.12.0-beta.187

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.
@@ -9,6 +9,7 @@ var mongooseInstance;
9
9
  var formsAngular;
10
10
  var auditOptions = {};
11
11
  function controller(fng, processArgs, options) {
12
+ var _a;
12
13
  formsAngular = fng;
13
14
  mongooseInstance = formsAngular.mongoose;
14
15
  auditOptions = options || {};
@@ -54,6 +55,17 @@ function controller(fng, processArgs, options) {
54
55
  res.status(404).send("No such resource as ".concat(req.params.model));
55
56
  }
56
57
  }]));
58
+ return {
59
+ dependencyChecks: (_a = {},
60
+ _a[options.userRef] = [{
61
+ resource: {
62
+ resourceName: 'audit',
63
+ model: exports.Audit
64
+ },
65
+ keys: ['user']
66
+ }],
67
+ _a)
68
+ };
57
69
  }
58
70
  exports.controller = controller;
59
71
  function extractPossiblyNestedPath(tree, obj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fng-audit",
3
- "version": "0.12.0-beta.184",
3
+ "version": "0.12.0-beta.187",
4
4
  "description": "Client part of forms-angular audit plugin",
5
5
  "homepage": "https://www.forms-angular.org/#/plugins",
6
6
  "files": [
@@ -26,7 +26,7 @@
26
26
  "@types/mocha": "9.1.0",
27
27
  "angular": "^1.8.3",
28
28
  "chai": "4.3.6",
29
- "forms-angular": "0.12.0-beta.184",
29
+ "forms-angular": "0.12.0-beta.187",
30
30
  "grunt": "^1.5.2",
31
31
  "grunt-angular-templates": "^1.2.0",
32
32
  "grunt-contrib-concat": "2.1.0",