@dev-blinq/cucumber-js 1.0.32 → 1.0.34
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 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
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
|
}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.34";
|
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.34'\n"]}
|
package/package.json
CHANGED