Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a2ac891

Browse files
authoredApr 29, 2021
Merge pull request #189 from kazbaig/v1.0.2
Release v1.0.2
2 parents 8e4fec7 + e421023 commit a2ac891

File tree

7 files changed

+22647
-5944
lines changed

7 files changed

+22647
-5944
lines changed
 

‎CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.2] - 2021-03-19
9+
- Update `next` from 10.0.3 to 10.0.4
10+
- Update `aws-amplify` 2.1.0 to 3.3.25
11+
- Remove `sass-lint`
12+
- Resolve `netmask` and `y18n` vulnerabilities
13+
814
## [1.0.1] - 2021-01-04
915

1016
### Changed

‎deployment/logger/package-lock.json

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

‎deployment/logger/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
},
88
"private": true,
99
"main": "./logger.common.js",
10-
"dependencies": {},
1110
"devDependencies": {
1211
"aws-sdk-mock": "*",
13-
"minimist": ">=0.2.1",
1412
"chai": "*",
13+
"minimist": ">=0.2.1",
1514
"mocha": "^8.1.3",
1615
"npm-run-all": "*",
1716
"proxyquire": "*",

‎source/app/store/entities/documents/actions.js

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -177,24 +177,21 @@ export const fetchDocument = createAction(FETCH_DOCUMENT, async documentid => {
177177
const s3Response = await Storage.get(textractResponsePath, {
178178
download: true
179179
});
180-
const textractResponse = JSON.parse(
181-
s3Response.Body ? s3Response.Body.toString() : null
182-
);
180+
const s3ResponseText = await s3Response.Body?.text()
181+
const textractResponse = JSON.parse(s3ResponseText);
183182

184-
// Get the raw comprehend medical response data from a json file on S3
185-
const s3ComprehendMedicalResponse = await Storage.get(comprehendMedicalResponsePath, {
186-
download: true
187-
});
188-
const comprehendMedicalRespone = JSON.parse(
189-
s3ComprehendMedicalResponse.Body ? s3ComprehendMedicalResponse.Body.toString() : null
190-
);
191-
// Get the raw comprehend response data from a json file on S3
192-
const s3ComprehendResponse = await Storage.get(comprehendResponsePath, {
193-
download: true
194-
});
195-
const comprehendRespone = JSON.parse(
196-
s3ComprehendResponse.Body ? s3ComprehendResponse.Body.toString() : null
197-
);
183+
// Get the raw comprehend medical response data from a json file on S3
184+
const s3ComprehendMedicalResponse = await Storage.get(comprehendMedicalResponsePath, {
185+
download: true
186+
});
187+
const s3ComprehendMedicalResponseText = await s3ComprehendMedicalResponse.Body?.text()
188+
const comprehendMedicalRespone = JSON.parse(s3ComprehendMedicalResponseText);
189+
// Get the raw comprehend response data from a json file on S3
190+
const s3ComprehendResponse = await Storage.get(comprehendResponsePath, {
191+
download: true
192+
});
193+
const s3ComprehendResponseText = await s3ComprehendResponse.Body?.text()
194+
const comprehendRespone = JSON.parse(s3ComprehendResponseText);
198195

199196
return normalize(
200197
{

‎source/package-lock.json

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

‎source/package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@
4040
"build": "STACKNAME=$npm_package_stack_stackname AWS_REGION=$npm_package_stack_region yarn pre-build && NEXT_PUBLIC_ENABLE_KENDRA=$npm_package_enableKendra next build app",
4141
"export": "yarn build && next export app",
4242
"pre-build": "STACKNAME=$npm_package_stack_stackname AWS_REGION=$npm_package_stack_region isROMode=$npm_package_isROMode ENABLE_KENDRA=$npm_package_enableKendra node ./bin/pre-build.js",
43-
"preinstall": "npx npm-force-resolutions",
4443
"license-report": "legally --plain > license-report.txt && echo \"$(tail -n +4 license-report.txt)\" > license-report.txt",
4544
"prettier": "prettier --write '**/*.{js,md,yaml}'",
46-
"lint": "yarn lint:js && yarn lint:css",
47-
"lint:css": "sass-lint --verbose --no-exit",
48-
"lint:js": "eslint './**/*.js' --max-warnings 0",
4945
"run:tests": "bash bin/run-tests.sh",
5046
"install-all": "bash ../deployment/install_packages.sh",
5147
"add-service-linked-role": "bash ../deployment/custom-deployment/bin/add_es_service_role_if_missing.sh"
@@ -70,7 +66,7 @@
7066
"@babel/helper-validator-identifier": "^7.9.5",
7167
"@types/node": "^12.12.5",
7268
"@zeit/next-sass": "^1.0.1",
73-
"aws-amplify": "^2.1.0",
69+
"aws-amplify": "^3.3.25",
7470
"aws-cdk": "^1.70.0",
7571
"aws-sdk": "^2.823.0",
7672
"classnames": "^2.2.6",
@@ -80,7 +76,7 @@
8076
"inquirer": "^6.4.1",
8177
"lodash": "^4.17.19",
8278
"minimist": "^1.2.3",
83-
"next": "^10.0.3",
79+
"next": "10.0.4",
8480
"next-redux-wrapper": "^3.0.0-alpha.3",
8581
"node-fetch": "^2.6.1",
8682
"node-sass": "^4.14.1",
@@ -117,10 +113,6 @@
117113
"eslint-plugin-react": "^7.13.0",
118114
"eslint-plugin-react-hooks": "^1.6.0",
119115
"legally": "^3.3.7",
120-
"prettier": "1.18.2",
121-
"sass-lint": "^1.13.1"
122-
},
123-
"resolutions": {
124-
"axios": "0.21.1"
116+
"prettier": "1.18.2"
125117
}
126118
}

‎source/yarn.lock

Lines changed: 1702 additions & 1051 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
This repository has been archived.