@dev-blinq/cucumber-js 1.0.13-stage → 1.0.14-stage

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.
@@ -1,3 +1,6 @@
1
+ /* eslint-disable @typescript-eslint/no-var-requires */
2
+ /* eslint-disable no-console */
3
+ /* eslint-disable no-undef */
1
4
  const { argv } = require('node:process')
2
5
  const fs = require('fs')
3
6
  const path = require('path')
@@ -14,6 +17,8 @@ const getSSoUrl = () => {
14
17
  return 'http://localhost:5000/api/auth'
15
18
  case 'dev':
16
19
  return 'https://dev.api.blinq.io/api/auth'
20
+ case "stage":
21
+ return 'https://stage.api.blinq.io/api/auth'
17
22
  default:
18
23
  return 'https://api.blinq.io/api/auth'
19
24
  }
@@ -112,6 +117,11 @@ const downloadAndInstall = async (extractPath, token) => {
112
117
  proxy: false,
113
118
  })
114
119
  if (response.status !== 200) {
120
+ console.error('Error: Unable to fetch project')
121
+ process.exit(1)
122
+ }
123
+ const data = response.data
124
+ if (!data.status) {
115
125
  console.error('Error: Invalid access key')
116
126
  process.exit(1)
117
127
  }
@@ -130,6 +140,11 @@ const downloadAndInstall = async (extractPath, token) => {
130
140
  },
131
141
  })
132
142
 
143
+ if (res.status !== 200) {
144
+ console.error('Error: Unable to fetch workspace')
145
+ process.exit(1)
146
+ }
147
+
133
148
  const zip = await JSZip.loadAsync(res.data)
134
149
  for (const filename of Object.keys(zip.files)) {
135
150
  const fileData = zip.files[filename]
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.0.13-stage";
1
+ export declare const version = "1.0.14-stage";
package/lib/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = '1.0.13-stage';
5
+ exports.version = '1.0.14-stage';
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,cAAc,CAAA","sourcesContent":["// Generated by genversion.\nexport const version = '1.0.13-stage'\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,cAAc,CAAA","sourcesContent":["// Generated by genversion.\nexport const version = '1.0.14-stage'\n"]}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "gherkin",
9
9
  "tests"
10
10
  ],
11
- "version": "1.0.13-stage",
11
+ "version": "1.0.14-stage",
12
12
  "homepage": "https://github.com/blinq-io/cucumber-js",
13
13
  "author": "blinq.io",
14
14
  "contributors": [