Skip to content

Commit c0aefc4

Browse files
2.0.4 (#109)
* endpoint types changed * type definition changed * version 2.0.1 * changelog added * issueTypeIds fixed * models types changed * - `Buffer.from` replaced to raw JS code in Basic authorization - Telemetry config type fixed - `noCheckAtlassianToken` flag added to config - Typing improves * tests added * The principles of running linter have been changed * 2.0.2 RC * API updates * Add attachment API fixed (#106) * Error with attachment fixed * Max one github action in parallel * GitHub actions: create .env file * Action syntax fix * linter fixes * 2.0.3 * .npmignore fixed * addAttachment capability for browsers
1 parent 4aca2a5 commit c0aefc4

File tree

7 files changed

+121
-77
lines changed

7 files changed

+121
-77
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ coverage
1111
yarn.lock
1212
yarn-error.log
1313
tsconfig.tests.json
14+
.env
15+
.env.example

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Jira.js changelog
22

3+
### 2.0.4
4+
5+
- addAttachment fixed for browsers
6+
37
### 2.0.3
48

59
- Improved typing

package-lock.json

Lines changed: 104 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira.js",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"main": "out/index.js",
55
"types": "out/index.d.ts",
66
"repository": "https://github.com/MrRefactoring/jira.js.git",
@@ -41,21 +41,21 @@
4141
},
4242
"devDependencies": {
4343
"@types/express": "4.17.11",
44-
"@types/jest": "^26.0.21",
45-
"@types/node": "^14.14.35",
44+
"@types/jest": "^26.0.22",
45+
"@types/node": "^14.14.37",
4646
"@types/oauth": "^0.9.1",
4747
"@types/sinon": "^9.0.11",
48-
"@typescript-eslint/eslint-plugin": "^4.19.0",
49-
"@typescript-eslint/parser": "^4.19.0",
48+
"@typescript-eslint/eslint-plugin": "^4.20.0",
49+
"@typescript-eslint/parser": "^4.20.0",
5050
"dotenv": "^8.2.0",
51-
"eslint": "^7.22.0",
51+
"eslint": "^7.23.0",
5252
"eslint-config-airbnb-typescript": "^12.3.1",
5353
"eslint-import-resolver-typescript": "^2.4.0",
5454
"eslint-plugin-import": "^2.22.1",
5555
"jest": "^26.6.3",
5656
"sinon": "^10.0.0",
5757
"ts-jest": "^26.5.4",
58-
"typedoc": "^0.20.33",
58+
"typedoc": "^0.20.34",
5959
"typescript": "^4.2.3"
6060
},
6161
"dependencies": {

src/clients/baseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export class BaseClient implements Client {
8484
bodyExists: !!requestConfig.data,
8585
callbackUsed: !!callback,
8686
headersExists: !!requestConfig.headers,
87-
libVersion: '2.0.3',
88-
libVersionHash: 'de05930dd46a984ca32aad9feac718e8',
87+
libVersion: '2.0.4',
88+
libVersionHash: 'ae7751b937849ebaab9d7c5000532148',
8989
methodName: telemetryData?.methodName || 'sendRequest',
9090
onErrorMiddlewareUsed: !!this.config.middlewares?.onError,
9191
onResponseMiddlewareUsed: !!this.config.middlewares?.onResponse,

src/version2/issueAttachments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class IssueAttachments {
202202
attachments.forEach((attachment) => formData.append(
203203
'file',
204204
attachment.file,
205-
{ filename: attachment.filename },
205+
attachment.filename,
206206
));
207207

208208
const config = {

src/version3/issueAttachments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class IssueAttachments {
202202
attachments.forEach((attachment) => formData.append(
203203
'file',
204204
attachment.file,
205-
{ filename: attachment.filename },
205+
attachment.filename,
206206
));
207207

208208
const config = {

0 commit comments

Comments
 (0)