Skip to content

Commit

Permalink
bump moc (#176)
Browse files Browse the repository at this point in the history
* bump moc

* use node 16, 18

* revert package-lock.json

* fix hash

* fix

* Fix CI for Node 18.x (#177)

* Experiment

* Try SHA-256

* Try SHA-512

* Try different hack

* Move to top of config for clarity

---------

Co-authored-by: Ryan Vandersmith <[email protected]>
  • Loading branch information
chenyan-dfinity and rvanasa committed Jun 25, 2023
1 parent b70f7e0 commit e8ea4fe
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 210 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
fail-fast: false
matrix:
node:
- 14
- 16
- 18
env:
DFX_VERSION: 0.14.1
SKIP_WASM: true
Expand Down
6 changes: 6 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
const { addBeforeLoader, loaderByName } = require("@craco/craco");
const webpack = require("webpack");

// Patch unsupported MD4 hash function for Node >= 17.x
const crypto = require("crypto");
const { createHash } = crypto;
crypto.createHash = (algorithm) =>
createHash(algorithm === "md4" ? "sha256" : algorithm);

let canisterEnv;

function initCanisterIds() {
Expand Down
Loading

0 comments on commit e8ea4fe

Please sign in to comment.