@dev-blinq/cucumber-js 1.0.32 → 1.0.35
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 +3 -8
- 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
|
@@ -39,7 +39,7 @@ for (let i = 2; i < argv.length; i++) {
|
|
|
39
39
|
process.exit(1)
|
|
40
40
|
}
|
|
41
41
|
break
|
|
42
|
-
case '--
|
|
42
|
+
case '--extractDir':
|
|
43
43
|
if (i + 1 < argv.length && !argv[i + 1].startsWith('--')) {
|
|
44
44
|
extractPath = argv[++i]
|
|
45
45
|
} else {
|
|
@@ -79,15 +79,14 @@ const ssoUrl = getSSoUrl()
|
|
|
79
79
|
|
|
80
80
|
const downloadAndInstall = async (extractPath, token) => {
|
|
81
81
|
if (!dirExists(extractPath)) {
|
|
82
|
-
|
|
83
|
-
process.exit(1)
|
|
82
|
+
fs.mkdirSync(extractPath, { recursive: true })
|
|
84
83
|
}
|
|
85
84
|
try {
|
|
86
85
|
const accessKeyUrl = `${ssoUrl}/getProjectByAccessKey`
|
|
87
86
|
const response = await axios.post(accessKeyUrl, {
|
|
88
87
|
access_key: token,
|
|
89
88
|
})
|
|
90
|
-
if(response.
|
|
89
|
+
if(response.status !== 200){
|
|
91
90
|
console.error('Error: Invalid access key')
|
|
92
91
|
process.exit(1)
|
|
93
92
|
}
|
|
@@ -104,10 +103,6 @@ const downloadAndInstall = async (extractPath, token) => {
|
|
|
104
103
|
'Response-Type': 'arraybuffer',
|
|
105
104
|
},
|
|
106
105
|
})
|
|
107
|
-
if(res.data.status !== true){
|
|
108
|
-
console.error('Error: Download failed')
|
|
109
|
-
process.exit(1)
|
|
110
|
-
}
|
|
111
106
|
|
|
112
107
|
const zip = await JSZip.loadAsync(res.data)
|
|
113
108
|
for (const filename of Object.keys(zip.files)) {
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.35";
|
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,QAAQ,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,QAAQ,CAAA","sourcesContent":["// Generated by genversion.\nexport const version = '1.0.35'\n"]}
|