@fiado/api-invoker 1.1.2 → 1.1.3

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.
@@ -20,12 +20,8 @@ let BBVARstApi = class BBVARstApi {
20
20
  this.baseUrl = process.env.BBVA_RSTA_LAMBDA_URL || "";
21
21
  }
22
22
  async create(request) {
23
- const url = `${this.baseUrl}`;
24
- const headers = {
25
- 'Content-Type': 'application/json',
26
- operationName: "create"
27
- };
28
- return await this.httpRequest.post(url, request, headers);
23
+ const url = `${this.baseUrl}/create`;
24
+ return await this.httpRequest.post(url, request);
29
25
  }
30
26
  };
31
27
  exports.BBVARstApi = BBVARstApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a traves de invocaciones http",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -11,11 +11,7 @@ export class BBVARstApi implements IBBVARstApi {
11
11
  }
12
12
 
13
13
  async create(request: CreateRSTTransactionRequest): Promise<any> {
14
- const url = `${this.baseUrl}`;
15
- const headers = {
16
- 'Content-Type': 'application/json',
17
- operationName: "create"
18
- }
19
- return await this.httpRequest.post(url, request, headers);
14
+ const url = `${this.baseUrl}/create`;
15
+ return await this.httpRequest.post(url, request);
20
16
  }
21
17
  }