New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/secret-manager

Package Overview
Dependencies
Maintainers
4
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/secret-manager - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

9

build/src/index.js
"use strict";
// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -16,6 +16,7 @@ // Licensed under the Apache License, Version 2.0 (the "License");

//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** This file is automatically generated by synthtool. **
// ** https://github.com/googleapis/synthtool **
// ** All changes to this file may be overwritten. **
Object.defineProperty(exports, "__esModule", { value: true });
exports.protos = exports.SecretManagerServiceClient = exports.v1beta1 = exports.v1 = void 0;
const v1 = require("./v1");

@@ -27,4 +28,2 @@ exports.v1 = v1;

exports.SecretManagerServiceClient = SecretManagerServiceClient;
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
exports.default = { v1, v1beta1, SecretManagerServiceClient };

@@ -31,0 +30,0 @@ const protos = require("../protos/protos");

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

var secret_manager_service_client_1 = require("./secret_manager_service_client");
exports.SecretManagerServiceClient = secret_manager_service_client_1.SecretManagerServiceClient;
Object.defineProperty(exports, "SecretManagerServiceClient", { enumerable: true, get: function () { return secret_manager_service_client_1.SecretManagerServiceClient; } });
//# sourceMappingURL=index.js.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.SecretManagerServiceClient = void 0;
const gax = require("google-gax");

@@ -83,11 +84,14 @@ const path = require("path");

opts.port = opts.port || port;
// users can override the config from client side, like retry codes name.
// The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
// The way to override client config for Showcase API:
//
// const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
// const showcaseClient = new showcaseClient({ projectId, customConfig });
opts.clientConfig = opts.clientConfig || {};
const isBrowser = typeof window !== 'undefined';
if (isBrowser) {
opts.fallback = true;
}
// If we are in browser, we are already using fallback because of the
// "browser" field in package.json.
// But if we were explicitly requested to use fallback, let's do it now.
this._gaxModule = !isBrowser && opts.fallback ? gax.fallback : gax;
// If we're running in browser, it's OK to omit `fallback` since
// google-gax has `browser` field in its `package.json`.
// For Electron (which does not respect `browser` field),
// pass `{fallback: true}` to the SecretManagerServiceClient constructor.
this._gaxModule = opts.fallback ? gax.fallback : gax;
// Create a `gaxGrpc` object, with any grpc-specific options

@@ -610,2 +614,10 @@ // sent to the client.

* The request object that will be sent.
* @param {string} request.resource
* REQUIRED: The resource for which the policy is being specified.
* See the operation documentation for the appropriate value for this field.
* @param {google.iam.v1.Policy} request.policy
* REQUIRED: The complete policy to be applied to the `resource`. The size of
* the policy is limited to a few 10s of KB. An empty policy is a
* valid policy but certain Cloud Platform services (such as Projects)
* might reject them.
* @param {object} [options]

@@ -642,2 +654,8 @@ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.

