Socket
Socket
Sign inDemoInstall

npm-profile

Package Overview
Dependencies
72
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.2.0 to 6.2.1

9

lib/index.js

@@ -59,2 +59,3 @@ 'use strict'

const target = '/-/v1/login'
const doneEmitter = new EventEmitter()
return fetch(target, {

@@ -64,5 +65,2 @@ ...opts,

body,
headers: {
'npm-use-webauthn': opts.authType === 'webauthn',
},
}).then(res => {

@@ -80,4 +78,2 @@ return Promise.all([res, res.json()])

const doneEmitter = new EventEmitter()
const openPromise = opener(loginUrl, doneEmitter)

@@ -99,2 +95,5 @@ const webAuthCheckPromise = webAuthCheckLogin(doneUrl, { ...opts, cache: false })

}).catch(er => {
// cancel open prompt if it's present
doneEmitter.emit('abort')
if ((er.statusCode >= 400 && er.statusCode <= 499) || er.statusCode === 500) {

@@ -101,0 +100,0 @@ throw new WebLoginNotSupported('POST', {

{
"name": "npm-profile",
"version": "6.2.0",
"version": "6.2.1",
"description": "Library for updating an npmjs.com profile",

@@ -5,0 +5,0 @@ "keywords": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc