@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.
- package/bin/download-install.js +15 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
package/bin/download-install.js
CHANGED
|
@@ -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.
|
|
1
|
+
export declare const version = "1.0.14-stage";
|
package/lib/version.js
CHANGED
package/lib/version.js.map
CHANGED
|
@@ -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.
|
|
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"]}
|