qase-javascript-commons 2.3.1 → 2.3.2

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,3 +1,9 @@
1
+ # qase-javascript-commons@2.3.2
2
+
3
+ ## What's new
4
+
5
+ Fixed an issue with attachments content type.
6
+
1
7
  # qase-javascript-commons@2.3.0
2
8
 
3
9
  ## What's new
@@ -119,7 +119,7 @@ class ClientV1 {
119
119
  return {
120
120
  name: attachment.file_name,
121
121
  value: typeof attachment.content === 'string'
122
- ? Buffer.from(attachment.content)
122
+ ? Buffer.from(attachment.content, attachment.content.match(/^[A-Za-z0-9+/=]+$/) ? 'base64' : undefined)
123
123
  : attachment.content,
124
124
  };
125
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qase-javascript-commons",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",