lambder 1.0.69 → 1.0.70

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 -2
  2. package/package.json +1 -1
package/Readme.md CHANGED
@@ -105,11 +105,13 @@ import LambderCaller from "lambder/dist/LambderCaller";
105
105
  const lambderCaller = new LambderCaller({
106
106
  isCorsEnabled: false,
107
107
  apiPath: "/secure", // Your Lambder API endpoint, must be the same as in your backend
108
- fetchStartedHandler: ({ activeFetchList }) => {
108
+ fetchStartedHandler: ({ fetchParams, activeFetchList }) => {
109
109
  // When any api call starts
110
+ console.log("API Called:", fetchParams.apiName);
110
111
  },
111
- fetchEndedHandler: ({ activeFetchList }) => {
112
+ fetchEndedHandler: ({ fetchParams, fetchResult, activeFetchList }) => {
112
113
  // When any api call ends
114
+ console.log("Ongoing api call count:", activeFetchList.length);
113
115
  },
114
116
  errorMessageHandler: (message) => {
115
117
  console.error("LambderCaller:", message); // Handle error messages
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambder",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",