Fixathon ICU - remove npm vulnerabilities from production version (#28999)
* fix high vulnerability present in braces * remove vulnerabilities from pdfjs-dis and update types for node and react * adapt the pdf preview file to the lib new version * lock the estree version to a compatible version * use minified version of worker and adjust webpack to support extension for ESM module process * get working the pdf preview * adjust jest to use babel correctly * override asn1.js lib to keep working version * upgrade semver version to a secure version * remove no longer needed changes * fix linter issues * fix merge conflicts * sync package-lock * fix conflicts * adjust lock to npm ci
Этот коммит содержится в:
@@ -41,8 +41,11 @@ const config = {
|
||||
['jest-junit', {outputDirectory: 'build', outputName: 'test-results.xml'}],
|
||||
],
|
||||
transformIgnorePatterns: [
|
||||
'node_modules/(?!react-native|react-router|p-queue|p-timeout|@mattermost/compass-components|@mattermost/compass-icons|cidr-regex|ip-regex)',
|
||||
'node_modules/(?!react-native|react-router|pdfjs-dist|p-queue|p-timeout|@mattermost/compass-components|@mattermost/compass-icons|cidr-regex|ip-regex)',
|
||||
],
|
||||
transform: {
|
||||
'^.+\\.(js|jsx|ts|tsx|mjs)$': 'babel-jest',
|
||||
},
|
||||
setupFiles: ['jest-canvas-mock'],
|
||||
setupFilesAfterEnv: ['<rootDir>/src/tests/setup_jest.ts'],
|
||||
testEnvironment: 'jsdom',
|
||||
|
||||
Ссылка в новой задаче
Block a user