@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 +8 -0
- package/adapter.js +7 -7
- package/entities/Repositories/action.json +1 -1
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
package/CHANGELOG.md
CHANGED
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
|
-
|
|
2256
|
-
'Content-
|
|
2257
|
-
'Content-
|
|
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,
|
|
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
|
package/package.json
CHANGED
|
Binary file
|