File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 114114 },
115115 "jupyterlab" : {
116116 "extension" : " lib/plugin" ,
117+ "webpackConfig" : " webpack.lab.config.js" ,
117118 "outputDir" : " ./ipydatagrid/labextension" ,
118119 "sharedPackages" : {
119120 "@jupyter-widgets/base" : {
Original file line number Diff line number Diff line change @@ -3,6 +3,14 @@ const version = require('./package.json').version;
33
44const luminoThemeImages = / ^ .* @ l u m i n o \/ d e f a u l t - t h e m e .* .p n g $ / ;
55
6+ const crypto = require ( 'crypto' ) ;
7+
8+ // Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
9+ const cryptoOrigCreateHash = crypto . createHash ;
10+ crypto . createHash = ( algorithm ) =>
11+ cryptoOrigCreateHash ( algorithm == 'md4' ? 'sha256' : algorithm ) ;
12+
13+
614// Custom webpack rules
715const rules = [
816 { test : / \. t s $ / , loader : 'ts-loader' } ,
Original file line number Diff line number Diff line change 1+ const crypto = require ( 'crypto' ) ;
2+
3+ // Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
4+ const cryptoOrigCreateHash = crypto . createHash ;
5+ crypto . createHash = ( algorithm ) =>
6+ cryptoOrigCreateHash ( algorithm == 'md4' ? 'sha256' : algorithm ) ;
You can’t perform that action at this time.
0 commit comments