@azteam/express 1.2.405 → 1.2.406

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/lib/Server.js CHANGED
@@ -207,7 +207,7 @@ var Server = /*#__PURE__*/function () {
207
207
  var responseGuard = guard;
208
208
  var responseAllows = allow;
209
209
  if (_lodash["default"].isArray(guard)) {
210
- responseGuard = [].concat(_toConsumableArray(guard), ['__v', '_id', 'created_at', 'created_id', 'modified_at', 'modified_id', 'deleted_at', 'deleted_id', 'restored_id', 'resource', 'is_synchronized', 'priority', 'is_indexing']);
210
+ responseGuard = [].concat(_toConsumableArray(guard), ['__v', '_id', 'created_at', 'created_id', 'modified_at', 'modified_id', 'deleted_at', 'deleted_id', 'restored_id', 'resource', 'is_synchronized', 'priority', 'is_indexing', 'status', 'message']);
211
211
  }
212
212
  if (resType === RES_TYPE.DOCS) {
213
213
  guardData.docs = (0, _util.omitArrayItem)(data.docs, responseGuard, responseAllows);
@@ -36,7 +36,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
36
36
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
37
37
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
38
38
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
39
- var ALLOW_FIELDS = ['created_at', 'created_id', 'modified_at', 'modified_id', 'deleted_at', 'deleted_id', 'restored_id', 'resource', 'priority', 'is_synchronized', 'is_indexing'];
39
+ var ALLOW_FIELDS = ['created_at', 'created_id', 'modified_at', 'modified_id', 'deleted_at', 'deleted_id', 'restored_id', 'resource', 'priority', 'is_synchronized', 'is_indexing', 'status', 'message'];
40
40
  var AdminController = /*#__PURE__*/function (_Controller) {
41
41
  _inherits(AdminController, _Controller);
42
42
  var _super = _createSuper(AdminController);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.405",
3
+ "version": "1.2.406",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
package/src/Server.js CHANGED
@@ -186,6 +186,8 @@ class Server {
186
186
  'priority',
187
187
 
188
188
  'is_indexing',
189
+ 'status',
190
+ 'message',
189
191
  ];
190
192
  }
191
193
  if (resType === RES_TYPE.DOCS) {
@@ -19,6 +19,8 @@ const ALLOW_FIELDS = [
19
19
  'priority',
20
20
  'is_synchronized',
21
21
  'is_indexing',
22
+ 'status',
23
+ 'message',
22
24
  ];
23
25
 
24
26
  class AdminController extends Controller {