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

@google-cloud/grafeas

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/grafeas - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

2

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

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

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

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1.Occurrence}.
* The first element of the array is an object representing {@link grafeas.v1.Occurrence | Occurrence}.
* Please see the

@@ -162,3 +162,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
* The first element of the array is an object representing {@link google.protobuf.Empty | Empty}.
* Please see the

@@ -190,3 +190,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1.Occurrence}.
* The first element of the array is an object representing {@link grafeas.v1.Occurrence | Occurrence}.
* Please see the

@@ -218,3 +218,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [BatchCreateOccurrencesResponse]{@link grafeas.v1.BatchCreateOccurrencesResponse}.
* The first element of the array is an object representing {@link grafeas.v1.BatchCreateOccurrencesResponse | BatchCreateOccurrencesResponse}.
* Please see the

@@ -248,3 +248,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Occurrence]{@link grafeas.v1.Occurrence}.
* The first element of the array is an object representing {@link grafeas.v1.Occurrence | Occurrence}.
* Please see the

@@ -275,3 +275,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}.
* The first element of the array is an object representing {@link grafeas.v1.Note | Note}.
* Please see the

@@ -301,3 +301,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}.
* The first element of the array is an object representing {@link grafeas.v1.Note | Note}.
* Please see the

@@ -327,3 +327,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
* The first element of the array is an object representing {@link google.protobuf.Empty | Empty}.
* Please see the

@@ -357,3 +357,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}.
* The first element of the array is an object representing {@link grafeas.v1.Note | Note}.
* Please see the

@@ -385,3 +385,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [BatchCreateNotesResponse]{@link grafeas.v1.BatchCreateNotesResponse}.
* The first element of the array is an object representing {@link grafeas.v1.BatchCreateNotesResponse | BatchCreateNotesResponse}.
* Please see the

@@ -415,3 +415,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing [Note]{@link grafeas.v1.Note}.
* The first element of the array is an object representing {@link grafeas.v1.Note | Note}.
* Please see the

@@ -448,3 +448,3 @@ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Occurrence]{@link grafeas.v1.Occurrence}.
* The first element of the array is Array of {@link grafeas.v1.Occurrence | Occurrence}.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -483,3 +483,3 @@ * times as needed and will merge results from all the pages into this array.

* @returns {Stream}
* An object stream which emits an object representing [Occurrence]{@link grafeas.v1.Occurrence} on 'data' event.
* An object stream which emits an object representing {@link grafeas.v1.Occurrence | Occurrence} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -515,3 +515,3 @@ * times as needed. Note that it can affect your quota.

* When you iterate the returned iterable, each element will be an object representing
* [Occurrence]{@link grafeas.v1.Occurrence}. The API will be called under the hood as needed, once per the page,
* {@link grafeas.v1.Occurrence | Occurrence}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.

@@ -543,3 +543,3 @@ * Please see the

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Note]{@link grafeas.v1.Note}.
* The first element of the array is Array of {@link grafeas.v1.Note | Note}.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -578,3 +578,3 @@ * times as needed and will merge results from all the pages into this array.

* @returns {Stream}
* An object stream which emits an object representing [Note]{@link grafeas.v1.Note} on 'data' event.
* An object stream which emits an object representing {@link grafeas.v1.Note | Note} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -610,3 +610,3 @@ * times as needed. Note that it can affect your quota.

* When you iterate the returned iterable, each element will be an object representing
* [Note]{@link grafeas.v1.Note}. The API will be called under the hood as needed, once per the page,
* {@link grafeas.v1.Note | Note}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.

@@ -639,3 +639,3 @@ * Please see the

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is Array of [Occurrence]{@link grafeas.v1.Occurrence}.
* The first element of the array is Array of {@link grafeas.v1.Occurrence | Occurrence}.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -673,3 +673,3 @@ * times as needed and will merge results from all the pages into this array.

