Socket
Socket
Sign inDemoInstall

libnpmteam

Package Overview
Dependencies
Maintainers
5
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libnpmteam - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

12

lib/index.js

@@ -23,11 +23,13 @@ 'use strict'

cmd.destroy = (entity, opts = {}) => {
cmd.destroy = async (entity, opts = {}) => {
const { scope, team } = splitEntity(entity)
validate('SSO', [scope, team, opts])
const uri = `/-/team/${eu(scope)}/${eu(team)}`
return npmFetch.json(uri, {
await npmFetch(uri, {
...opts,
method: 'DELETE',
scope,
ignoreBody: true,
})
return true
}

@@ -47,7 +49,7 @@

cmd.rm = (user, entity, opts = {}) => {
cmd.rm = async (user, entity, opts = {}) => {
const { scope, team } = splitEntity(entity)
validate('SSO', [scope, team, opts])
const uri = `/-/team/${eu(scope)}/${eu(team)}/user`
return npmFetch.json(uri, {
await npmFetch(uri, {
...opts,

@@ -57,3 +59,5 @@ method: 'DELETE',

body: { user },
ignoreBody: true,
})
return true
}

@@ -60,0 +64,0 @@

{
"name": "libnpmteam",
"description": "npm Team management APIs",
"version": "5.0.2",
"version": "5.0.3",
"author": "GitHub Inc.",

@@ -6,0 +6,0 @@ "license": "ISC",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc