@kolatts/pncli 1.14.0 → 1.14.1
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/dist/cli.js +1 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4444,11 +4444,10 @@ var AdoWorkClient = class {
|
|
|
4444
4444
|
async uploadAttachment(collection, workItemId, filePath, comment) {
|
|
4445
4445
|
const fileContent = readFileSync3(filePath);
|
|
4446
4446
|
const fileName = basename2(filePath);
|
|
4447
|
-
const mimeType = guessMimeType(filePath);
|
|
4448
4447
|
const attachment = await this.http.adoUpload(
|
|
4449
4448
|
`/${encodeURIComponent(collection)}/_apis/wit/attachments?fileName=${encodeURIComponent(fileName)}&api-version=${API6}`,
|
|
4450
4449
|
fileContent,
|
|
4451
|
-
|
|
4450
|
+
"application/octet-stream"
|
|
4452
4451
|
);
|
|
4453
4452
|
const relationValue = {
|
|
4454
4453
|
rel: "AttachedFile",
|