Socket
Socket
Sign inDemoInstall

github

Package Overview
Dependencies
Maintainers
5
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github - npm Package Compare versions

Comparing version 13.0.1 to 13.0.2

5

lib/index.js

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

var getProxyForUrl = require('proxy-from-env').getProxyForUrl
var isStream = require('is-stream')
var toCamelCase = require('lodash/camelCase')

@@ -781,2 +782,6 @@ var urlTemplate = require('url-template')

if (hasFileBody) {
if (isStream(msg.file)) {
return msg.file.pipe(req)
}
req.write(Buffer.from(msg.file))

@@ -783,0 +788,0 @@ }

99

package.json

@@ -1,1 +0,98 @@

{"name":"github","version":"13.0.1","description":"NodeJS wrapper for the GitHub API","author":"Mike de Boer <info@mikedeboer.nl>","contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"repository":"https://github.com/octokit/node-github","engines":{"node":">=4"},"dependencies":{"debug":"^3.1.0","dotenv":"^4.0.0","https-proxy-agent":"^2.1.0","lodash":"^4.17.4","proxy-from-env":"^1.0.0","url-template":"^2.0.8"},"devDependencies":{"@octokit/fixtures":"^5.4.0","apidoc":"^0.17.6","chai":"^4.1.2","coveralls":"^3.0.0","gh-pages-with-token":"^1.0.0","glob":"^7.1.2","mkdirp":"^0.5.1","mocha":"^4.0.1","mustache":"^2.2.1","nock":"^9.1.0","npm-run-all":"^4.1.1","nyc":"^11.2.1","proxyquire":"^1.8.0","semantic-release":"^11.0.0","simple-mock":"^0.8.0","standard":"^10.0.3","standard-markdown":"^4.0.2"},"main":"lib","types":"lib/index.d.ts","scripts":{"coverage":"nyc report --reporter=html && open coverage/index.html","coverage:upload":"nyc report --reporter=text-lcov | coveralls","pretest":"standard && standard-markdown","test":"nyc mocha test/**/*-test.js","build":"npm-run-all build:*","prebuild:docs":"mkdirp doc/","build:docs":"node scripts/generate-api-docs","postbuild:docs":"apidoc -i doc/ -o apidoc/","build:flow":"node scripts/generate-flow-types","build:ts":"node scripts/generate-typescript-types","deploy-docs":"gh-pages-with-token -d apidoc","presemantic-release":"npm run -s build","semantic-release":"semantic-release","postpublish":"npm run -s deploy-docs"},"license":"MIT","licenses":[{"type":"The MIT License","url":"http://www.opensource.org/licenses/mit-license.php"}],"files":["lib"],"apidoc":{"template":{"withCompare":false}},"nyc":{"ignore":["examples","test"]},"publishConfig":{"tag":"next"}}
{
"name": "github",
"version": "13.0.2",
"description": "GitHub REST API client for Node.js",
"author": "Mike de Boer <info@mikedeboer.nl>",
"contributors": [
{
"name": "Mike de Boer",
"email": "info@mikedeboer.nl"
},
{
"name": "Fabian Jakobs",
"email": "fabian@c9.io"
},
{
"name": "Joe Gallo",
"email": "joe@brassafrax.com"
},
{
"name": "Gregor Martynus",
"url": "https://github.com/gr2m"
}
],
"repository": "https://github.com/octokit/node-github",
"engines": {
"node": ">=4"
},
"dependencies": {
"debug": "^3.1.0",
"dotenv": "^4.0.0",
"https-proxy-agent": "^2.1.0",
"is-stream": "^1.1.0",
"lodash": "^4.17.4",
"proxy-from-env": "^1.0.0",
"url-template": "^2.0.8"
},
"devDependencies": {
"@octokit/fixtures": "^5.4.0",
"apidoc": "^0.17.6",
"chai": "^4.1.2",
"coveralls": "^3.0.0",
"gh-pages-with-token": "^1.0.0",
"glob": "^7.1.2",
"mkdirp": "^0.5.1",
"mocha": "^4.0.1",
"mustache": "^2.2.1",
"nock": "^9.1.0",
"npm-run-all": "^4.1.1",
"nyc": "^11.2.1",
"proxyquire": "^1.8.0",
"semantic-release": "^11.0.0",
"simple-mock": "^0.8.0",
"standard": "^10.0.3",
"standard-markdown": "^4.0.2"
},
"main": "lib",
"types": "lib/index.d.ts",
"scripts": {
"coverage": "nyc report --reporter=html && open coverage/index.html",
"coverage:upload": "nyc report --reporter=text-lcov | coveralls",
"pretest": "standard && standard-markdown",
"test": "nyc mocha test/**/*-test.js",
"build": "npm-run-all build:*",
"prebuild:docs": "mkdirp doc/",
"build:docs": "node scripts/generate-api-docs",
"postbuild:docs": "apidoc -i doc/ -o apidoc/",
"build:flow": "node scripts/generate-flow-types",
"build:ts": "node scripts/generate-typescript-types",
"deploy-docs": "gh-pages-with-token -d apidoc",
"presemantic-release": "npm run -s build",
"semantic-release": "semantic-release",
"postpublish": "npm run -s deploy-docs"
},
"license": "MIT",
"licenses": [
{
"type": "The MIT License",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
],
"files": [
"lib"
],
"apidoc": {
"template": {
"withCompare": false
}
},
"nyc": {
"ignore": [
"examples",
"test"
]
},
"publishConfig": {
"tag": "next"
}
}

6

README.md
# node-github
> GitHub REST API client for Node.js
[![Build Status](https://travis-ci.org/octokit/node-github.svg?branch=master)](https://travis-ci.org/octokit/node-github)

@@ -8,4 +10,2 @@ [![Coverage Status](https://coveralls.io/repos/github/octokit/node-github/badge.svg)](https://coveralls.io/github/octokit/node-github)

A Node.js wrapper for GitHub API.
## Installation

@@ -161,3 +161,3 @@

Set `DEBUG=node-github:*` for additioanl debug logs.
Set `DEBUG=node-github*` for additional debug logs.

@@ -164,0 +164,0 @@ ## Tests

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