@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.
@@ -39,7 +39,7 @@ for (let i = 2; i < argv.length; i++) {
39
39
  process.exit(1)
40
40
  }
41
41
  break
42
- case '--extractPath':
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
- console.error('Invalid directory path')
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.data.status !== true){
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.32";
1
+ export declare const version = "1.0.35";
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.32';
5
+ exports.version = '1.0.35';
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,QAAQ,CAAA","sourcesContent":["// Generated by genversion.\nexport const version = '1.0.32'\n"]}
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"]}
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "gherkin",
9
9
  "tests"
10
10
  ],
11
- "version": "1.0.32",
11
+ "version": "1.0.35",
12
12
  "homepage": "https://github.com/blinq-io/cucumber-js",
13
13
  "author": "blinq.io",
14
14
  "contributors": [