@spytecgps/lambda-utils 2.3.14 → 2.3.15

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 (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -272,7 +272,7 @@ const buildResponseBody = (statusCode, message, data) => {
272
272
  return {
273
273
  success: statusCode < 400,
274
274
  message,
275
- result: data ? data : undefined,
275
+ result: typeof data !== 'undefined' ? data : undefined,
276
276
  };
277
277
  };
278
278
  const buildProxyResult = ({ statusCode = 200, message = 'ok', data, headers = {}, rawResult = false, stringifyBody = true, }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/lambda-utils",
3
- "version": "2.3.14",
3
+ "version": "2.3.15",
4
4
  "description": "Lambda Utils",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",