From 1ef290a2c965d167729fc3355bde880d7bac42aa Mon Sep 17 00:00:00 2001 From: martinRenou Date: Thu, 20 Jan 2022 09:17:18 +0100 Subject: [PATCH] Fix CI --- package.json | 1 + webpack.lab.config.js | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 webpack.lab.config.js diff --git a/package.json b/package.json index f4b74775..86afb443 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "jupyterlab": { "extension": "lib/plugin", "outputDir": "ipympl/labextension/", + "webpackConfig": "webpack.lab.config.js", "sharedPackages": { "@jupyter-widgets/base": { "bundled": false, diff --git a/webpack.lab.config.js b/webpack.lab.config.js new file mode 100644 index 00000000..b5c505cc --- /dev/null +++ b/webpack.lab.config.js @@ -0,0 +1,6 @@ +const crypto = require('crypto'); + +// Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL +const cryptoOrigCreateHash = crypto.createHash; +crypto.createHash = (algorithm) => + cryptoOrigCreateHash(algorithm == 'md4' ? 'sha256' : algorithm);