my-q-format-response-aws-lambda 1.0.33 → 1.0.34

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.
Files changed (3) hide show
  1. package/index.js +2 -0
  2. package/index.ts +1 -0
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -103,6 +103,8 @@ class Result {
103
103
  count: this.count,
104
104
  error: _err,
105
105
  };
106
+ if (this.redirectTo)
107
+ valueBody.redirectTo = this.redirectTo;
106
108
  const valueBodyWrap = {
107
109
  statusCode: this.statusCode,
108
110
  body: JSON.stringify(valueBody),
package/index.ts CHANGED
@@ -160,6 +160,7 @@ class Result {
160
160
  count: this.count,
161
161
  error: _err,
162
162
  };
163
+ if (this.redirectTo) valueBody.redirectTo = this.redirectTo;
163
164
  const valueBodyWrap: ResponseVO = {
164
165
  statusCode: this.statusCode,
165
166
  body: JSON.stringify(valueBody),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-q-format-response-aws-lambda",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "homepage": "https://github.com/zhukyuri/my-q-format-response-aws-lambda",
5
5
  "description": "my-q-format-response-aws-lambda",
6
6
  "main": "index.js",