-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix axios vulnerability by moving to Fetch (#3769)
* bump prettier + config * run prettier on portal * update to use native HTTP fetch * clean up some typescript lint problems * regen * fix * rebuild * send correct content type * regen
- Loading branch information
Showing
39 changed files
with
21,210 additions
and
21,031 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"files": { | ||
"main.js": "/static/js/main.cef1fecf.js", | ||
"main.js": "/static/js/main.df4abe60.js", | ||
"index.html": "/index.html", | ||
"main.cef1fecf.js.map": "/static/js/main.cef1fecf.js.map" | ||
"main.df4abe60.js.map": "/static/js/main.df4abe60.js.map" | ||
}, | ||
"entrypoints": [ | ||
"static/js/main.cef1fecf.js" | ||
"static/js/main.df4abe60.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>ARO Portal</title><script defer="defer" src="/static/js/main.cef1fecf.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>ARO Portal</title><script defer="defer" src="/static/js/main.df4abe60.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
const webpack = require('webpack'); | ||
const webpack = require("webpack") | ||
|
||
module.exports = function override(config) { | ||
const fallback = config.resolve.fallback || {}; | ||
const fallback = config.resolve.fallback || {} | ||
|
||
Object.assign(fallback, { | ||
"path": require.resolve('path-browserify'), | ||
"buffer": require.resolve("buffer/") | ||
}); | ||
path: require.resolve("path-browserify"), | ||
buffer: require.resolve("buffer/"), | ||
}) | ||
|
||
config.resolve.fallback = fallback; | ||
config.resolve.fallback = fallback | ||
|
||
config.module.rules.push({ | ||
test: /\.m?js/, | ||
resolve: { | ||
fullySpecified: false | ||
} | ||
}); | ||
fullySpecified: false, | ||
}, | ||
}) | ||
|
||
config.plugins = (config.plugins || []).concat([ | ||
new webpack.ProvidePlugin({ | ||
process: 'process/browser', | ||
Buffer: ['buffer', 'Buffer'], | ||
process: "process/browser", | ||
Buffer: ["buffer", "Buffer"], | ||
}), | ||
]); | ||
]) | ||
|
||
return config; | ||
}; | ||
return config | ||
} |
Oops, something went wrong.