Skip to content

Commit a65e972

Browse files
authored
Merge pull request #444 from pegasystems/vulnerabilities-fix
fix: resolve vulnerabilities in dependencies
2 parents c9c31bf + 5285ca2 commit a65e972

File tree

16 files changed

+1422
-1379
lines changed

16 files changed

+1422
-1379
lines changed

package-lock.json

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

package.json

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@
5050
"author": "Pegasystems",
5151
"license": "SEE LICENSE IN LICENSE",
5252
"dependencies": {
53-
"@emotion/react": "^11.13.3",
54-
"@emotion/styled": "^11.13.0",
53+
"@emotion/react": "^11.14.0",
54+
"@emotion/styled": "^11.14.0",
5555
"@mui/icons-material": "^5.16.7",
5656
"@mui/lab": "^5.0.0-alpha.173",
5757
"@mui/material": "^5.16.7",
5858
"@mui/styles": "^5.16.7",
5959
"@mui/x-date-pickers": "^7.20.0",
6060
"@pega/auth": "~0.2.15",
6161
"@tinymce/tinymce-react": "^5.1.1",
62-
"clsx": "^2.1.0",
62+
"clsx": "^2.1.1",
6363
"dayjs": "^1.11.13",
6464
"downloadjs": "^1.4.7",
6565
"fast-deep-equal": "^3.1.3",
@@ -68,7 +68,7 @@
6868
"react": "^17.0.2",
6969
"react-datepicker": "^4.25.0",
7070
"react-dom": "^17.0.2",
71-
"react-number-format": "^5.4.2",
71+
"react-number-format": "^5.4.4",
7272
"react-redux": "^8.1.3",
7373
"react-router-dom": "^6.22.3",
7474
"throttle-debounce": "^5.0.2"
@@ -77,12 +77,12 @@
7777
"@pega/configs": "^0.7.1",
7878
"@pega/constellationjs": "~0.242.5",
7979
"@pega/eslint-config": "^0.7.2",
80-
"@pega/pcore-pconnect-typedefs": "~3.0.0",
80+
"@pega/pcore-pconnect-typedefs": "~3.2.1",
8181
"@pega/tsconfig": "^0.6.0",
82-
"@playwright/test": "^1.40.1",
82+
"@playwright/test": "^1.52.0",
8383
"@testing-library/jest-dom": "^5.17.0",
8484
"@testing-library/react": "^14.1.2",
85-
"@types/jest": "^29.5.11",
85+
"@types/jest": "^29.5.14",
8686
"@types/react": "^17.0.83",
8787
"@typescript-eslint/eslint-plugin": "^5.62.0",
8888
"babel-loader": "^9.1.3",
@@ -92,36 +92,35 @@
9292
"cspell": "^8.3.2",
9393
"css-loader": "^6.9.0",
9494
"eslint": "^8.56.0",
95-
"eslint-plugin-import": "^2.29.1",
95+
"eslint-plugin-import": "^2.31.0",
9696
"eslint-plugin-jest": "^27.6.2",
97-
"eslint-plugin-jsx-a11y": "^6.8.0",
98-
"eslint-plugin-prettier": "^5.1.3",
99-
"eslint-plugin-react": "^7.33.2",
97+
"eslint-plugin-jsx-a11y": "^6.10.2",
98+
"eslint-plugin-prettier": "^5.4.0",
99+
"eslint-plugin-react": "^7.37.5",
100100
"eslint-plugin-react-hooks": "^4.6.0",
101101
"eslint-plugin-sonarjs": "^0.23.0",
102-
"html-webpack-plugin": "^5.6.0",
102+
"html-webpack-plugin": "^5.6.3",
103103
"http-server": "^14.1.1",
104104
"istanbul": "^0.4.5",
105-
"istanbul-instrumenter-loader": "^3.0.1",
106105
"jest": "^29.7.0",
107106
"jest-environment-jsdom": "^29.7.0",
108107
"json5": ">=2.2.3",
109-
"monocart-reporter": "^2.2.1",
108+
"monocart-reporter": "^2.9.19",
110109
"npm-run-all": "^4.1.5",
111110
"null-loader": "^4.0.1",
112-
"prettier": "^3.1.1",
111+
"prettier": "^3.5.3",
113112
"prop-types": "^15.8.1",
114113
"replace-in-file": "^7.1.0",
115114
"sass-loader": "^13.3.3",
116115
"shx": "^0.3.4",
117116
"style-loader": "^3.3.4",
118-
"stylelint": "^16.1.0",
119-
"tinymce": "^7.3.0",
120-
"ts-jest": "^29.1.1",
121-
"ts-loader": "^9.5.1",
117+
"stylelint": "^16.19.1",
118+
"tinymce": "^7.9.0",
119+
"ts-jest": "^29.3.4",
120+
"ts-loader": "^9.5.2",
122121
"typescript": "^4.9.5",
123-
"webpack": "^5.95.0",
122+
"webpack": "^5.99.8",
124123
"webpack-cli": "^5.1.4",
125-
"webpack-dev-server": "^5.1.0"
124+
"webpack-dev-server": "^5.2.1"
126125
}
127126
}

