@google-cloud/common
Advanced tools
Comparing version 0.15.1 to 0.16.0
{ | ||
"name": "@google-cloud/common", | ||
"description": "Common components for Cloud APIs Node.js Client Libraries", | ||
"version": "0.15.1", | ||
"version": "0.16.0", | ||
"license": "Apache-2.0", | ||
@@ -43,3 +43,5 @@ "author": "Google Inc.", | ||
"test-no-cover": "repo-tools test run --cmd mocha -- test/*.js --no-timeouts", | ||
"test": "repo-tools test run --cmd npm -- run cover" | ||
"test": "repo-tools test run --cmd npm -- run cover", | ||
"posttest": "npm run license-check", | ||
"license-check": "jsgl --local ." | ||
}, | ||
@@ -54,3 +56,3 @@ "dependencies": { | ||
"extend": "^3.0.1", | ||
"google-auto-auth": "^0.8.0", | ||
"google-auto-auth": "^0.9.0", | ||
"is": "^3.2.0", | ||
@@ -73,8 +75,9 @@ "log-driver": "^1.2.5", | ||
"eslint-config-prettier": "^2.7.0", | ||
"eslint-plugin-node": "^5.2.1", | ||
"eslint-plugin-node": "^6.0.0", | ||
"eslint-plugin-prettier": "^2.3.1", | ||
"ink-docstrap": "^1.3.0", | ||
"intelli-espower-loader": "^1.0.1", | ||
"js-green-licenses": "^0.4.0", | ||
"jsdoc": "^3.5.5", | ||
"mocha": "^4.0.1", | ||
"mocha": "^5.0.0", | ||
"nyc": "^11.3.0", | ||
@@ -81,0 +84,0 @@ "power-assert": "^1.4.4", |
@@ -6,5 +6,5 @@ <img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/> | ||
[![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) | ||
[![CircleCI](https://img.shields.io/circleci/project/github/googlecloudplatform/google-cloud-node.svg?style=flat)](https://circleci.com/gh/googlecloudplatform/google-cloud-node) | ||
[![AppVeyor](https://ci.appveyor.com/api/projects/status/github/googlecloudplatform/google-cloud-node?branch=master&svg=true)](https://ci.appveyor.com/project/googlecloudplatform/google-cloud-node) | ||
[![codecov](https://img.shields.io/codecov/c/github/googlecloudplatform/google-cloud-node/master.svg?style=flat)](https://codecov.io/gh/googlecloudplatform/google-cloud-node) | ||
[![CircleCI](https://img.shields.io/circleci/project/github/googleapis/nodejs-common.svg?style=flat)](https://circleci.com/gh/googleapis/nodejs-common) | ||
[![AppVeyor](https://ci.appveyor.com/api/projects/status/github/googleapis/nodejs-common?branch=master&svg=true)](https://ci.appveyor.com/project/googleapis/nodejs-common) | ||
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-common/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-common) | ||
@@ -11,0 +11,0 @@ > Node.js idiomatic client for [Common][product-docs]. |
@@ -151,3 +151,3 @@ /*! | ||
return { | ||
var parsedArguments = { | ||
query: query || {}, | ||
@@ -159,2 +159,9 @@ autoPaginate: autoPaginate, | ||
}; | ||
parsedArguments.streamOptions = extend(true, {}, parsedArguments.query); | ||
delete parsedArguments.streamOptions.autoPaginate; | ||
delete parsedArguments.streamOptions.maxResults; | ||
delete parsedArguments.streamOptions.pageSize; | ||
return parsedArguments; | ||
}; | ||
@@ -220,2 +227,3 @@ | ||
maxApiCalls: parsedArguments.maxApiCalls, | ||
streamOptions: parsedArguments.streamOptions, | ||
}); | ||
@@ -222,0 +230,0 @@ |
@@ -638,11 +638,13 @@ /** | ||
* make. | ||
* @param {object} options.streamOptions - Options to pass to the Stream | ||
* constructor. | ||
*/ | ||
function createLimiter(makeRequestFn, options) { | ||
var stream = streamEvents(through.obj()); | ||
options = options || {}; | ||
var stream = streamEvents(through.obj(options.streamOptions)); | ||
var requestsMade = 0; | ||
var requestsToMake = -1; | ||
options = options || {}; | ||
if (is.number(options.maxApiCalls)) { | ||
@@ -649,0 +651,0 @@ requestsToMake = options.maxApiCalls; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
73308
1666
17
1
+ Addedabort-controller@3.0.0(transitive)
+ Addedagent-base@4.3.0(transitive)
+ Addedaxios@0.18.1(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedes6-promisify@5.0.0(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedfollow-redirects@1.5.10(transitive)
+ Addedgaxios@1.8.4(transitive)
+ Addedgcp-metadata@0.6.3(transitive)
+ Addedgoogle-auth-library@1.6.1(transitive)
+ Addedgoogle-auto-auth@0.9.7(transitive)
+ Addedgoogle-p12-pem@1.0.5(transitive)
+ Addedgtoken@2.3.3(transitive)
+ Addedhttps-proxy-agent@2.2.4(transitive)
+ Addedis-buffer@2.0.5(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmime@2.6.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addednode-forge@0.10.0(transitive)
+ Addedpify@4.0.1(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedretry-axios@0.3.2(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedgcp-metadata@0.3.1(transitive)
- Removedgoogle-auth-library@0.12.0(transitive)
- Removedgoogle-auto-auth@0.8.2(transitive)
- Removedgoogle-p12-pem@0.1.2(transitive)
- Removedgtoken@1.2.3(transitive)
- Removedlodash.merge@4.6.2(transitive)
- Removedmime@1.6.0(transitive)
- Removednode-forge@0.7.6(transitive)
Updatedgoogle-auto-auth@^0.9.0