@basis-theory-labs/cli 1.5.1 → 1.5.2
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/base.d.ts +3 -2
- package/dist/base.js +7 -0
- package/dist/commands/proxies/index.js +1 -5
- package/dist/commands/reactors/index.js +1 -5
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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.5.
|
|
22
|
+
@basis-theory-labs/cli/1.5.2 linux-x64 node-v18.16.1
|
|
23
23
|
$ bt --help [COMMAND]
|
|
24
24
|
USAGE
|
|
25
25
|
$ bt COMMAND
|
|
@@ -55,7 +55,7 @@ EXAMPLES
|
|
|
55
55
|
$ bt proxies
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
_See code: [dist/commands/proxies/index.ts](https://github.com/Basis-Theory-Labs/basistheory-cli/blob/v1.5.
|
|
58
|
+
_See code: [dist/commands/proxies/index.ts](https://github.com/Basis-Theory-Labs/basistheory-cli/blob/v1.5.2/dist/commands/proxies/index.ts)_
|
|
59
59
|
|
|
60
60
|
## `bt proxies create`
|
|
61
61
|
|
|
@@ -187,7 +187,7 @@ EXAMPLES
|
|
|
187
187
|
$ bt reactors
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
-
_See code: [dist/commands/reactors/index.ts](https://github.com/Basis-Theory-Labs/basistheory-cli/blob/v1.5.
|
|
190
|
+
_See code: [dist/commands/reactors/index.ts](https://github.com/Basis-Theory-Labs/basistheory-cli/blob/v1.5.2/dist/commands/reactors/index.ts)_
|
|
191
191
|
|
|
192
192
|
## `bt reactors logs [ID]`
|
|
193
193
|
|
package/dist/base.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ import { Command } from '@oclif/core';
|
|
|
3
3
|
import type { ArgOutput, FlagOutput, Input, ParserOutput } from '@oclif/core/lib/interfaces/parser';
|
|
4
4
|
export declare abstract class BaseCommand extends Command {
|
|
5
5
|
static baseFlags: {
|
|
6
|
-
'management-key': import("@oclif/core/lib/interfaces
|
|
7
|
-
'api-base-url': import("@oclif/core/lib/interfaces
|
|
6
|
+
'management-key': import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
|
+
'api-base-url': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
8
|
};
|
|
9
9
|
protected parse<F extends FlagOutput, B extends FlagOutput, A extends ArgOutput>(options?: Input<F, B, A>, argv?: string[]): Promise<ParserOutput<F, B, A> & {
|
|
10
10
|
bt: IBasisTheory;
|
|
11
11
|
}>;
|
|
12
|
+
protected catch(err: unknown): Promise<unknown>;
|
|
12
13
|
}
|
package/dist/base.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseCommand = void 0;
|
|
4
4
|
const basis_theory_js_1 = require("@basis-theory/basis-theory-js");
|
|
5
|
+
const common_1 = require("@basis-theory/basis-theory-js/common");
|
|
5
6
|
const core_1 = require("@oclif/core");
|
|
6
7
|
class BaseCommand extends core_1.Command {
|
|
7
8
|
async parse(options, argv) {
|
|
@@ -24,6 +25,12 @@ class BaseCommand extends core_1.Command {
|
|
|
24
25
|
bt,
|
|
25
26
|
};
|
|
26
27
|
}
|
|
28
|
+
catch(err) {
|
|
29
|
+
if (err instanceof common_1.BasisTheoryApiError) {
|
|
30
|
+
this.logJson(err.data);
|
|
31
|
+
}
|
|
32
|
+
return super.catch(err);
|
|
33
|
+
}
|
|
27
34
|
}
|
|
28
35
|
exports.BaseCommand = BaseCommand;
|
|
29
36
|
BaseCommand.baseFlags = {
|
|
@@ -28,14 +28,10 @@ class Proxies extends base_1.BaseCommand {
|
|
|
28
28
|
name: 'Delete',
|
|
29
29
|
value: 'delete',
|
|
30
30
|
},
|
|
31
|
-
{
|
|
32
|
-
name: 'Exit',
|
|
33
|
-
value: 'exit',
|
|
34
|
-
},
|
|
35
31
|
],
|
|
36
32
|
});
|
|
37
33
|
if (action === 'details') {
|
|
38
|
-
this.
|
|
34
|
+
this.logJson(proxy);
|
|
39
35
|
return undefined;
|
|
40
36
|
}
|
|
41
37
|
if (action === 'logs') {
|
|
@@ -24,14 +24,10 @@ class Reactors extends base_1.BaseCommand {
|
|
|
24
24
|
value: 'logs',
|
|
25
25
|
description: 'See Reactor real-time logs',
|
|
26
26
|
},
|
|
27
|
-
{
|
|
28
|
-
name: 'Exit',
|
|
29
|
-
value: 'exit',
|
|
30
|
-
},
|
|
31
27
|
],
|
|
32
28
|
});
|
|
33
29
|
if (action === 'details') {
|
|
34
|
-
this.
|
|
30
|
+
this.logJson(reactor);
|
|
35
31
|
return undefined;
|
|
36
32
|
}
|
|
37
33
|
if (action === 'logs') {
|
package/oclif.manifest.json
CHANGED