Skip to content

Commit 0191fde

Browse files
fix: dependabot security vulnerabilities (#392)
* pypdf2 security vulnerability * axios security vulnerability * got security vulnerability --------- Signed-off-by: Scott Schreckengaust <[email protected]>
1 parent fae54b3 commit 0191fde

File tree

7 files changed

+4642
-3647
lines changed

7 files changed

+4642
-3647
lines changed

lambda/aws-rag-appsync-stepfn-opensearch/s3_file_transformer/src/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ typing-extensions==4.7.0
55
boto3>=1.34.29
66
requests==2.31.0
77
langchain==0.1.11
8-
pypdf2==3.0.1
8+
pypdf2>=3.9.0
99
Pillow==10.3.0
1010
langchain-community<0.1, >0.0.25

lambda/aws-summarization-appsync-stepfn/document_reader/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
redis
2-
pypdf2
2+
pypdf2>=3.9.0
33
langchain==0.1.11
44
urllib3<2
55
aws-xray-sdk

website/docs/patterns/aws-langchain-common-layer/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ response = model.run(
295295

296296
| **Error Code** | **Message** | **Description** |**Fix** |
297297
|:-------------|:----------------|-----------------|-----------------|
298-
| 601 | <llm_name> Exception during prediction | An exception happened while the LangChain client was running a prediction with the selected LLM | Verify logs to get the proper error message from the LangChain client |
298+
| 601 | &lt;llm_name&gt; Exception during prediction | An exception happened while the LangChain client was running a prediction with the selected LLM | Verify logs to get the proper error message from the LangChain client |
299299

300300
## Architecture
301301
![Architecture Diagram](architecture.png)

website/docs/patterns/aws-qa-appsync-opensearch/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Parameters
214214
| stage | string | ![Optional](https://img.shields.io/badge/optional-4169E1) | Value will be appended to resources name Service. |
215215
| existingMergedApi | [appsync.CfnGraphQLApi](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.CfnGraphQLApi.html) | ![Optional](https://img.shields.io/badge/optional-4169E1) | Existing Merged API instance. The Merged API provides a federated schema over source API schemas.|
216216
| observability | boolean | ![Optional](https://img.shields.io/badge/optional-4169E1) | Enables observability on all services used. Warning: associated cost with the services used. Best practice to enable by default. Defaults to true.|
217-
| enableOperationalMetric | boolean | ![Optional](https://img.shields.io/badge/optional-4169E1) | CDK construct collects anonymous operational metrics to help AWS improve the quality and features of the constructs. Data collection is subject to the AWS Privacy Policy (<https://aws.amazon.com/privacy/>). To opt out of this feature, simply disable it by setting the construct property "enableOperationalMetric" to false for each construct used. Defaults to true.|
217+
| enableOperationalMetric | boolean | ![Optional](https://img.shields.io/badge/optional-4169E1) | CDK construct collects anonymous operational metrics to help AWS improve the quality and features of the constructs. Data collection is subject to the [AWS Privacy Policy](https://aws.amazon.com/privacy/). To opt out of this feature, simply disable it by setting the construct property "enableOperationalMetric" to false for each construct used. Defaults to true.|
218218
| lambdaProvisionedConcurrency | number | ![Optional](https://img.shields.io/badge/optional-4169E1) | Allows a user to configure Lambda provisioned concurrency for consistent performance|
219219

220220
## Pattern Properties

website/docusaurus.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer/themes/github');
5-
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
4+
const lightCodeTheme = require('prism-react-renderer').themes.github;
5+
const darkCodeTheme = require('prism-react-renderer').themes.github;
66

77
const projectName = 'generative-ai-cdk-constructs'
88
const niceProjectName = 'Generative AI CDK Constructs'

website/package.json

+66-65
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,66 @@
1-
{
2-
"name": "aws-for-data-accelerator-website",
3-
"version": "0.0.0",
4-
"private": true,
5-
"scripts": {
6-
"docusaurus": "docusaurus",
7-
"start": "docusaurus start",
8-
"build": "docusaurus build",
9-
"swizzle": "docusaurus swizzle",
10-
"deploy": "docusaurus deploy",
11-
"clear": "docusaurus clear",
12-
"serve": "docusaurus serve",
13-
"write-translations": "docusaurus write-translations",
14-
"write-heading-ids": "docusaurus write-heading-ids",
15-
"ci": "yarn lint && yarn format:diff",
16-
"lint": "eslint --cache \"**/*.js\" && stylelint \"**/*.css\"",
17-
"format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
18-
"format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
19-
"dev": "docusaurus start"
20-
},
21-
"dependencies": {
22-
"@docusaurus/core": "^2.4.1",
23-
"@docusaurus/logger": "^2.4.1",
24-
"@docusaurus/preset-classic": "^2.4.1",
25-
"@docusaurus/theme-mermaid": "^2.4.1",
26-
"@mdx-js/react": "^1.6.22",
27-
"clsx": "^1.2.1",
28-
"docusaurus-lunr-search": "^2.2.0",
29-
"prism-react-renderer": "^1.3.5",
30-
"raw-loader": "^4.0.2",
31-
"react": "^17.0.2",
32-
"react-dom": "^17.0.2"
33-
},
34-
"devDependencies": {
35-
"@babel/eslint-parser": "^7.18.2",
36-
"eslint": "^8.19.0",
37-
"eslint-config-airbnb": "^19.0.4",
38-
"eslint-config-prettier": "^8.5.0",
39-
"eslint-plugin-header": "^3.1.1",
40-
"eslint-plugin-import": "^2.26.0",
41-
"eslint-plugin-jsx-a11y": "^6.6.0",
42-
"eslint-plugin-react": "^7.30.1",
43-
"eslint-plugin-react-hooks": "^4.6.0",
44-
"prettier": "^2.7.1",
45-
"stylelint": "^14.9.1"
46-
},
47-
"resolutions": {
48-
"trim": "0.0.3"
49-
},
50-
"browserslist": {
51-
"production": [
52-
">0.5%",
53-
"not dead",
54-
"not op_mini all"
55-
],
56-
"development": [
57-
"last 1 chrome version",
58-
"last 1 firefox version",
59-
"last 1 safari version"
60-
]
61-
},
62-
"engines": {
63-
"node": ">=16.14"
64-
}
65-
}
1+
{
2+
"name": "aws-for-data-accelerator-website",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"docusaurus": "docusaurus",
7+
"start": "docusaurus start",
8+
"build": "docusaurus build",
9+
"swizzle": "docusaurus swizzle",
10+
"deploy": "docusaurus deploy",
11+
"clear": "docusaurus clear",
12+
"serve": "docusaurus serve",
13+
"write-translations": "docusaurus write-translations",
14+
"write-heading-ids": "docusaurus write-heading-ids",
15+
"ci": "yarn lint && yarn format:diff",
16+
"lint": "eslint --cache \"**/*.js\" && stylelint \"**/*.css\"",
17+
"format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
18+
"format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,md,mdx}\"",
19+
"dev": "docusaurus start"
20+
},
21+
"dependencies": {
22+
"@docusaurus/core": "^3.2.1",
23+
"@docusaurus/logger": "^3.2.1",
24+
"@docusaurus/preset-classic": "^3.2.1",
25+
"@docusaurus/theme-mermaid": "^3.2.1",
26+
"@mdx-js/react": "^3.0.1",
27+
"clsx": "^2.1.0",
28+
"docusaurus-lunr-search": "^3.3.2",
29+
"prism-react-renderer": "^2.3.1",
30+
"raw-loader": "^4.0.2",
31+
"react": "^18.2.0",
32+
"react-dom": "^18.2.0",
33+
"trim": "1.0.1"
34+
},
35+
"devDependencies": {
36+
"@babel/eslint-parser": "^7.18.2",
37+
"eslint": "^9.0.0",
38+
"eslint-config-airbnb": "^19.0.4",
39+
"eslint-config-prettier": "^9.1.0",
40+
"eslint-plugin-header": "^3.1.1",
41+
"eslint-plugin-import": "^2.26.0",
42+
"eslint-plugin-jsx-a11y": "^6.6.0",
43+
"eslint-plugin-react": "^7.30.1",
44+
"eslint-plugin-react-hooks": "^4.6.0",
45+
"prettier": "^3.2.5",
46+
"stylelint": "^16.3.1"
47+
},
48+
"resolutions": {
49+
"trim": "0.0.3"
50+
},
51+
"browserslist": {
52+
"production": [
53+
">0.5%",
54+
"not dead",
55+
"not op_mini all"
56+
],
57+
"development": [
58+
"last 1 chrome version",
59+
"last 1 firefox version",
60+
"last 1 safari version"
61+
]
62+
},
63+
"engines": {
64+
"node": ">=16.14"
65+
}
66+
}

0 commit comments

Comments
 (0)