@basis-theory-labs/cli 1.3.0 → 1.3.1
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 +3 -3
- package/dist/logs/parse.d.ts +1 -1
- package/dist/logs/parse.js +1 -1
- package/dist/logs/server.js +10 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ $ npm install -g @basis-theory-labs/cli
|
|
|
19
19
|
$ bt COMMAND
|
|
20
20
|
running command...
|
|
21
21
|
$ bt (--version)
|
|
22
|
-
@basis-theory-labs/cli/1.3.
|
|
22
|
+
@basis-theory-labs/cli/1.3.1 linux-x64 node-v18.16.1
|
|
23
23
|
$ bt --help [COMMAND]
|
|
24
24
|
USAGE
|
|
25
25
|
$ bt COMMAND
|
|
@@ -54,7 +54,7 @@ EXAMPLES
|
|
|
54
54
|
$ bt proxies
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
_See code: [dist/commands/proxies/index.ts](https://github.com/Basis-Theory-Labs/basistheory-cli/blob/v1.3.
|
|
57
|
+
_See code: [dist/commands/proxies/index.ts](https://github.com/Basis-Theory-Labs/basistheory-cli/blob/v1.3.1/dist/commands/proxies/index.ts)_
|
|
58
58
|
|
|
59
59
|
## `bt proxies create`
|
|
60
60
|
|
|
@@ -163,7 +163,7 @@ EXAMPLES
|
|
|
163
163
|
$ bt reactors
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
_See code: [dist/commands/reactors/index.ts](https://github.com/Basis-Theory-Labs/basistheory-cli/blob/v1.3.
|
|
166
|
+
_See code: [dist/commands/reactors/index.ts](https://github.com/Basis-Theory-Labs/basistheory-cli/blob/v1.3.1/dist/commands/reactors/index.ts)_
|
|
167
167
|
|
|
168
168
|
## `bt reactors logs [ID]`
|
|
169
169
|
|
package/dist/logs/parse.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ interface LogEvent {
|
|
|
6
6
|
level: 'INFO' | 'WARN' | 'ERROR';
|
|
7
7
|
time: number;
|
|
8
8
|
}
|
|
9
|
-
declare const parseLogEvent: (logger: pino.Logger
|
|
9
|
+
declare const parseLogEvent: (logger: pino.Logger, event: LogEvent) => Promise<void>;
|
|
10
10
|
export { parseLogEvent };
|
package/dist/logs/parse.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.parseLogEvent = void 0;
|
|
4
4
|
const debug = require('debug')('logs:parse');
|
|
5
|
-
const parseLogEvent = (logger
|
|
5
|
+
const parseLogEvent = async (logger, event) => {
|
|
6
6
|
debug(event);
|
|
7
7
|
const { deserializeError } = await import('serialize-error');
|
|
8
8
|
const [arg1, arg2, ...args] = event.args.map((arg) => {
|
package/dist/logs/server.js
CHANGED
|
@@ -39,7 +39,16 @@ const createLogServer = async (port) => {
|
|
|
39
39
|
const io = new socket_io_1.Server(server);
|
|
40
40
|
io.on('connection', (client) => {
|
|
41
41
|
debug(`socket client connected: ${client.handshake.address}`);
|
|
42
|
-
client.on('log', (
|
|
42
|
+
client.on('log', (data, callback) => {
|
|
43
|
+
debug('received "log" event');
|
|
44
|
+
if (typeof callback === 'function') {
|
|
45
|
+
debug('ack expected');
|
|
46
|
+
// eslint-disable-next-line node/callback-return,node/no-callback-literal
|
|
47
|
+
callback('ack');
|
|
48
|
+
debug('ack sent');
|
|
49
|
+
}
|
|
50
|
+
(0, parse_1.parseLogEvent)(logger, data);
|
|
51
|
+
});
|
|
43
52
|
client.on('disconnect', (reason) => {
|
|
44
53
|
debug(`socket client disconnected ${client.handshake.address}: ${reason}`);
|
|
45
54
|
});
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory-labs/cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Basis Theory CLI tool",
|
|
5
5
|
"author": "Davi Aquino @djejaquino",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"pino": "^8.14.1",
|
|
32
32
|
"pino-pretty": "^10.0.0",
|
|
33
33
|
"serialize-error": "^11.0.0",
|
|
34
|
-
"socket.io": "^4.
|
|
34
|
+
"socket.io": "^4.7.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@basis-theory/eslint-config": "^1.2.0",
|