lambder 1.0.85 → 1.0.87

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/Readme.md +4 -3
  2. package/package.json +1 -1
package/Readme.md CHANGED
@@ -191,11 +191,12 @@ lambder.addApi("getCompanyName", async (ctx, res) => {
191
191
  // attempts to serve the fallback file.
192
192
  // Returns a JSON error if neither file is found.
193
193
 
194
- return res.api({ payload, versionExpired, sessionExpired, notAuthorized, message, errorMessage }, headers);
194
+ return res.api({ payload, notAuthorized, message, errorMessage }, headers);
195
+ // This function works together with the LambderCaller from the frontend.
195
196
  // Sends a standardized API response including the payload and status
196
197
  // flags like versionExpired, sessionExpired, notAuthorized, along with
197
- // optional messages and headers.
198
-
198
+ // optional messages and headers.
199
+
199
200
  // res.die.*
200
201
  // Acts the same as res.* but will:
201
202
  // - Immediately return the value.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambder",
3
- "version": "1.0.85",
3
+ "version": "1.0.87",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",