* The request object that will be sent.
* @param {string} request.resource
* REQUIRED: The resource for which the policy is being requested.
* See the operation documentation for the appropriate value for this field.
* @param {google.iam.v1.GetPolicyOptions} request.options
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`. This field is only used by Cloud IAM.
* @param {object} [options]

@@ -679,2 +697,10 @@ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.

* The request object that will be sent.
* @param {string} request.resource
* REQUIRED: The resource for which the policy detail is being requested.
* See the operation documentation for the appropriate value for this field.
* @param {string[]} request.permissions
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed. For more
* information see
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
* @param {object} [options]

@@ -681,0 +707,0 @@ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.

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

var secret_manager_service_client_1 = require("./secret_manager_service_client");
exports.SecretManagerServiceClient = secret_manager_service_client_1.SecretManagerServiceClient;
Object.defineProperty(exports, "SecretManagerServiceClient", { enumerable: true, get: function () { return secret_manager_service_client_1.SecretManagerServiceClient; } });
//# sourceMappingURL=index.js.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.SecretManagerServiceClient = void 0;
const gax = require("google-gax");

@@ -83,11 +84,14 @@ const path = require("path");

opts.port = opts.port || port;
// users can override the config from client side, like retry codes name.
// The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
// The way to override client config for Showcase API:
//
// const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
// const showcaseClient = new showcaseClient({ projectId, customConfig });
opts.clientConfig = opts.clientConfig || {};
const isBrowser = typeof window !== 'undefined';
if (isBrowser) {
opts.fallback = true;
}
// If we are in browser, we are already using fallback because of the
// "browser" field in package.json.
// But if we were explicitly requested to use fallback, let's do it now.
this._gaxModule = !isBrowser && opts.fallback ? gax.fallback : gax;
// If we're running in browser, it's OK to omit `fallback` since
// google-gax has `browser` field in its `package.json`.
// For Electron (which does not respect `browser` field),
// pass `{fallback: true}` to the SecretManagerServiceClient constructor.
this._gaxModule = opts.fallback ? gax.fallback : gax;
// Create a `gaxGrpc` object, with any grpc-specific options

@@ -257,3 +261,3 @@ // sent to the client.

* @param {google.cloud.secrets.v1beta1.Secret} request.secret
* A {@link google.cloud.secrets.v1beta1.Secret|Secret} with initial field values.
* Required. A {@link google.cloud.secrets.v1beta1.Secret|Secret} with initial field values.
* @param {object} [options]

@@ -611,2 +615,10 @@ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.

* The request object that will be sent.
* @param {string} request.resource
* REQUIRED: The resource for which the policy is being specified.
* See the operation documentation for the appropriate value for this field.
* @param {google.iam.v1.Policy} request.policy
* REQUIRED: The complete policy to be applied to the `resource`. The size of
* the policy is limited to a few 10s of KB. An empty policy is a
* valid policy but certain Cloud Platform services (such as Projects)
* might reject them.
* @param {object} [options]

@@ -643,2 +655,8 @@ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.

* The request object that will be sent.
* @param {string} request.resource
* REQUIRED: The resource for which the policy is being requested.
* See the operation documentation for the appropriate value for this field.
* @param {google.iam.v1.GetPolicyOptions} request.options
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`. This field is only used by Cloud IAM.
* @param {object} [options]

@@ -680,2 +698,10 @@ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.

* The request object that will be sent.
* @param {string} request.resource
* REQUIRED: The resource for which the policy detail is being requested.
* See the operation documentation for the appropriate value for this field.
* @param {string[]} request.permissions
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed. For more
* information see
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
* @param {object} [options]

@@ -682,0 +708,0 @@ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.

