@translated/lara 1.3.3 → 1.3.4

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,8 +20,8 @@ export declare abstract class LaraClient {
20
20
  setExtraHeader(name: string, value: string): void;
21
21
  get<T>(path: string, params?: Record<string, any>): Promise<T>;
22
22
  delete<T>(path: string, params?: Record<string, any>): Promise<T>;
23
- post<T>(path: string, body?: Record<string, any>, files?: Record<string, string>): Promise<T>;
24
- put<T>(path: string, body?: Record<string, any>, files?: Record<string, string>): Promise<T>;
23
+ post<T>(path: string, body?: Record<string, any>, files?: Record<string, any>): Promise<T>;
24
+ put<T>(path: string, body?: Record<string, any>, files?: Record<string, any>): Promise<T>;
25
25
  protected request<T>(method: HttpMethod, path: string, body?: Record<string, any>, files?: Record<string, any>): Promise<T>;
26
26
  private sign;
27
27
  protected abstract send(path: string, headers: Record<string, string>, body?: Record<string, any>): Promise<ClientResponse>;
@@ -70,8 +70,11 @@ class NodeLaraClient extends client_1.LaraClient {
70
70
  }
71
71
  else if (requestBody) {
72
72
  req.write(requestBody);
73
+ req.end();
74
+ }
75
+ else {
76
+ req.end();
73
77
  }
74
- req.end();
75
78
  });
76
79
  }
77
80
  }
@@ -1 +1 @@
1
- export declare const version = "1.3.3";
1
+ export declare const version = "1.3.4";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = "1.3.3";
4
+ exports.version = "1.3.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@translated/lara",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "engines": {