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
Hey @isaacs. Trying to use package. But I'm not quite sure if I'm using it correctly 😀 . when trying to pass the contents of package-lock.json to opts.body like this...
constjson=awaitnpmFetch.json('/-/npm/v1/security/audits',{method: 'POST',body: packageLockJsonContents,// this is just the contents of a package-lock.json parsed as an object});console.log(JSON.stringify(json,'',3));
But I get the following error:
Failed to fetch audit report for repo npm. status: 400 cause: {"statusCode":400,"error":"Bad Request","message":"Invalid request payload input"}
How should the opts.body be formatted? Thanks!
The text was updated successfully, but these errors were encountered:
Hey @isaacs. Trying to use package. But I'm not quite sure if I'm using it correctly 😀 . when trying to pass the contents of package-lock.json to
opts.body
like this...But I get the following error:
How should the
opts.body
be formatted? Thanks!The text was updated successfully, but these errors were encountered: