Skip to content

Commit

Permalink
fix vulnerabilities and update jest version (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhiaror authored Mar 27, 2024
1 parent 8eaf9e5 commit 5111fc7
Show file tree
Hide file tree
Showing 7 changed files with 26,016 additions and 7,473 deletions.
8 changes: 5 additions & 3 deletions configuration/jest/fileTransform.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
const assetFilename = JSON.stringify(path.basename(filename));

if (filename.match(/\.svg$/)) {
return `module.exports = {
return { code: `module.exports = {
__esModule: true,
default: ${assetFilename},
ReactComponent: (props) => ({
Expand All @@ -22,9 +22,11 @@ module.exports = {
children: ${assetFilename}
})
}),
};`;
};`};
}

return `module.exports = ${assetFilename};`;
return {
code: `module.exports = ${assetFilename};`
};
},
};
9 changes: 1 addition & 8 deletions configuration/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,8 @@ module.exports = {
new WorkboxWebpackPlugin.GenerateSW({
clientsClaim: true,
exclude: [/\.map$/, /asset-manifest\.json$/],
importWorkboxFrom: 'cdn',
navigateFallback: publicUrl + '/index.html',
navigateFallbackBlacklist: [
// Exclude URLs starting with /_, as they're likely an API call
new RegExp('^/_'),
// Exclude URLs containing a dot, as they're likely a resource in
// public/ and not a SPA route
new RegExp('/[^/]+\\.[^/]+$'),
],
maximumFileSizeToCacheInBytes: 5000000,
}),
// TypeScript type checking
fs.existsSync(paths.appTsConfig) &&
Expand Down
2 changes: 1 addition & 1 deletion local-testing/amazon-connect-chat-interface.js

Large diffs are not rendered by default.

Loading

0 comments on commit 5111fc7

Please sign in to comment.