import argon2 from 'argon2';
import nock from 'nock'
export default async function argon2Hash({
text
}) {
const hash = await argon2.hash(text);
return hash;
}
{
"error": {
"nodeId": "test-node-1706860303764",
"nodeName": "Blank Script",
"stage": "building node",
"errorObject": {
"errors": [
{
"id": "",
"location": {
"column": 28,
"file": "../../../tmp/test-node-17068603037648SnTFo/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js",
"length": 13,
"line": 43,
"lineText": " const AWSMock = require('mock-aws-s3');",
"namespace": "",
"suggestion": ""
},
"notes": [
{
"location": null,
"text": "You can mark the path \"mock-aws-s3\" as external to exclude it from the bundle, which will remove this error. You can also surround this \"require\" call with a try/catch block to handle this failure at run-time instead of bundle-time."
}
],
"pluginName": "",
"text": "Could not resolve \"mock-aws-s3\""
},
{
"id": "",
"location": {
"column": 22,
"file": "../../../tmp/test-node-17068603037648SnTFo/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js",
"length": 9,
"line": 76,
"lineText": " const AWS = require('aws-sdk');",
"namespace": "",
"suggestion": ""
},
"notes": [
{
"location": null,
"text": "You can mark the path \"aws-sdk\" as external to exclude it from the bundle, which will remove this error. You can also surround this \"require\" call with a try/catch block to handle this failure at run-time instead of bundle-time."
}
],
"pluginName": "",
"text": "Could not resolve \"aws-sdk\""
}
],
"warnings": []
}
},
"buildId": "1706871833368"
}