Socket
Socket
Sign inDemoInstall

@google-cloud/common

Package Overview
Dependencies
Maintainers
1
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 4.0.3 to 5.0.0

24

build/src/service-object.d.ts

@@ -5,3 +5,3 @@ /// <reference types="node" />

import { ApiError, BodyResponseCallback, DecorateRequestOptions } from './util';
export declare type RequestResponse = [Metadata, r.Response];
export type RequestResponse = [Metadata, r.Response];
export interface ServiceObjectParent {

@@ -16,7 +16,7 @@ interceptors: Interceptor[];

}
export declare type GetMetadataOptions = object;
export declare type Metadata = any;
export declare type MetadataResponse = [Metadata, r.Response];
export declare type MetadataCallback = (err: Error | null, metadata?: Metadata, apiResponse?: r.Response) => void;
export declare type ExistsOptions = object;
export type GetMetadataOptions = object;
export type Metadata = any;
export type MetadataResponse = [Metadata, r.Response];
export type MetadataCallback = (err: Error | null, metadata?: Metadata, apiResponse?: r.Response) => void;
export type ExistsOptions = object;
export interface ExistsCallback {

@@ -70,7 +70,7 @@ (err: Error | null, exists?: boolean): void;

}
export declare type CreateResponse<T> = any[];
export type CreateResponse<T> = any[];
export interface CreateCallback<T> {
(err: ApiError | null, instance?: T | null, ...args: any[]): void;
}
export declare type DeleteOptions = {
export type DeleteOptions = {
ignoreNotFound?: boolean;

@@ -87,9 +87,9 @@ } & object;

}
declare type GetOrCreateOptions = GetConfig & CreateOptions;
export declare type GetResponse<T> = [T, r.Response];
type GetOrCreateOptions = GetConfig & CreateOptions;
export type GetResponse<T> = [T, r.Response];
export interface ResponseCallback {
(err?: Error | null, apiResponse?: r.Response): void;
}
export declare type SetMetadataResponse = [Metadata];
export declare type SetMetadataOptions = object;
export type SetMetadataResponse = [Metadata];
export type SetMetadataOptions = object;
/**

@@ -96,0 +96,0 @@ * ServiceObject is a base class, meant to be inherited from by a "service

@@ -7,3 +7,3 @@ /// <reference types="node" />

import { Interceptor } from './service-object';
export declare type ResponseBody = any;
export type ResponseBody = any;
export interface DuplexifyOptions extends DuplexOptions {

@@ -38,3 +38,3 @@ autoDestroy?: boolean;

}
export declare type AbortableDuplex = Duplexify & Abortable;
export type AbortableDuplex = Duplexify & Abortable;
export interface PackageJson {

@@ -41,0 +41,0 @@ name: string;

@@ -7,2 +7,13 @@ # Changelog

## [5.0.0](https://github.com/googleapis/nodejs-common/compare/v4.0.3...v5.0.0) (2023-08-09)
### ⚠ BREAKING CHANGES
* upgrade to Node 14 ([#782](https://github.com/googleapis/nodejs-common/issues/782))
### Miscellaneous Chores
* Upgrade to Node 14 ([#782](https://github.com/googleapis/nodejs-common/issues/782)) ([9651316](https://github.com/googleapis/nodejs-common/commit/96513160dd3d9deabc4e4f30509386a2171bb50e))
## [4.0.3](https://github.com/googleapis/nodejs-common/compare/v4.0.2...v4.0.3) (2022-08-23)

@@ -9,0 +20,0 @@

{
"name": "@google-cloud/common",
"description": "Common components for Cloud APIs Node.js Client Libraries",
"version": "4.0.3",
"version": "5.0.0",
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
},

@@ -35,4 +35,4 @@ "repository": "googleapis/nodejs-common",

"dependencies": {
"@google-cloud/projectify": "^3.0.0",
"@google-cloud/promisify": "^3.0.0",
"@google-cloud/projectify": "^4.0.0",
"@google-cloud/promisify": "^4.0.0",
"arrify": "^2.0.1",

@@ -42,5 +42,5 @@ "duplexify": "^4.1.1",

"extend": "^3.0.2",
"google-auth-library": "^8.0.2",
"retry-request": "^5.0.0",
"teeny-request": "^8.0.0"
"google-auth-library": "^9.0.0",
"retry-request": "^6.0.0",
"teeny-request": "^9.0.0"
},

@@ -54,3 +54,3 @@ "devDependencies": {

"@types/ncp": "^2.0.3",
"@types/node": "^16.0.0",
"@types/node": "^20.4.9",
"@types/proxyquire": "^1.3.28",

@@ -60,5 +60,5 @@ "@types/request": "^2.48.4",

"@types/tmp": "0.2.3",
"c8": "^7.1.0",
"c8": "^8.0.1",
"codecov": "^3.6.5",
"gts": "^3.1.0",
"gts": "^5.0.0",
"linkinator": "^4.0.0",

@@ -70,6 +70,6 @@ "mocha": "^9.2.2",

"proxyquire": "^2.1.3",
"sinon": "^14.0.0",
"sinon": "^15.0.0",
"tmp": "0.2.1",
"typescript": "^4.6.4"
"typescript": "^5.1.6"
}
}

@@ -58,3 +58,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).
Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
Libraries are compatible with all current _active_ and _maintenance_ versions of

@@ -61,0 +61,0 @@ Node.js.

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