Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.18.5 to 0.18.6

4

build/src/service-object.d.ts

@@ -21,3 +21,3 @@ /// <reference types="request" />

import { Service } from '.';
import { ApiError, DecorateRequestOptions } from './util';
import { ApiError, BodyResponseCallback, DecorateRequestOptions } from './util';
export interface Interceptor {

@@ -183,3 +183,3 @@ [index: string]: any;

request(reqOpts: DecorateRequestOptions): Promise<r.Response>;
request(reqOpts: DecorateRequestOptions, callback: r.RequestCallback): void;
request(reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void;
/**

@@ -186,0 +186,0 @@ * Make an authenticated API request.

@@ -278,3 +278,3 @@ "use strict";

}
this.request_(reqOpts).then(function (res) { return callback(null, res, res.body); }, function (err) { return callback(err, null, null); });
this.request_(reqOpts).then(function (res) { return callback(null, res.body, res); }, function (err) { return callback(err, null, null); });
};

@@ -281,0 +281,0 @@ /**

@@ -19,3 +19,3 @@ /// <reference types="request" />

import { StreamRequestOptions } from './service-object';
import { DecorateRequestOptions, MakeAuthenticatedRequest, PackageJson } from './util';
import { BodyResponseCallback, DecorateRequestOptions, MakeAuthenticatedRequest, PackageJson } from './util';
export interface ServiceConfig {

@@ -98,3 +98,3 @@ /**

request(reqOpts: DecorateRequestOptions): Promise<r.Response>;
request(reqOpts: DecorateRequestOptions, callback: r.RequestCallback): void;
request(reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void;
/**

@@ -101,0 +101,0 @@ * Make an authenticated API request.

@@ -191,3 +191,3 @@ "use strict";

}
this.request_(reqOpts).then(function (res) { return callback(null, res, res.body); }, function (err) { return callback(err, null, null); });
this.request_(reqOpts).then(function (res) { return callback(null, res.body, res); }, function (err) { return callback(err, null, null); });
};

@@ -194,0 +194,0 @@ /**

{
"name": "@google-cloud/common",
"description": "Common components for Cloud APIs Node.js Client Libraries",
"version": "0.18.5",
"version": "0.18.6",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "author": "Google Inc.",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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