Socket
Socket
Sign inDemoInstall

@google-cloud/common

Package Overview
Dependencies
Maintainers
16
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/common - npm Package Compare versions

Comparing version 0.15.1 to 0.16.0

13

package.json
{
"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&#x3D;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;

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