@milaboratories/pl-client 2.11.12 → 2.11.13
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/README.md +19 -15
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Developer Guide
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Pl URL
|
|
4
|
+
|
|
5
|
+
```txt
|
|
4
6
|
http(s)://address:port/?...parameters...
|
|
5
7
|
```
|
|
6
8
|
|
|
@@ -14,19 +16,19 @@ Parameters:
|
|
|
14
16
|
|
|
15
17
|
Example:
|
|
16
18
|
|
|
17
|
-
```
|
|
19
|
+
```txt
|
|
18
20
|
http(s)://address:port/alternative-root=tmproot&request-timeout=10000
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
## How to pull and build proto files
|
|
22
24
|
|
|
23
25
|
Dependencies:
|
|
24
26
|
|
|
25
27
|
- `protoc`
|
|
26
|
-
|
|
28
|
+
- `brew install protobuf`
|
|
27
29
|
- you don't need `protoc-gen-js`, just run `npm install`
|
|
28
30
|
- `protodep`
|
|
29
|
-
|
|
31
|
+
- `go install github.com/milaboratory/protodep@v0.1.7-milab`
|
|
30
32
|
|
|
31
33
|
check that you have `${HOME}/go/bin` in `PATH`
|
|
32
34
|
- `rsync`
|
|
@@ -35,25 +37,27 @@ Dependencies:
|
|
|
35
37
|
./sync-proto.sh
|
|
36
38
|
```
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
## Running tests
|
|
39
41
|
|
|
40
42
|
Unauthenticated
|
|
41
43
|
|
|
42
|
-
```
|
|
43
|
-
PL_ADDRESS="http://127.0.0.1:6345"
|
|
44
|
+
```bash
|
|
45
|
+
PL_ADDRESS="http://127.0.0.1:6345" pnpm run test
|
|
44
46
|
```
|
|
45
47
|
|
|
46
48
|
Authenticated
|
|
47
49
|
|
|
48
|
-
```
|
|
49
|
-
PL_ADDRESS="http://127.0.0.1:6345" PL_TEST_USER="test-user" PL_TEST_PASSWORD="test-password"
|
|
50
|
+
```bash
|
|
51
|
+
PL_ADDRESS="http://127.0.0.1:6345" PL_TEST_USER="test-user" PL_TEST_PASSWORD="test-password" pnpm run test
|
|
50
52
|
```
|
|
51
53
|
|
|
52
54
|
Authentication information (token) cached in git-ignored `.test_auth.json` file.
|
|
53
55
|
|
|
54
|
-
|
|
56
|
+
## FAQ
|
|
57
|
+
|
|
58
|
+
### mapfile
|
|
59
|
+
|
|
60
|
+
Default bash version on MacOS is 3. mapfile apprears only from 4. To fix issue with `command not found: mapfile` you should install and redeclare bash:
|
|
55
61
|
|
|
56
|
-
## mapfile
|
|
57
|
-
Default bash version on MacOS is 3. mapfile apprears only from 4. To fix issue with `command not found: mapfile` you should install and redeclare bash:
|
|
58
62
|
1. install bash with brew, it will install version 5
|
|
59
|
-
2. ln -s $(brew --prefix)/bin/bash /usr/local/bin/bash
|
|
63
|
+
2. `ln -s $(brew --prefix)/bin/bash /usr/local/bin/bash`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-client",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.13",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.3.0"
|
|
6
6
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"undici": "~7.13.0",
|
|
34
34
|
"utility-types": "^3.11.0",
|
|
35
35
|
"yaml": "^2.8.0",
|
|
36
|
-
"@milaboratories/ts-helpers": "1.4.
|
|
36
|
+
"@milaboratories/ts-helpers": "1.4.7",
|
|
37
37
|
"@milaboratories/pl-http": "1.1.7"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"jest": "^29.7.0",
|
|
46
46
|
"@jest/globals": "^29.7.0",
|
|
47
47
|
"ts-jest": "^29.2.6",
|
|
48
|
+
"@milaboratories/ts-builder": "1.0.5",
|
|
48
49
|
"@milaboratories/ts-configs": "1.0.6",
|
|
49
|
-
"@milaboratories/build-configs": "1.0.8"
|
|
50
|
-
"@milaboratories/ts-builder": "1.0.5"
|
|
50
|
+
"@milaboratories/build-configs": "1.0.8"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"type-check": "ts-builder types --target node",
|