@translated/lara 1.3.2 → 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.
- package/lib/net/client.d.ts +2 -2
- package/lib/net/index.js +1 -1
- package/lib/net/node-client.js +4 -1
- package/lib/sdk-version.d.ts +1 -1
- package/lib/sdk-version.js +1 -1
- package/package.json +1 -1
package/lib/net/client.d.ts
CHANGED
|
@@ -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,
|
|
24
|
-
put<T>(path: string, body?: Record<string, any>, files?: Record<string,
|
|
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>;
|
package/lib/net/index.js
CHANGED
|
@@ -5,7 +5,7 @@ const browser_client_1 = require("./browser-client");
|
|
|
5
5
|
const node_client_1 = require("./node-client");
|
|
6
6
|
var client_1 = require("./client");
|
|
7
7
|
Object.defineProperty(exports, "LaraClient", { enumerable: true, get: function () { return client_1.LaraClient; } });
|
|
8
|
-
const DEFAULT_BASE_URL = "https://api.
|
|
8
|
+
const DEFAULT_BASE_URL = "https://api.laratranslate.com";
|
|
9
9
|
function create(accessKeyId, accessKeySecret, baseUrl) {
|
|
10
10
|
const url = new URL(baseUrl || DEFAULT_BASE_URL);
|
|
11
11
|
if (url.protocol !== "https:" && url.protocol !== "http:")
|
package/lib/net/node-client.js
CHANGED
package/lib/sdk-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.3.
|
|
1
|
+
export declare const version = "1.3.4";
|
package/lib/sdk-version.js
CHANGED