@milaboratories/pl-client 2.4.18 → 2.4.20
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/dist/core/client.d.ts +1 -1
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/ll_client.d.ts +1 -1
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/core/client.ts +2 -2
- package/src/core/config.test.ts +9 -1
- package/src/core/ll_client.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-client",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.20",
|
|
4
4
|
"description": "New TS/JS client for Platform API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./src/**/*"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@grpc/grpc-js": "^1.
|
|
20
|
+
"@grpc/grpc-js": "^1.12.0",
|
|
21
21
|
"@protobuf-ts/grpc-transport": "^2.9.4",
|
|
22
22
|
"@protobuf-ts/runtime": "^2.9.4",
|
|
23
23
|
"@protobuf-ts/runtime-rpc": "^2.9.4",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"undici": "^6.19.8",
|
|
30
30
|
"utility-types": "^3.11.0",
|
|
31
31
|
"yaml": "^2.5.1",
|
|
32
|
-
"@milaboratories/ts-helpers": "^1.0.
|
|
32
|
+
"@milaboratories/ts-helpers": "^1.0.30"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "~5.5.4",
|
|
36
36
|
"vite": "^5.4.8",
|
|
37
|
-
"@types/node": "~20.16.
|
|
37
|
+
"@types/node": "~20.16.10",
|
|
38
38
|
"@protobuf-ts/plugin": "^2.9.4",
|
|
39
39
|
"@types/http-proxy": "^1.17.15",
|
|
40
40
|
"@types/jest": "^29.5.13",
|
package/src/core/client.ts
CHANGED
package/src/core/config.test.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { plAddressToConfig } from './config';
|
|
1
|
+
import { DEFAULT_TX_TIMEOUT, plAddressToConfig } from './config';
|
|
2
2
|
|
|
3
3
|
test('config form url no auth', () => {
|
|
4
4
|
const conf = plAddressToConfig('http://127.0.0.1:6345');
|
|
@@ -16,4 +16,12 @@ test('config form url with auth and special symbols', () => {
|
|
|
16
16
|
const conf = plAddressToConfig('http://user1:password232$@127.0.0.1:6345');
|
|
17
17
|
expect(conf.user).toEqual('user1');
|
|
18
18
|
expect(conf.password).toEqual('password232$');
|
|
19
|
+
expect(conf.defaultTransactionTimeout).toEqual(DEFAULT_TX_TIMEOUT);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
test('config form url with auth and special symbols and request timeout', () => {
|
|
23
|
+
const conf = plAddressToConfig('http://user1:password232$@127.0.0.1:6345/?tx-timeout=11341');
|
|
24
|
+
expect(conf.user).toEqual('user1');
|
|
25
|
+
expect(conf.password).toEqual('password232$');
|
|
26
|
+
expect(conf.defaultTransactionTimeout).toEqual(11341);
|
|
19
27
|
});
|