@intuned/runtime-dev 1.3.8-deploy.2 → 1.3.8-deploy.4

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.
@@ -39,7 +39,7 @@ async function runDeployProject(projectName, auth) {
39
39
  headers,
40
40
  method: "POST",
41
41
  body: JSON.stringify({
42
- firstRun: firstRun
42
+ firstRun
43
43
  })
44
44
  });
45
45
  if (!response.ok) {
@@ -169,7 +169,7 @@ async function handleFirstRunExperience() {
169
169
  }
170
170
  return {
171
171
  testAuthSessionInput,
172
- defaultJobInput: shouldPromptForDefaultJob ? getFirstRunExperienceDefaultJobParameters(settings["metadata"].defaultJobInput) : undefined
172
+ defaultJobInput: shouldPromptForDefaultJob ? await getFirstRunExperienceDefaultJobParameters(settings["metadata"].defaultJobInput) : undefined
173
173
  };
174
174
  }
175
175
  async function getFirstRunExperienceTestAuthSessionParameters({
@@ -186,7 +186,9 @@ async function getFirstRunExperienceTestAuthSessionParameters({
186
186
  (0, _terminal.terminal)(message, authSessionId);
187
187
  const answer = await _terminal.terminal.yesOrNo({
188
188
  yes: ["y", "ENTER"],
189
- no: ["n"]
189
+ no: ["n"],
190
+ echoYes: "^g^+Yes^:",
191
+ echoNo: "^r^+No^:"
190
192
  }).promise;
191
193
  (0, _terminal.terminal)("\n");
192
194
  if (answer) {
@@ -198,13 +200,16 @@ async function getFirstRunExperienceTestAuthSessionParameters({
198
200
  async function getFirstRunExperienceDefaultJobParameters({
199
201
  defaultJobInput
200
202
  }) {
201
- (0, _terminal.terminal)("\n^cCreate a default job?^");
203
+ (0, _terminal.terminal)("\n^cCreate a default job?^:");
202
204
  const answer = await _terminal.terminal.yesOrNo({
203
205
  yes: ["y", "ENTER"],
204
- no: ["n"]
206
+ no: ["n"],
207
+ echoYes: "^g^+Yes^:",
208
+ echoNo: "^r^+No^:"
205
209
  }).promise;
206
210
  (0, _terminal.terminal)("\n");
207
211
  if (answer) {
212
+ console.log("defaultJobInput", defaultJobInput);
208
213
  return defaultJobInput;
209
214
  }
210
215
  }
@@ -23,5 +23,5 @@ async function getAuthCredentials(options) {
23
23
  };
24
24
  }
25
25
  function getBaseUrl() {
26
- return process.env[_constants.API_BASE_URL_ENV_VAR_KEY] || process.env.INTUNED_API_DOMAIN || `https://app.intuned.io`;
26
+ return new URL(process.env[_constants.API_BASE_URL_ENV_VAR_KEY] || process.env.INTUNED_API_DOMAIN || `https://app.intuned.io`).origin;
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.3.8-deploy.2",
3
+ "version": "1.3.8-deploy.4",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",