packages/react-sdk-components/src/components/field/CancelAlert/CancelAlert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default function CancelAlert(props: CancelAlertProps) {
7878
});
7979
} else if (isLocalAction) {
8080
dismiss(true);
81-
actionsAPI.cancelAssignment(containerItemID);
81+
actionsAPI.cancelAssignment(containerItemID, false);
8282
} else if (isBulkAction) {
8383
dismiss(true);
8484
actionsAPI.cancelBulkAction(containerItemID);

packages/react-sdk-components/src/components/field/Currency/Currency.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function Currency(props: CurrrencyProps) {
5656
const theCurrSep = theSymbols.theDigitGroupSeparator;
5757

5858
const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
59-
const formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);
59+
const formattedValue = format(value, pConn.getComponentName()?.toLowerCase(), theCurrencyOptions);
6060

6161
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
6262

packages/react-sdk-components/src/components/field/Decimal/Decimal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default function Decimal(props: DecimalProps) {
6868
if (formatter === 'Currency') {
6969
formattedValue = format(value, formatter.toLowerCase(), theCurrencyOptions);
7070
} else {
71-
formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);
71+
formattedValue = format(value, pConn.getComponentName()?.toLowerCase(), theCurrencyOptions);
7272
}
7373

7474
if (displayMode === 'DISPLAY_ONLY') {

packages/react-sdk-components/src/components/field/Percentage/Percentage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function Percentage(props: PercentageProps) {
5050
const helperTextToDisplay = validatemessage || helperText;
5151

5252
const theCurrencyOptions = getCurrencyOptions(currencyISOCode);
53-
const formattedValue = format(value, pConn.getComponentName().toLowerCase(), theCurrencyOptions);
53+
const formattedValue = format(value, pConn.getComponentName()?.toLowerCase(), theCurrencyOptions);
5454

5555
let readOnlyProp = {}; // Note: empty if NOT ReadOnly
5656

packages/react-sdk-components/src/components/field/ScalarList/ScalarList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default function ScalarList(props: ScalarListProps) {
4646
}
4747
},
4848
'',
49+
// @ts-ignore
4950
'',
5051
{}
5152
); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional;

packages/react-sdk-components/src/components/infra/Assignment/Assignment.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
147147
}
148148

149149
function onSaveActionSuccess(data) {
150-
actionsAPI.cancelAssignment(itemKey).then(() => {
150+
actionsAPI.cancelAssignment(itemKey, false).then(() => {
151151
PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.CREATE_STAGE_SAVED, data);
152152
});
153153
}
@@ -206,7 +206,7 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
206206
showToast(`${localizedVal('Cancel failed!', localeCategory)}`);
207207
});
208208
} else {
209-
const cancelPromise = cancelAssignment(itemKey);
209+
const cancelPromise = cancelAssignment(itemKey, false);
210210

211211
cancelPromise
212212
.then(data => {

packages/react-sdk-components/src/components/infra/Containers/FlowContainer/FlowContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export const FlowContainer = (props: FlowContainerProps) => {
290290

291291
const caseId = thePConn.getCaseSummary().content.pyID;
292292
const urgency = getPConnect().getCaseSummary().assignments ? getPConnect().getCaseSummary().assignments?.[0].urgency : '';
293-
const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName());
293+
const operatorInitials = Utils.getInitials(PCore.getEnvironmentInfo().getOperatorName() || '');
294294

295295
const bShowBanner = showBanner(getPConnect);
296296

packages/react-sdk-components/src/components/infra/DeferLoad/DeferLoad.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export default function DeferLoad(props: DeferLoadProps) {
6969
const getViewOptions = () => ({
7070
viewContext: resourceType,
7171
pageClass: loadViewCaseID ? '' : (pConnect.getDataObject('') as any).pyPortal.classID, // 2nd arg empty string until typedef allows optional
72-
container: isContainerPreview ? 'preview' : null,
73-
containerName: isContainerPreview ? 'preview' : null,
72+
container: isContainerPreview ? 'preview' : undefined,
73+
containerName: isContainerPreview ? 'preview' : undefined,
7474
updateData: isContainerPreview
7575
});
7676

0 commit comments

Comments
 (0)