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.
@@ -83,4 +83,4 @@ package_url = "/:libraryName/package/:packageName-:version.tgz"
83
83
 
84
84
  [eitri_gpt]
85
85
  url = "https://api.eitri.tech"
86
- gpt_path = "/eitri-gpt-api/gpt"
86
+ gpt_code_path = "/eitri-gpt-api/gpt/code"
@@ -83,4 +83,4 @@ package_url = "/:libraryName/package/:packageName-:version.tgz"
83
83
 
84
84
  [eitri_gpt]
85
85
  url = "https://api.eitri.tech"
86
- gpt_path = "/eitri-gpt-api/gpt"
86
+ gpt_code_path = "/eitri-gpt-api/gpt/code"
@@ -79,4 +79,4 @@ package_url = "/:libraryName/package/:packageName-:version.tgz"
79
79
 
80
80
  [eitri_gpt]
81
81
  url = "https://api.eitri.tech"
82
- gpt_path = "/eitri-gpt-api/gpt"
82
+ gpt_code_path = "/eitri-gpt-api/gpt/code"
@@ -84,4 +84,4 @@ package_url = "/:libraryName/package/:packageName-:version.tgz"
84
84
 
85
85
  [eitri_gpt]
86
86
  url = "https://api.eitri.tech"
87
- gpt_path = "/eitri-gpt-api/gpt"
87
+ gpt_code_path = "/eitri-gpt-api/gpt/code"
@@ -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(userJwt: string, userWorkspaceId: string, testPath: string): Promise<void>
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -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
- const user = await blindGuardian.getToken()
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.getVersion}`.replace(
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
- if (response.data) {
74
- return true
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)