Skip to content

Commit

Permalink
Bump prettier from 1.19.1 to 2.0.5 (#226)
Browse files Browse the repository at this point in the history
* Bump prettier from 1.19.1 to 2.0.5

Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.5.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/prettier@1.19.1...2.0.5)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* apply updated prettier version

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: jdville03 <[email protected]>
  • Loading branch information
dependabot-preview[bot] and jdville03 committed Aug 3, 2020
1 parent 2ab3e04 commit 54e4a83
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ those calls.
*/
apiClient.login("[email protected]", "password");

apiClient.getTemplate("Advisor Agreement").then(result => {
apiClient.getTemplate("Advisor Agreement").then((result) => {
console.log(result);
});
/*
Expand Down
62 changes: 31 additions & 31 deletions js/src/APIClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ export class APIClient {
}

return axios(postCallDetails)
.then(result => {
.then((result) => {
if (result.headers['openlaw_jwt']) {
this.jwt = result.headers['openlaw_jwt'];
}
return result;
})
.catch(error => {
.catch((error) => {
throw error;
});
});
Expand Down Expand Up @@ -143,13 +143,13 @@ export class APIClient {

return axios
.get(this.conf.root + url + paramsUrl, getCallDetails)
.then(result => {
.then((result) => {
if (result.headers['openlaw_jwt']) {
this.jwt = result.headers['openlaw_jwt'];
}
return result;
})
.catch(error => {
.catch((error) => {
if (error.data) {
throw error.data;
}
Expand All @@ -171,15 +171,15 @@ export class APIClient {
'/upload/contract',
JSON.stringify(params),
headers,
).then(response => response.data);
).then((response) => response.data);
}

async uploadFlow(params: AnyObjectType): Promise<string> {
const headers = {
'Content-Type': 'text/plain;charset=UTF-8',
};
return this.postCall('/upload/flow', JSON.stringify(params), headers).then(
response => response.data,
(response) => response.data,
);
}

Expand Down Expand Up @@ -209,13 +209,13 @@ export class APIClient {

async getFlowAccessToken(flowId: string): Promise<string> {
return this.getCall('/flow/token/' + flowId).then(
response => response.data,
(response) => response.data,
);
}

async generateFlowAccessToken(flowId: string): Promise<string> {
return this.postCall('/flow/updateToken/' + flowId).then(
response => response.data,
(response) => response.data,
);
}

Expand All @@ -237,7 +237,7 @@ export class APIClient {
return this.getCall('/contract/sign/status', {
id: contractId,
accessToken,
}).then(result => result.data);
}).then((result) => result.data);
}

async stopContract(id: string) {
Expand Down Expand Up @@ -265,7 +265,7 @@ export class APIClient {
}

async getCurrentNetwork() {
return this.getCall('/network').then(response => response.data);
return this.getCall('/network').then((response) => response.data);
}

async saveTemplate(title: string, value: string) {
Expand All @@ -285,39 +285,39 @@ export class APIClient {
title,
pageSize,
page,
}).then(response => response.data);
}).then((response) => response.data);
}

async getTemplate(title: string): Promise<AnyObjectType> {
return this.getCall('/template/raw/' + title).then(
response => response.data,
(response) => response.data,
);
}

async getTemplateById(id: string): Promise<AnyObjectType> {
return this.getCall('/template/id/raw/' + id).then(
response => response.data,
(response) => response.data,
);
}

async getTemplateVersion(title: string, version: string): Promise<string> {
return this.getCall(
'/template/raw/' + encodeURI(title) + '/' + version,
).then(response => response.data);
).then((response) => response.data);
}

async getContract(
contractId: string,
accessToken: ?string,
): Promise<AnyObjectType> {
return this.getCall('/contract/raw/' + contractId, {accessToken}).then(
response => response.data,
(response) => response.data,
);
}

async getFlow(flowId: string, accessToken: ?string): Promise<AnyObjectType> {
return this.getCall('/flow/raw/' + flowId, {accessToken}).then(
response => response.data,
(response) => response.data,
);
}

Expand All @@ -326,12 +326,12 @@ export class APIClient {
keyword,
page,
pageSize,
}).then(response => response.data);
}).then((response) => response.data);
}

async deleteUser(userId: string) {
return this.getCall('/users/delete', {userId}).then(
response => response.data,
(response) => response.data,
);
}

Expand All @@ -352,7 +352,7 @@ export class APIClient {
keyword,
page,
pageSize,
}).then(response => response.data);
}).then((response) => response.data);
}

async searchDeletedTemplates(
Expand All @@ -364,7 +364,7 @@ export class APIClient {
keyword,
page,
pageSize,
}).then(response => response.data);
}).then((response) => response.data);
}

async deleteTemplate(name: string) {
Expand Down Expand Up @@ -446,24 +446,24 @@ export class APIClient {
page,
pageSize,
sortBy,
}).then(response => response.data);
}).then((response) => response.data);
}

async searchAddress(term: string) {
return this.getCall('/address/search', {term}).then(
response => response.data,
(response) => response.data,
);
}

async getAddressDetails(placeId: string) {
return this.getCall('/address/details', {placeId}).then(
response => response.data,
(response) => response.data,
);
}

async getStripeAccounts() {
return this.getCall('/user/getStripeAccounts').then(
response => response.data,
(response) => response.data,
);
}

Expand All @@ -472,12 +472,12 @@ export class APIClient {
filter,
page,
pageSize,
}).then(response => response.data);
}).then((response) => response.data);
}

async downloadAsDocx(params: AnyObjectType) {
const data = JSON.stringify(params);
return this.postCall('/download/contract/docx', {data}).then(response => {
return this.postCall('/download/contract/docx', {data}).then((response) => {
const blob = new Blob([response.data], {type: response.data.type});
const url = window.URL.createObjectURL(blob);
const link = document.createElement('a');
Expand All @@ -498,7 +498,7 @@ export class APIClient {

async downloadAsPdf(params: AnyObjectType) {
const data = JSON.stringify(params);
return this.postCall('/download/contract/pdf', {data}).then(response => {
return this.postCall('/download/contract/pdf', {data}).then((response) => {
const blob = new Blob([response.data], {type: response.data.type});
const url = window.URL.createObjectURL(blob);
const link = document.createElement('a');
Expand All @@ -518,7 +518,7 @@ export class APIClient {
}

async downloadTemplateAsJson(title: string) {
return this.getCall('/templates/json/' + title).then(response => {
return this.getCall('/templates/json/' + title).then((response) => {
const blob = new Blob([response.data], {type: response.data.type});
const url = window.URL.createObjectURL(blob);
const link = document.createElement('a');
Expand All @@ -538,7 +538,7 @@ export class APIClient {
}

async downloadContractAsDocx(contractId: string) {
return this.getCall('/contract/docx/' + contractId).then(response => {
return this.getCall('/contract/docx/' + contractId).then((response) => {
const blob = new Blob([response.data], {type: response.data.type});
const url = window.URL.createObjectURL(blob);
const link = document.createElement('a');
Expand All @@ -558,7 +558,7 @@ export class APIClient {
}

async downloadContractAsPdf(contractId: string) {
return this.getCall('/contract/pdf/' + contractId).then(response => {
return this.getCall('/contract/pdf/' + contractId).then((response) => {
const blob = new Blob([response.data], {type: response.data.type});
const url = window.URL.createObjectURL(blob);
const link = document.createElement('a');
Expand All @@ -578,7 +578,7 @@ export class APIClient {
}

async downloadContractAsJson(contractId: string) {
return this.getCall('/contract/json/' + contractId).then(response => {
return this.getCall('/contract/json/' + contractId).then((response) => {
const blob = new Blob([response.data], {type: response.data.type});
const url = window.URL.createObjectURL(blob);
const link = document.createElement('a');
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"np": "^5.1.2",
"npm-publish-prerelease": "^1.0.2",
"npm-run-all": "^4.1.5",
"prettier": "1.19.1",
"prettier": "2.0.5",
"rimraf": "^3.0.2",
"rollup": "^1.32.1",
"rollup-plugin-babel": "^4.3.3",
Expand Down

0 comments on commit 54e4a83

Please sign in to comment.