lambder 1.0.69 → 1.0.71

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 +5 -3
  2. package/package.json +1 -1
package/Readme.md CHANGED
@@ -5,7 +5,7 @@ Lambder is a dynamic serverless framework designed to facilitate the management
5
5
  ## Features
6
6
 
7
7
  - **Simple API & Route Declaration**: Define your APIs and routes using concise and expressive syntax.
8
- - **Session Management**: Built-in session management to secure and personalize user experiences.
8
+ - **Session Management**: IN PROGRESS: Built-in session management to secure and personalize user experiences.
9
9
  - **Flexible Hooks System**: Employ hooks to execute code at different stages of the request lifecycle, enabling fine-grained control over the application flow.
10
10
  - **Error Handling**: Comprehensive error handling capabilities, including global error handlers and route-specific fallbacks.
11
11
  - **Seamless Integration**: Designed to work effortlessly with AWS Lambda and API Gateway, providing a straightforward path to deploy serverless applications.
@@ -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.71",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",