libnpmteam
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9090
80