@intuned/runtime-dev 1.0.6-cli.8.2.7 → 1.0.6-cli.8.2.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.
@@ -150,13 +150,13 @@ async function deployProject(projectName, auth) {
150
150
  const {
151
151
  status,
152
152
  message,
153
- result
153
+ projectId
154
154
  } = await checkIntunedProjectDeployStatus(workspaceId, projectName, apiKey);
155
155
  if (status === "completed" || status === "failed" || status === "not_found") {
156
156
  clearInterval(checkInterval);
157
157
  resolve(status === "completed" ? {
158
158
  deployDone: true,
159
- projectId: result.projectId
159
+ projectId
160
160
  } : {
161
161
  deployDone: false,
162
162
  projectId: "",
@@ -308,11 +308,10 @@ const checkIntunedProjectDeployStatus = async (workspaceId, projectName, apiKey)
308
308
  }
309
309
  const data = await response.json();
310
310
  if (data.status) {
311
- console.log("DATA:", data);
312
311
  return {
313
312
  status: data.status,
314
313
  message: data.message,
315
- result: data.result
314
+ projectId: data.projectId
316
315
  };
317
316
  }
318
317
  return {
@@ -13,7 +13,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
13
13
  async function getAuthCredentials(options) {
14
14
  const workspaceId = options.workspaceId || (await getSettingIntunedJSON("workspaceId"));
15
15
  const apiKey = options.apiKey || process.env.INTUNED_API_KEY;
16
- if (!workspaceId || !workspaceId) {
16
+ if (!workspaceId || !apiKey) {
17
17
  throw new Error("Authentication details are required. Please provide them via command line options(api key, workspace id), intuned.json(workspace id) or environment variables(api key).");
18
18
  }
19
19
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intuned/runtime-dev",
3
- "version": "1.0.6-cli.8.2.7",
3
+ "version": "1.0.6-cli.8.2.9",
4
4
  "description": "Intuned runtime",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",