@regressionproof/cli 0.3.8 → 0.3.9
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/build/components/Init.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs';
|
|
3
|
-
import {
|
|
3
|
+
import { buildRegressionProofClient } from '@regressionproof/client';
|
|
4
4
|
import { Box, Text, useApp } from 'ink';
|
|
5
5
|
import BigText from 'ink-big-text';
|
|
6
6
|
import TextInput from 'ink-text-input';
|
|
@@ -18,7 +18,7 @@ class InitComponent extends React.Component {
|
|
|
18
18
|
const providedName = props.projectName;
|
|
19
19
|
const defaultName = providedName ?? getRepoNameFromGit();
|
|
20
20
|
this.configManager = new ConfigManager();
|
|
21
|
-
this.apiClient =
|
|
21
|
+
this.apiClient = buildRegressionProofClient(API_URL);
|
|
22
22
|
// Check if already registered (idempotent)
|
|
23
23
|
const existingCreds = this.configManager.loadCredentials(defaultName);
|
|
24
24
|
if (existingCreds) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process'
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs'
|
|
3
|
-
import { RegressionProofClient } from '@regressionproof/client'
|
|
3
|
+
import type { RegressionProofClient } from '@regressionproof/client'
|
|
4
|
+
import { buildRegressionProofClient } from '@regressionproof/client'
|
|
4
5
|
import { Box, Text, useApp } from 'ink'
|
|
5
6
|
import BigText from 'ink-big-text'
|
|
6
7
|
import TextInput from 'ink-text-input'
|
|
@@ -14,7 +15,7 @@ const API_URL =
|
|
|
14
15
|
|
|
15
16
|
class InitComponent extends React.Component<Props, State> {
|
|
16
17
|
private checkTimeout: NodeJS.Timeout | null = null
|
|
17
|
-
private apiClient:
|
|
18
|
+
private apiClient: RegressionProofClient
|
|
18
19
|
private configManager: ConfigManager
|
|
19
20
|
|
|
20
21
|
public constructor(props: Props) {
|
|
@@ -24,7 +25,7 @@ class InitComponent extends React.Component<Props, State> {
|
|
|
24
25
|
const defaultName = providedName ?? getRepoNameFromGit()
|
|
25
26
|
|
|
26
27
|
this.configManager = new ConfigManager()
|
|
27
|
-
this.apiClient =
|
|
28
|
+
this.apiClient = buildRegressionProofClient(API_URL)
|
|
28
29
|
|
|
29
30
|
// Check if already registered (idempotent)
|
|
30
31
|
const existingCreds = this.configManager.loadCredentials(defaultName)
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
var _a;
|
|
11
11
|
import { spawnSync } from 'node:child_process';
|
|
12
12
|
import { existsSync, readFileSync } from 'node:fs';
|
|
13
|
-
import {
|
|
13
|
+
import { buildRegressionProofClient } from '@regressionproof/client';
|
|
14
14
|
import { Box, Text, useApp } from 'ink';
|
|
15
15
|
import BigText from 'ink-big-text';
|
|
16
16
|
import TextInput from 'ink-text-input';
|
|
@@ -37,7 +37,7 @@ class InitComponent extends React.Component {
|
|
|
37
37
|
const providedName = props.projectName;
|
|
38
38
|
const defaultName = providedName !== null && providedName !== void 0 ? providedName : getRepoNameFromGit();
|
|
39
39
|
this.configManager = new ConfigManager();
|
|
40
|
-
this.apiClient =
|
|
40
|
+
this.apiClient = buildRegressionProofClient(API_URL);
|
|
41
41
|
// Check if already registered (idempotent)
|
|
42
42
|
const existingCreds = this.configManager.loadCredentials(defaultName);
|
|
43
43
|
if (existingCreds) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regressionproof/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"watch.tsc": "tsc -w"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@regressionproof/client": "^0.3.
|
|
41
|
+
"@regressionproof/client": "^0.3.9",
|
|
42
42
|
"dotenv": "^17.2.3",
|
|
43
43
|
"ink": "^5.1.0",
|
|
44
44
|
"ink-big-text": "^2.0.0",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "c89b77e22b9be85c3fa66c8669b4146c56aea3d0"
|
|
88
88
|
}
|