Comparing version 13.0.1 to 13.0.2
@@ -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 @@ } |
@@ -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" | ||
} | ||
} |
# 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 |
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
542277
12106
7
+ Addedis-stream@^1.1.0
+ Addedis-stream@1.1.0(transitive)