Skip to content

Commit 35bfccc

Browse files
committed
update urllib to ^2.3.0 and python to v9
1 parent 6707a79 commit 35bfccc

File tree

3 files changed

+24
-72
lines changed

3 files changed

+24
-72
lines changed

packages/config/rollup.js

Lines changed: 15 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,11 @@ const makeConfig = ({
7676
input,
7777
plugins: [
7878
externals(),
79-
modify(
80-
{
81-
// prettier-ignore
82-
find: /'__CITATIONS__'/g,
83-
replace: JSON.stringify(citationData, null, 2),
84-
},
85-
{
86-
// Patch to mitigate DOM Clobbering vulnerability
87-
find: /document\.currentScript/g,
88-
replace: `(typeof document !== 'undefined' &&
89-
document.currentScript &&
90-
document.currentScript.tagName &&
91-
document.currentScript.tagName.toUpperCase() === 'SCRIPT' &&
92-
document.currentScript)`,
93-
}
94-
),
79+
modify({
80+
// prettier-ignore
81+
find: /'__CITATIONS__'/g,
82+
replace: JSON.stringify(citationData, null, 2),
83+
}),
9584
esbuild({ ...esBuildPluginOptions, target: "node18" }),
9685
commonjs(commonjsPluginOptions),
9786
],
@@ -117,22 +106,11 @@ const makeConfig = ({
117106
input,
118107
plugins: [
119108
externals({ deps: false }),
120-
modify(
121-
{
122-
// prettier-ignore
123-
find: /'__CITATIONS__'/g,
124-
replace: JSON.stringify(citationData, null, 2),
125-
},
126-
{
127-
// Patch to mitigate DOM Clobbering vulnerability
128-
find: /document\.currentScript/g,
129-
replace: `(typeof document !== 'undefined' &&
130-
document.currentScript &&
131-
document.currentScript.tagName &&
132-
document.currentScript.tagName.toUpperCase() === 'SCRIPT' &&
133-
document.currentScript)`,
134-
}
135-
),
109+
modify({
110+
// prettier-ignore
111+
find: /'__CITATIONS__'/g,
112+
replace: JSON.stringify(citationData, null, 2),
113+
}),
136114
resolve({ preferBuiltins: false }),
137115
esbuild({ ...esBuildPluginOptions, target: "esnext" }),
138116
commonjs(commonjsPluginOptions),
@@ -152,22 +130,11 @@ const makeConfig = ({
152130
input,
153131
plugins: [
154132
externals({ deps: false }),
155-
modify(
156-
{
157-
// prettier-ignore
158-
find: /'__CITATIONS__'/g,
159-
replace: JSON.stringify(citationData, null, 2),
160-
},
161-
{
162-
// Patch to mitigate DOM Clobbering vulnerability
163-
find: /document\.currentScript/g,
164-
replace: `(typeof document !== 'undefined' &&
165-
document.currentScript &&
166-
document.currentScript.tagName &&
167-
document.currentScript.tagName.toUpperCase() === 'SCRIPT' &&
168-
document.currentScript)`,
169-
}
170-
),
133+
modify({
134+
// prettier-ignore
135+
find: /'__CITATIONS__'/g,
136+
replace: JSON.stringify(citationData, null, 2),
137+
}),
171138
resolve({ preferBuiltins: false }),
172139
esbuild({ ...esBuildPluginOptions, target: "es2015", minify: true }),
173140
commonjs(commonjsPluginOptions),

poetry.lock

Lines changed: 7 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
package-mode = false
33

44
[tool.poetry.dependencies]
5-
python = "^3.8"
5+
python = "^3.9"
66
certifi = "^2024.07.04"
7+
urllib3 = "^2.3.0"
78

89
[tool.poetry.dev-dependencies]
910
mkdocs = "^1.6.0"

0 commit comments

Comments
 (0)