@itentialopensource/adapter-bitbucket 0.3.6 → 0.3.7

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/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
1
 
2
+ ## 0.3.7 [04-18-2022]
3
+
4
+ * fix 2 calls
5
+
6
+ See merge request itentialopensource/adapters/devops-netops/adapter-bitbucket!9
7
+
8
+ ---
9
+
2
10
  ## 0.3.6 [03-12-2022]
3
11
 
4
12
  * Updated sample properties
package/adapter.js CHANGED
@@ -2251,12 +2251,12 @@ surrounded by curly-braces, for example: `{repository UUID}`.
2251
2251
  const bodyVars = body;
2252
2252
  // 'MIME-Version': 1.0,
2253
2253
  // 'Content-Transfer-Encoding': '7bit',
2254
- const addlHeaders = {
2255
- 'Content-Type': 'application/x-www-form-urlencoded',
2256
- 'Content-ID': filename,
2257
- 'Content-Disposition': `attachment; filename="${filename}"`
2258
- };
2259
-
2254
+ const addlHeaders = {};
2255
+ if (filename) {
2256
+ addlHeaders['Content-Type'] = 'application/x-www-form-urlencoded';
2257
+ addlHeaders['Content-ID'] = filename;
2258
+ addlHeaders['Content-Disposition'] = `attachment; filename="${filename}"`;
2259
+ }
2260
2260
  if (attribute) {
2261
2261
  addlHeaders['Content-Disposition'] += `; x-attributes:${attribute}`;
2262
2262
  }
@@ -13683,7 +13683,7 @@ This endpoint supports (and encourages!) the use of [HTTP Range requests](https:
13683
13683
  /* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
13684
13684
  const queryParamsAvailable = {};
13685
13685
  const queryParams = {};
13686
- const pathVars = [username, name, repoSlug];
13686
+ const pathVars = [username, repoSlug, name];
13687
13687
  const bodyVars = {};
13688
13688
 
13689
13689
  // loop in template. long callback arg name to avoid identifier conflicts
@@ -220,7 +220,7 @@
220
220
  "timeout": 0,
221
221
  "sendEmpty": false,
222
222
  "sendGetBody": false,
223
- "requestDatatype": "PLAIN",
223
+ "requestDatatype": "FORM",
224
224
  "responseDatatype": "PLAIN",
225
225
  "headers": {},
226
226
  "responseObjects": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-bitbucket",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "This adapter integrates with system described as: bitbucket.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
Binary file