Socket
Socket
Sign inDemoInstall

@google-cloud/common

Package Overview
Dependencies
Maintainers
17
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.7 to 0.18.8

10

build/src/index.d.ts

@@ -17,3 +17,3 @@ /*!

export { GoogleAuthOptions } from 'google-auth-library';
export { Logger } from './logger';
export { Logger, LoggerConfig } from './logger';
export { logger } from './logger-compat';

@@ -29,3 +29,3 @@ /**

*/
export { paginator } from './paginator';
export { paginator, Paginator, ParsedArguments } from './paginator';
/**

@@ -35,3 +35,3 @@ * @type {module:common/service}

*/
export { Service } from './service';
export { Service, ServiceConfig, ServiceOptions } from './service';
/**

@@ -41,3 +41,3 @@ * @type {module:common/serviceObject}

*/
export { ServiceObject, ServiceObjectConfig } from './service-object';
export { CreateOptions, DeleteCallback, ExistsCallback, GetConfig, GetMetadataCallback, InstanceResponseCallback, Interceptor, Metadata, Methods, ServiceObject, ServiceObjectConfig, StreamRequestOptions } from './service-object';
/**

@@ -47,2 +47,2 @@ * @type {module:common/util}

*/
export { util } from './util';
export { Abortable, AbortableDuplex, ApiError, util } from './util';

@@ -18,2 +18,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
// Logger is new in 0.18.0.
var logger_1 = require("./logger");

@@ -39,2 +40,3 @@ exports.Logger = logger_1.Logger;

exports.paginator = paginator_1.paginator;
exports.Paginator = paginator_1.Paginator;
/**

@@ -57,3 +59,4 @@ * @type {module:common/service}

var util_1 = require("./util");
exports.ApiError = util_1.ApiError;
exports.util = util_1.util;
//# sourceMappingURL=index.js.map

@@ -16,3 +16,3 @@ /*!

*/
import { Logger, LoggerOptions } from './logger';
import { Logger, LoggerConfig } from './logger';
/**

@@ -22,3 +22,3 @@ * Create a logger to print output to the console.

*/
export declare const logger: ((optionsOrLevel?: string | Partial<LoggerOptions> | undefined) => Logger & {
export declare const logger: ((optionsOrLevel?: string | Partial<LoggerConfig> | undefined) => Logger & {
format: (...args: any[]) => string;

@@ -25,0 +25,0 @@ } & {

@@ -16,3 +16,3 @@ /*!

*/
export interface LoggerOptions {
export interface LoggerConfig {
/**

@@ -40,3 +40,3 @@ * The minimum log level that will print to the console.

*/
static DEFAULT_OPTIONS: Readonly<LoggerOptions>;
static DEFAULT_OPTIONS: Readonly<LoggerConfig>;
[kTag]: string;

@@ -50,4 +50,4 @@ /**

*/
constructor(opts?: Partial<LoggerOptions>);
constructor(opts?: Partial<LoggerConfig>);
[kFormat](level: string, ...args: any[]): string;
}

@@ -17,4 +17,4 @@ /// <reference types="node" />

*/
import { Transform } from 'stream';
export interface ParsedArguments {
import { Transform, TransformOptions } from 'stream';
export interface ParsedArguments extends TransformOptions {
/**

@@ -21,0 +21,0 @@ * Query object. This is most commonly an object, but to make the API more

@@ -78,4 +78,3 @@ "use strict";

if (config.methods) {
var allMethodNames = Object.getOwnPropertyNames(ServiceObject.prototype);
allMethodNames
Object.getOwnPropertyNames(ServiceObject.prototype)
.filter(function (methodName) {

@@ -82,0 +81,0 @@ return (

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

*/
import { GoogleAuth } from 'google-auth-library';
import * as r from 'request';

@@ -51,3 +52,3 @@ import { StreamRequestOptions } from './service-object';

makeAuthenticatedRequest: MakeAuthenticatedRequest;
authClient: any;
authClient: GoogleAuth;
private getCredentials;

@@ -54,0 +55,0 @@ /**

@@ -112,5 +112,3 @@ "use strict";

}
this.getProjectIdAsync()
.then(function (p) { return callback(null, p); }, function (e) { return callback(e); })
.catch(function (e) { return callback(e); });
this.getProjectIdAsync().then(function (p) { return callback(null, p); }, callback);
};

@@ -122,3 +120,3 @@ Service.prototype.getProjectIdAsync = function () {

switch (_a.label) {
case 0: return [4 /*yield*/, pify(this.authClient.getProjectId)()];
case 0: return [4 /*yield*/, this.authClient.getDefaultProjectId()];
case 1:

@@ -125,0 +123,0 @@ projectId = _a.sent();

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

import * as r from 'request';
import { Transform } from 'stream';
import { Transform, TransformOptions } from 'stream';
import { Interceptor } from './service-object';

@@ -73,3 +73,3 @@ export declare type ResponseBody = any;

*/
streamOptions?: any;
streamOptions?: TransformOptions;
}

@@ -76,0 +76,0 @@ export interface GlobalContext {

{
"name": "@google-cloud/common",
"description": "Common components for Cloud APIs Node.js Client Libraries",
"version": "0.18.7",
"version": "0.18.8",
"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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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