eitri-cli 1.30.0 → 1.30.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/eitri-cli-v2/config/config.dev.toml +1 -1
- package/eitri-cli-v2/config/config.loc.toml +1 -1
- package/eitri-cli-v2/config/config.prod.toml +1 -1
- package/eitri-cli-v2/config/config.test.toml +1 -1
- package/eitri-cli-v2/eitri-cli-v2.darwin-arm64.node +0 -0
- package/eitri-cli-v2/eitri-cli-v2.darwin-x64.node +0 -0
- package/eitri-cli-v2/eitri-cli-v2.linux-x64-gnu.node +0 -0
- package/eitri-cli-v2/eitri-cli-v2.win32-x64-msvc.node +0 -0
- package/eitri-cli-v2/index.d.ts +1 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/src/cmd/runTests.js +1 -4
- package/src/service/LibsService.js +3 -7
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/eitri-cli-v2/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface EitriLibsArguments {
|
|
|
19
19
|
luminus?: boolean
|
|
20
20
|
}
|
|
21
21
|
export declare function publish(environment: string, message: string): Promise<void>
|
|
22
|
-
export declare function runTest(
|
|
22
|
+
export declare function runTest(testPath: string): Promise<void>
|
|
23
23
|
export declare function eitriLibs(eitriLibsArgs: EitriLibsArguments): Promise<void>
|
|
24
24
|
export declare function doctor(): Promise<void>
|
|
25
25
|
export declare function start(args: StartArguments): Promise<void>
|
package/index.js
CHANGED
|
@@ -214,6 +214,7 @@ const run = async () => {
|
|
|
214
214
|
program
|
|
215
215
|
.command("test")
|
|
216
216
|
.description("Executa os testes do eitri-app.")
|
|
217
|
+
.option("-v, --verbose", "Exibe mais logs")
|
|
217
218
|
.option(
|
|
218
219
|
"-p --path <test_path>",
|
|
219
220
|
"Define o path do arquivo de teste que será executado."
|
package/package.json
CHANGED
package/src/cmd/runTests.js
CHANGED
|
@@ -119,10 +119,7 @@ module.exports = async function runTests(args) {
|
|
|
119
119
|
console.log("Eitri-app carregado e pronto para testes!!\n");
|
|
120
120
|
watcher.start()
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
const userJwt = user.accessToken
|
|
124
|
-
const userWorkspaceId = userWorkspace.id
|
|
125
|
-
await eitriCLIV2.runTest(userJwt, userWorkspaceId, testPath)
|
|
122
|
+
await eitriCLIV2.runTest(testPath)
|
|
126
123
|
|
|
127
124
|
TrackingEitriAnalytics.sendEvent({
|
|
128
125
|
eventName: COMMAND_NAME,
|
|
@@ -65,14 +65,10 @@ class LibsService {
|
|
|
65
65
|
|
|
66
66
|
static async validCommonsVersion(commonsVersion) {
|
|
67
67
|
try {
|
|
68
|
-
const fullUrl = `${CDN_83io_LIBRARY.url}${CDN_83io_LIBRARY.commons.
|
|
69
|
-
/\$VERSION_NUMBER/g,
|
|
70
|
-
commonsVersion,
|
|
71
|
-
)
|
|
68
|
+
const fullUrl = `${CDN_83io_LIBRARY.url}${CDN_83io_LIBRARY.commons.versions}`
|
|
72
69
|
const response = await axios.get(fullUrl)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
70
|
+
const data = response.data;
|
|
71
|
+
return data.versions.includes(commonsVersion)
|
|
76
72
|
} catch (error) {
|
|
77
73
|
const errorMessage = error?.message || "Erro na obtenção de versões do Bifrost"
|
|
78
74
|
this.sendErrorToAnalytics("getBifrostVersions", errorMessage)
|