New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

is-github-user-or-org

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-github-user-or-org - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

cli.js

@@ -6,4 +6,4 @@ #!/usr/bin/env node

const getGithubUser = require('./')
const Promise = require('bluebird')
const ghauth = Promise.promisify(require('ghauth'))
const pify = require('pify');
const ghauth = pify(require('ghauth'))
const authOptions = {

@@ -39,3 +39,3 @@ configName: 'isGitHubUserOrOrg',

} else {
Promise.try(() => ghauth(authOptions))
ghauth(authOptions)
.then((authData) => getGithubUser(cli.input[0], authData))

@@ -42,0 +42,0 @@ .then((response) => console.log(response))

'use strict'
const Octokat = require('octokat')
const Promise = require('bluebird')
const isArray = require('is-array')
const getGithubUser = require('get-github-user')

@@ -11,6 +9,5 @@ var octo

var opts = opts || {}
const token = opts.token || process.env.GITHUB_TOKEN
octo = new Octokat({
token: opts.token || process.env.GITHUB_TOKEN
})
octo = new Octokat({token})

@@ -21,3 +18,3 @@ if (typeof user !== 'string') {

return getGithubUser(user).then((res) => {
return getGithubUser(user, {token}).then((res) => {
if (res && res[0] && res[0].type) {

@@ -24,0 +21,0 @@ return res[0].type

{
"name": "is-github-user-or-org",
"version": "1.0.1",
"version": "1.0.2",
"description": "Determines whether a GitHub profile is a User or an Organization",

@@ -36,8 +36,7 @@ "license": "MIT",

"dependencies": {
"bluebird": "^3.1.1",
"get-github-user": "^0.1.1",
"ghauth": "^3.2.0",
"is-array": "^1.0.1",
"meow": "^3.6.0",
"octokat": "^0.4.15"
"octokat": "^0.4.15",
"pify": "^2.3.0"
},

@@ -54,5 +53,5 @@ "devDependencies": {

"coordinates": [
45.5191926,
-73.57888609999999
45.51916929999999,
-73.5789234
]
}
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