Skip to content

Commit

Permalink
remove use of vulnerable versions of ansi-regex (#4705)
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth authored Jul 2, 2024
1 parent 95a1a40 commit e4e90df
Show file tree
Hide file tree
Showing 5 changed files with 261 additions and 842 deletions.
27 changes: 27 additions & 0 deletions libraries/adaptive-expressions/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = function (api) {
api.cache(false);
const presets = [
['@babel/preset-typescript'],
[
'@babel/preset-env',
{
corejs: { version: 3 },
useBuiltIns: 'usage',
targets: {
browsers: ['last 2 versions', 'ie >= 11', 'not ie < 11', 'not android > 0', 'not ios > 0'],
},
},
],
];
const plugins = [
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
['@babel/plugin-proposal-class-properties'],
['@babel/plugin-transform-modules-commonjs'],
['@babel/plugin-transform-runtime', { useESModules: false }],
];
return {
presets,
plugins,
sourceMaps: true,
};
};
2 changes: 1 addition & 1 deletion libraries/adaptive-expressions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"build:src": "tsc -b",
"build:tests": "tsc -p tests/tsconfig.json",
"build": "npm-run-all build:src build:tests",
"browserify": "browserify lib/browser.js -s AEL --debug -p [ tinyify --no-flat ] | exorcist lib/browser.js.map | sponge lib/browser.js",
"browserify": "browserify lib/browser.js -s AEL --debug -p esmify -t [ babelify --extensions .js,.mjs --global ] | exorcist lib/browser.js.map | sponge lib/browser.js",
"postbuild": "rimraf lib/browser.* && shx cp lib/index.js lib/browser.js && yarn browserify",
"clean": "rimraf lib tsconfig.tsbuildinfo",
"depcheck": "depcheck --config ../../.depcheckrc --ignores sinon,@types/xmldom",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
"sinon": "^9.2.4",
"source-map-support": "^0.5.19",
"sponge": "^0.1.0",
"tinyify": "^3.0.0",
"ts-node": "^10.0.0",
"typedoc": "^0.24.8",
"typedoc-plugin-external-module-name": "^4.0.6",
Expand Down
12 changes: 6 additions & 6 deletions testing/browser-functional/browser-echo-bot/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1665,14 +1665,14 @@ ansi-html-community@^0.0.8:
integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw==

ansi-regex@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=
version "3.0.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.1.tgz#123d6479e92ad45ad897d4054e3c7ca7db4944e1"
integrity sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==

ansi-regex@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997"
integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==
version "4.1.1"
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed"
integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==

ansi-styles@^3.2.0, ansi-styles@^3.2.1:
version "3.2.1"
Expand Down
Loading

0 comments on commit e4e90df

Please sign in to comment.