Skip to content

Commit

Permalink
update urllib to ^2.3.0 and python to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriechang committed Jan 8, 2025
1 parent 6707a79 commit 35bfccc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 72 deletions.
63 changes: 15 additions & 48 deletions packages/config/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,11 @@ const makeConfig = ({
input,
plugins: [
externals(),
modify(
{
// prettier-ignore
find: /'__CITATIONS__'/g,
replace: JSON.stringify(citationData, null, 2),
},
{
// Patch to mitigate DOM Clobbering vulnerability
find: /document\.currentScript/g,
replace: `(typeof document !== 'undefined' &&
document.currentScript &&
document.currentScript.tagName &&
document.currentScript.tagName.toUpperCase() === 'SCRIPT' &&
document.currentScript)`,
}
),
modify({
// prettier-ignore
find: /'__CITATIONS__'/g,
replace: JSON.stringify(citationData, null, 2),
}),
esbuild({ ...esBuildPluginOptions, target: "node18" }),
commonjs(commonjsPluginOptions),
],
Expand All @@ -117,22 +106,11 @@ const makeConfig = ({
input,
plugins: [
externals({ deps: false }),
modify(
{
// prettier-ignore
find: /'__CITATIONS__'/g,
replace: JSON.stringify(citationData, null, 2),
},
{
// Patch to mitigate DOM Clobbering vulnerability
find: /document\.currentScript/g,
replace: `(typeof document !== 'undefined' &&
document.currentScript &&
document.currentScript.tagName &&
document.currentScript.tagName.toUpperCase() === 'SCRIPT' &&
document.currentScript)`,
}
),
modify({
// prettier-ignore
find: /'__CITATIONS__'/g,
replace: JSON.stringify(citationData, null, 2),
}),
resolve({ preferBuiltins: false }),
esbuild({ ...esBuildPluginOptions, target: "esnext" }),
commonjs(commonjsPluginOptions),
Expand All @@ -152,22 +130,11 @@ const makeConfig = ({
input,
plugins: [
externals({ deps: false }),
modify(
{
// prettier-ignore
find: /'__CITATIONS__'/g,
replace: JSON.stringify(citationData, null, 2),
},
{
// Patch to mitigate DOM Clobbering vulnerability
find: /document\.currentScript/g,
replace: `(typeof document !== 'undefined' &&
document.currentScript &&
document.currentScript.tagName &&
document.currentScript.tagName.toUpperCase() === 'SCRIPT' &&
document.currentScript)`,
}
),
modify({
// prettier-ignore
find: /'__CITATIONS__'/g,
replace: JSON.stringify(citationData, null, 2),
}),
resolve({ preferBuiltins: false }),
esbuild({ ...esBuildPluginOptions, target: "es2015", minify: true }),
commonjs(commonjsPluginOptions),
Expand Down
30 changes: 7 additions & 23 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
package-mode = false

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"
certifi = "^2024.07.04"
urllib3 = "^2.3.0"

[tool.poetry.dev-dependencies]
mkdocs = "^1.6.0"
Expand Down

0 comments on commit 35bfccc

Please sign in to comment.