Skip to content

Commit a19b00f

Browse files
committed
v 0.18.2
Bug Fixes - solved problem with strictSSL
1 parent 6e60273 commit a19b00f

7 files changed

+24
-11
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add files here to ignore them from prettier formatting

.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 140,
3+
"singleQuote": true,
4+
"useTabs": false,
5+
"tabWidth": 2,
6+
"semi": true,
7+
"bracketSpacing": true
8+
}

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.18.2
2+
3+
### Bug Fixes
4+
5+
- solved problem with strictSSL
6+
17
## 0.18.1
28

39
### Bug Fixes

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "jira-plugin",
33
"displayName": "Jira Plugin",
44
"description": "Manage your on-premises/cloud Jira in vscode",
5-
"version": "0.18.1",
5+
"version": "0.18.2",
66
"publisher": "gioboa",
77
"icon": "images/icons/icon.png",
88
"galleryBanner": {
@@ -42,7 +42,7 @@
4242
"test": "npm run compile && TYPE=1 node ./scripts/rename-files.js && node ./node_modules/vscode/bin/test && TYPE=2 node ./scripts/rename-files.js",
4343
"setup:settings": "npm run compile && TYPE=3 node ./scripts/rename-files.js && node ./node_modules/vscode/bin/test && TYPE=4 node ./scripts/rename-files.js",
4444
"setup:settings:insiders": "npm run compile && TYPE=3 node ./scripts/rename-files.js && CODE_VERSION='insiders' node ./node_modules/vscode/bin/test && TYPE=4 node ./scripts/rename-files.js",
45-
"prelint": "prettier --print-width 140 --single-quote --write 'src/**/*.ts'",
45+
"prelint": "prettier --write 'src/**/*.ts'",
4646
"lint": "tslint 'src/**/*.ts' --format stylish --fix"
4747
},
4848
"husky": {
@@ -408,6 +408,6 @@
408408
"vscode": "^1.1.35"
409409
},
410410
"dependencies": {
411-
"jira-connector": "^2.15.5"
411+
"jira-connector": "^2.15.6"
412412
}
413413
}

src/services/http.service.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export class Jira implements IJira {
4949
host = host.replace('https://', '').replace('http://', '');
5050
const portPosition = host.indexOf(':');
5151
const port = portPosition !== -1 ? host.substring(portPosition + 1) : undefined;
52+
const strictSSL = configuration.get(CONFIG.STRICT_SSL);
5253

5354
if (portPosition !== -1) {
5455
host = host.substring(0, portPosition);
@@ -59,7 +60,8 @@ export class Jira implements IJira {
5960
port,
6061
protocol,
6162
basic_auth: configuration.credentials,
62-
timeout: configuration.get(CONFIG.REQUESTS_TIMEOUT) * 1000 * 60
63+
timeout: configuration.get(CONFIG.REQUESTS_TIMEOUT) * 1000 * 60,
64+
strictSSL: strictSSL !== '' ? strictSSL === 'true' : undefined
6365
});
6466

6567
patchJiraInstance(this.jiraInstance);

src/shared/jira-instance-patch.ts

-4
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ export const patchJiraInstance = (jiraInstance: any) => {
4949

5050
jiraInstance.originalMakeRequest = jiraInstance.makeRequest;
5151
const customMakeRequest = (options: any, callback: any, successString: any) => {
52-
const strictSSL = configuration.get(CONFIG.STRICT_SSL);
53-
if (strictSSL !== '') {
54-
options.strictSSL = strictSSL === 'true';
55-
}
5652
return jiraInstance.originalMakeRequest(options, callback, successString);
5753
};
5854
jiraInstance.makeRequest = customMakeRequest;

0 commit comments

Comments
 (0)