@azteam/express 1.2.318 → 1.2.319

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
@@ -200,7 +200,7 @@ var Server = /*#__PURE__*/function () {
200
200
  var guard = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
201
201
  var allow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
202
202
  var guardData = data;
203
- if (data) {
203
+ if (allow !== '*' && data) {
204
204
  var resType = null;
205
205
  if (_lodash["default"].isArray(data)) {
206
206
  resType = RES_TYPE.ARRAY;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.318",
3
+ "version": "1.2.319",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./src/index.js",
6
6
  "scripts": {
package/src/Server.js CHANGED
@@ -164,7 +164,7 @@ class Server {
164
164
 
165
165
  app.response.success = function (data = {}, guard = [], allow = []) {
166
166
  let guardData = data;
167
- if (data) {
167
+ if (allow !== '*' && data) {
168
168
  let resType = null;
169
169
  if (_.isArray(data)) {
170
170
  resType = RES_TYPE.ARRAY;