You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason when running the script in node 12 the events of the stream-json library are not waited on.
The following works well with node 14 > but not with node 12.
awaitnewPromise(function(resolve,rejects){verifierStream.on('close',function(){resolve();});verifier.on('error',error=>{rejects({message: `Json file is not valid: ${jsonFile}: ${error.message}`,file: jsonFile,error: error.message})});});
The text was updated successfully, but these errors were encountered:
For some reason when running the script in
node 12
the events of thestream-json
library are not waited on.The following works well with node 14 > but not with node 12.
The text was updated successfully, but these errors were encountered: