Skip to content

Commit

Permalink
feat!: remove hostname from body
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `hostname` is no longer sent as part of the web auth body

Co-authored-by: Gar <gar+gh@danger.computer>
  • Loading branch information
lukekarrys and wraithgar committed May 2, 2024
1 parent c0bb22f commit d6f6ebe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { URL } = require('node:url')
const timers = require('node:timers/promises')
const os = require('node:os')
const fetch = require('npm-registry-fetch')
const { HttpErrorBase } = require('npm-registry-fetch/lib/errors')
const { log } = require('proc-log')
Expand Down Expand Up @@ -55,10 +54,7 @@ const webAuth = async (opener, opts, body) => {
const res = await fetch('/-/v1/login', {
...opts,
method: 'POST',
body: {
...body,
hostname: opts.hostname || os.hostname(),
},
body,
})

const content = await res.json()
Expand Down

0 comments on commit d6f6ebe

Please sign in to comment.