# Changelog
## [3.1.0](https://www.github.com/googleapis/nodejs-secret-manager/compare/v3.0.0...v3.1.0) (2020-06-18)
### Features
* add Blunderbuss config ([#111](https://www.github.com/googleapis/nodejs-secret-manager/issues/111)) ([312543e](https://www.github.com/googleapis/nodejs-secret-manager/commit/312543e03b19bb9b77ae3dcbccadadc63b5cf66f))
* upgrade library to GA ([#123](https://www.github.com/googleapis/nodejs-secret-manager/issues/123)) ([aa89efa](https://www.github.com/googleapis/nodejs-secret-manager/commit/aa89efaaf93b8d94f2bf9fa1d96725d49552dad2))
* **secrets:** begin migration to secret manager from keystore ([#125](https://www.github.com/googleapis/nodejs-secret-manager/issues/125)) ([a4f483e](https://www.github.com/googleapis/nodejs-secret-manager/commit/a4f483e9eb9122661bc42a1185076af169363d75))
### Bug Fixes
* **samples:** correct usage of toString() ([#117](https://www.github.com/googleapis/nodejs-secret-manager/issues/117)) ([e4f228e](https://www.github.com/googleapis/nodejs-secret-manager/commit/e4f228efc81bc6d9e7953ce0bfabdf2503967b27))
* handle fallback option properly ([#128](https://www.github.com/googleapis/nodejs-secret-manager/issues/128)) ([be15ac1](https://www.github.com/googleapis/nodejs-secret-manager/commit/be15ac1a15787a42f3681b171833e2bfdfeb4e51))
* regen protos and tests, formatting ([#115](https://www.github.com/googleapis/nodejs-secret-manager/issues/115)) ([85539e3](https://www.github.com/googleapis/nodejs-secret-manager/commit/85539e3b6b0d00dcf6e11f6e79b86f447b5bd185))
* remove eslint, update gax, fix generated protos, run the generator ([#94](https://www.github.com/googleapis/nodejs-secret-manager/issues/94)) ([aa90072](https://www.github.com/googleapis/nodejs-secret-manager/commit/aa900721808f45a29091aca61052c08d352a8bc2))
* synth.py clean up for multiple version ([#116](https://www.github.com/googleapis/nodejs-secret-manager/issues/116)) ([783524d](https://www.github.com/googleapis/nodejs-secret-manager/commit/783524d5925029f130a8787f02319d14a0a8dc59))
* update node issue template ([#130](https://www.github.com/googleapis/nodejs-secret-manager/issues/130)) ([1ef393b](https://www.github.com/googleapis/nodejs-secret-manager/commit/1ef393b48c29557d557b0481641dd1b72a7a2b2e))
## [3.0.0](https://www.github.com/googleapis/nodejs-secret-manager/compare/v2.1.0...v3.0.0) (2020-04-10)

@@ -4,0 +23,0 @@

{
"name": "@google-cloud/secret-manager",
"version": "3.0.0",
"version": "3.1.0",
"description": "Secrets client for Node.js",

@@ -29,4 +29,4 @@ "repository": "googleapis/nodejs-secret-manager",

"docs-test": "linkinator docs",
"fix": "gts fix && eslint samples --fix",
"lint": "gts check && eslint samples",
"fix": "gts fix",
"lint": "gts check",
"prepare": "npm run compile-protos && npm run compile",

@@ -36,6 +36,7 @@ "system-test": "c8 mocha build/system-test",

"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"prelint": "cd samples; npm link ../; npm i"
"prelint": "cd samples; npm link ../; npm install",
"precompile": "gts clean"
},
"dependencies": {
"google-gax": "^2.0.1"
"google-gax": "^2.1.0"
},

@@ -47,7 +48,3 @@ "devDependencies": {

"c8": "^7.0.0",
"eslint": "^6.0.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.0.1",
"gts": "2.0.0",
"gts": "^2.0.0",
"jsdoc": "^3.5.5",

@@ -57,8 +54,7 @@ "jsdoc-fresh": "^1.0.1",

"linkinator": "^2.0.0",
"mocha": "^7.0.0",
"null-loader": "^3.0.0",
"mocha": "^8.0.0",
"null-loader": "^4.0.0",
"pack-n-play": "^1.0.0-2",
"prettier": "^1.17.0",
"sinon": "^9.0.1",
"ts-loader": "^6.2.1",
"ts-loader": "^7.0.0",
"typescript": "^3.8.3",

@@ -65,0 +61,0 @@ "webpack": "^4.41.2",

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

[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/secret-manager.svg)](https://www.npmjs.org/package/@google-cloud/secret-manager)

@@ -163,7 +163,8 @@ [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-secret-manager/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-secret-manager)

This library is considered to be **General Availability (GA)**. This means it
is stable; the code surface will not change in backwards-incompatible ways
unless absolutely necessary (e.g. because of critical security issues) or with
an extensive deprecation period. Issues and requests against **GA** libraries
are addressed with the highest priority.
This library is considered to be in **beta**. This means it is expected to be
mostly stable while we work toward a general availability release; however,
complete stability is not guaranteed. We will address issues and requests
against beta libraries with a high priority.

@@ -170,0 +171,0 @@

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 too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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