@azteam/express 1.2.390 → 1.2.392

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
@@ -138,6 +138,7 @@ var Server = /*#__PURE__*/function () {
138
138
  if (origin && whiteList && !whiteList.some(function (re) {
139
139
  return origin.endsWith(re);
140
140
  })) {
141
+ console.error("CORS ".concat(agent, " ").concat(origin));
141
142
  error = new _error.ErrorException(_error.CORS, "".concat(origin, " Not allowed by CORS"));
142
143
  }
143
144
  }
@@ -319,7 +319,7 @@ var AdminController = /*#__PURE__*/function (_Controller) {
319
319
  _this.paginateOptions.allowSearchFields = [].concat(_toConsumableArray(_this.paginateOptions.allowSearchFields), ['is_indexing']);
320
320
  }
321
321
  _this.paginateOptions.allowSearchFields = [].concat(_toConsumableArray(_this.paginateOptions.allowSearchFields), ['status', 'created_at_start', 'created_at_end', 'modified_at_start', 'modified_at_end']);
322
- _this.paginateOptions.allowSortFields = [].concat(_toConsumableArray(_this.paginateOptions.allowSortFields), ['created_at', 'modified_at', 'status'
322
+ _this.paginateOptions.allowSortFields = [].concat(_toConsumableArray(_this.paginateOptions.allowSortFields), ['priority', 'created_at', 'modified_at', 'status'
323
323
  //
324
324
  ]);
325
325
  return _this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.390",
3
+ "version": "1.2.392",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
package/src/Server.js CHANGED
@@ -112,6 +112,7 @@ class Server {
112
112
  let error = null;
113
113
  if (!authorization && !agent.startsWith(systemUser)) {
114
114
  if (origin && whiteList && !whiteList.some((re) => origin.endsWith(re))) {
115
+ console.error(`CORS ${agent} ${origin}`);
115
116
  error = new ErrorException(CORS, `${origin} Not allowed by CORS`);
116
117
  }
117
118
  }
@@ -66,6 +66,7 @@ class AdminController extends Controller {
66
66
  ];
67
67
  this.paginateOptions.allowSortFields = [
68
68
  ...this.paginateOptions.allowSortFields,
69
+ 'priority',
69
70
  'created_at',
70
71
  'modified_at',
71
72
  'status',