Skip to content

feat(packages/sui-js): using a pure js function to make this utility hashing function isomorphic #2703

feat(packages/sui-js): using a pure js function to make this utility hashing function isomorphic

feat(packages/sui-js): using a pure js function to make this utility hashing function isomorphic #2703

Triggered via pull request March 22, 2024 16:44
Status Failure
Total duration 2m 0s
Artifacts

node.js.yml

on: pull_request
Checks & Release
1m 51s
Checks & Release
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Checks & Release: packages/sui-js/src/hash/index.js#L1
Replace `"./sha256.js";` with `'./sha256.js'`
Checks & Release: packages/sui-js/src/hash/sha256.js#L39
Replace `··const·defaults·=·{·msgFormat:·'string',·outFormat:·'hex'·};` with `const·defaults·=·{msgFormat:·'string',·outFormat:·'hex'}`
Checks & Release: packages/sui-js/src/hash/sha256.js#L40
Replace `··const·opt·=·Object.assign(defaults,·options);` with `const·opt·=·Object.assign(defaults,·options)`
Checks & Release: packages/sui-js/src/hash/sha256.js#L45
Default clause should be the last clause
Checks & Release: packages/sui-js/src/hash/sha256.js#L46
Replace `····case·'string':···msg·=·utf8Encode(msg);·······break;` with `case·'string':⏎········msg·=·utf8Encode(msg)⏎········break`
Checks & Release
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: styfle/cancel-workflow-action@0.6.0, actions/checkout@v2, actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Checks & Release
The following actions uses node12 which is deprecated and will be forced to run on node16: styfle/cancel-workflow-action@0.6.0, actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/