diff --git a/packages/config/rollup.js b/packages/config/rollup.js index 39cdc1ea46..2dbc2d16e0 100644 --- a/packages/config/rollup.js +++ b/packages/config/rollup.js @@ -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), ], @@ -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), @@ -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), diff --git a/poetry.lock b/poetry.lock index 0b79638162..275bd987e2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -12,9 +12,6 @@ files = [ {file = "babel-2.15.0.tar.gz", hash = "sha256:8daf0e265d05768bc6c7a314cf1321e9a123afc328cc635c18622a2f30a04413"}, ] -[package.dependencies] -pytz = {version = ">=2015.7", markers = "python_version < \"3.9\""} - [package.extras] dev = ["freezegun (>=1.0,<2.0)", "pytest (>=6.0)", "pytest-cov"] @@ -579,19 +576,6 @@ files = [ [package.dependencies] six = ">=1.5" -[[package]] -name = "pytz" -version = "2024.1" -description = "World timezone definitions, modern and historical" -optional = false -python-versions = "*" -groups = ["dev"] -markers = "python_version < \"3.9\"" -files = [ - {file = "pytz-2024.1-py2.py3-none-any.whl", hash = "sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319"}, - {file = "pytz-2024.1.tar.gz", hash = "sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812"}, -] - [[package]] name = "pyyaml" version = "6.0.1" @@ -793,14 +777,14 @@ files = [ [[package]] name = "urllib3" -version = "2.2.1" +version = "2.3.0" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false -python-versions = ">=3.8" -groups = ["dev"] +python-versions = ">=3.9" +groups = ["main", "dev"] files = [ - {file = "urllib3-2.2.1-py3-none-any.whl", hash = "sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d"}, - {file = "urllib3-2.2.1.tar.gz", hash = "sha256:d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19"}, + {file = "urllib3-2.3.0-py3-none-any.whl", hash = "sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df"}, + {file = "urllib3-2.3.0.tar.gz", hash = "sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d"}, ] [package.extras] @@ -887,5 +871,5 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.1" -python-versions = "^3.8" -content-hash = "3e471d0087cf195180a8fd6f9932f44a6d8eec65d77bf2a86f14a883282c2a60" +python-versions = "^3.9" +content-hash = "84cf171967feb44b236ef0b65c6a0a70a9cf885b7e033b9ab7492d0911b8a933" diff --git a/pyproject.toml b/pyproject.toml index 6e3bdcbcbb..5d313a3324 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"