* @returns {Stream}
* An object stream which emits an object representing [Occurrence]{@link grafeas.v1.Occurrence} on 'data' event.
* An object stream which emits an object representing {@link grafeas.v1.Occurrence | Occurrence} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -704,3 +704,3 @@ * times as needed. Note that it can affect your quota.

* When you iterate the returned iterable, each element will be an object representing
* [Occurrence]{@link grafeas.v1.Occurrence}. The API will be called under the hood as needed, once per the page,
* {@link grafeas.v1.Occurrence | Occurrence}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.

@@ -707,0 +707,0 @@ * Please see the

"use strict";
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//

@@ -105,2 +105,4 @@ // Licensed under the Apache License, Version 2.0 (the "License");

opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
// Request numeric enum values if REST transport is used.
opts.numericEnums = true;
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.

@@ -540,3 +542,3 @@ if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {

* @returns {Stream}
* An object stream which emits an object representing [Occurrence]{@link grafeas.v1.Occurrence} on 'data' event.
* An object stream which emits an object representing {@link grafeas.v1.Occurrence | Occurrence} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -586,3 +588,3 @@ * times as needed. Note that it can affect your quota.

* When you iterate the returned iterable, each element will be an object representing
* [Occurrence]{@link grafeas.v1.Occurrence}. The API will be called under the hood as needed, once per the page,
* {@link grafeas.v1.Occurrence | Occurrence}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.

@@ -648,3 +650,3 @@ * Please see the

* @returns {Stream}
* An object stream which emits an object representing [Note]{@link grafeas.v1.Note} on 'data' event.
* An object stream which emits an object representing {@link grafeas.v1.Note | Note} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -694,3 +696,3 @@ * times as needed. Note that it can affect your quota.

* When you iterate the returned iterable, each element will be an object representing
* [Note]{@link grafeas.v1.Note}. The API will be called under the hood as needed, once per the page,
* {@link grafeas.v1.Note | Note}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.

@@ -755,3 +757,3 @@ * Please see the

* @returns {Stream}
* An object stream which emits an object representing [Occurrence]{@link grafeas.v1.Occurrence} on 'data' event.
* An object stream which emits an object representing {@link grafeas.v1.Occurrence | Occurrence} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -800,3 +802,3 @@ * times as needed. Note that it can affect your quota.

* When you iterate the returned iterable, each element will be an object representing
* [Occurrence]{@link grafeas.v1.Occurrence}. The API will be called under the hood as needed, once per the page,
* {@link grafeas.v1.Occurrence | Occurrence}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.

@@ -803,0 +805,0 @@ * Please see the

"use strict";
// Copyright 2022 Google LLC
// Copyright 2023 Google LLC
//

@@ -4,0 +4,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

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

## [4.2.2](https://github.com/googleapis/google-cloud-node/compare/grafeas-v4.2.1...grafeas-v4.2.2) (2023-02-15)
### Bug Fixes
* [Many APIs] changing format of the jsdoc links ([#3991](https://github.com/googleapis/google-cloud-node/issues/3991)) ([c6326d9](https://github.com/googleapis/google-cloud-node/commit/c6326d90abb9b649b25052e4afe7b3eb0f65bcb4))
## [4.2.1](https://github.com/googleapis/nodejs-grafeas/compare/v4.2.0...v4.2.1) (2022-11-10)

@@ -9,0 +16,0 @@

{
"repository": "googleapis/nodejs-grafeas",
"repository": {
"type": "git",
"directory": "packages/grafeas",
"url": "https://github.com/googleapis/google-cloud-node.git"
},
"name": "@google-cloud/grafeas",
"version": "4.2.1",
"version": "4.2.2",
"author": "Google LLC",

@@ -41,12 +45,12 @@ "description": "Grafeas API client for Node.js",

"pack-n-play": "^1.0.0-2",
"sinon": "^14.0.0",
"sinon": "^15.0.0",
"ts-loader": "^9.0.0",
"typescript": "^4.6.4",
"webpack": "^5.0.0",
"webpack-cli": "^4.0.0"
"webpack-cli": "^5.0.0"
},
"scripts": {
"test": "c8 mocha build/test",
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
"system-test": "mocha build/system-test",
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
"system-test": "npm run compile && c8 mocha build/system-test",
"presystem-test": "npm run compile",

@@ -68,3 +72,4 @@ "docs": "jsdoc -c .jsdoc.js",

"node": ">=12.0.0"
}
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/grafeas"
}

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

# [Grafeas: Node.js Client](https://github.com/googleapis/nodejs-grafeas)
# [Grafeas: Node.js Client](https://github.com/googleapis/google-cloud-node)

@@ -14,12 +14,11 @@ [![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)

A [Grafeas API Client](https://grafeas.io/) compatible with Google Cloud's
[Container Analysis API](https://cloud.google.com/container-registry/docs/container-analysis).
Grafeas API client for Node.js
A comprehensive list of changes in each version may be found in
[the CHANGELOG](https://github.com/googleapis/nodejs-grafeas/blob/main/CHANGELOG.md).
[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/grafeas/CHANGELOG.md).
* [Grafeas Node.js Client API Reference][client-docs]
* [Grafeas Documentation][product-docs]
* [github.com/googleapis/nodejs-grafeas](https://github.com/googleapis/nodejs-grafeas)
* [github.com/googleapis/google-cloud-node/packages/grafeas](https://github.com/googleapis/google-cloud-node/tree/main/packages/grafeas)

@@ -90,7 +89,22 @@ Read more about the client libraries for Cloud APIs, including the older

Samples are in the [`samples/`](https://github.com/googleapis/nodejs-grafeas/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Quickstart | [source code](https://github.com/googleapis/nodejs-grafeas/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-grafeas&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Grafeas.batch_create_notes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.batch_create_notes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.batch_create_notes.js,samples/README.md) |
| Grafeas.batch_create_occurrences | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.batch_create_occurrences.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.batch_create_occurrences.js,samples/README.md) |
| Grafeas.create_note | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.create_note.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.create_note.js,samples/README.md) |
| Grafeas.create_occurrence | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.create_occurrence.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.create_occurrence.js,samples/README.md) |
| Grafeas.delete_note | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.delete_note.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.delete_note.js,samples/README.md) |
| Grafeas.delete_occurrence | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.delete_occurrence.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.delete_occurrence.js,samples/README.md) |
| Grafeas.get_note | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.get_note.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.get_note.js,samples/README.md) |
| Grafeas.get_occurrence | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.get_occurrence.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.get_occurrence.js,samples/README.md) |
| Grafeas.get_occurrence_note | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.get_occurrence_note.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.get_occurrence_note.js,samples/README.md) |
| Grafeas.list_note_occurrences | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.list_note_occurrences.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.list_note_occurrences.js,samples/README.md) |
| Grafeas.list_notes | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.list_notes.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.list_notes.js,samples/README.md) |
| Grafeas.list_occurrences | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.list_occurrences.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.list_occurrences.js,samples/README.md) |
| Grafeas.update_note | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.update_note.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.update_note.js,samples/README.md) |
| Grafeas.update_occurrence | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/generated/v1/grafeas.update_occurrence.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/generated/v1/grafeas.update_occurrence.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/quickstart.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/grafeas/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/grafeas/samples/test/quickstart.js,samples/README.md) |

@@ -145,3 +159,3 @@

Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-grafeas/blob/main/CONTRIBUTING.md).
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).

@@ -158,3 +172,3 @@ Please note that this `README.md`, the `samples/README.md`,

See [LICENSE](https://github.com/googleapis/nodejs-grafeas/blob/main/LICENSE)
See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)

@@ -161,0 +175,0 @@ [client-docs]: https://cloud.google.com/nodejs/docs/reference/grafeas/latest

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

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