@google-cloud/containeranalysis 7.0.0 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -225,7 +225,7 @@ class ContainerAnalysisClient {
|
|
|
225
225
|
'exportSboM',
|
|
226
226
|
];
|
|
227
227
|
for (const methodName of containerAnalysisStubMethods) {
|
|
228
|
-
const callPromise = this.containerAnalysisStub.then(
|
|
228
|
+
const callPromise = this.containerAnalysisStub.then(stub => (...args) => {
|
|
229
229
|
if (this._terminated) {
|
|
230
230
|
return Promise.reject('The client has already been closed.');
|
|
231
231
|
}
|
|
@@ -317,7 +317,7 @@ class ContainerAnalysisClient {
|
|
|
317
317
|
this._gaxModule.routingHeader.fromParams({
|
|
318
318
|
resource: request.resource ?? '',
|
|
319
319
|
});
|
|
320
|
-
this.initialize().catch(
|
|
320
|
+
this.initialize().catch(err => {
|
|
321
321
|
throw err;
|
|
322
322
|
});
|
|
323
323
|
this._log.info('setIamPolicy request %j', request);
|
|
@@ -360,7 +360,7 @@ class ContainerAnalysisClient {
|
|
|
360
360
|
this._gaxModule.routingHeader.fromParams({
|
|
361
361
|
resource: request.resource ?? '',
|
|
362
362
|
});
|
|
363
|
-
this.initialize().catch(
|
|
363
|
+
this.initialize().catch(err => {
|
|
364
364
|
throw err;
|
|
365
365
|
});
|
|
366
366
|
this._log.info('getIamPolicy request %j', request);
|
|
@@ -403,7 +403,7 @@ class ContainerAnalysisClient {
|
|
|
403
403
|
this._gaxModule.routingHeader.fromParams({
|
|
404
404
|
resource: request.resource ?? '',
|
|
405
405
|
});
|
|
406
|
-
this.initialize().catch(
|
|
406
|
+
this.initialize().catch(err => {
|
|
407
407
|
throw err;
|
|
408
408
|
});
|
|
409
409
|
this._log.info('testIamPermissions request %j', request);
|
|
@@ -446,7 +446,7 @@ class ContainerAnalysisClient {
|
|
|
446
446
|
this._gaxModule.routingHeader.fromParams({
|
|
447
447
|
parent: request.parent ?? '',
|
|
448
448
|
});
|
|
449
|
-
this.initialize().catch(
|
|
449
|
+
this.initialize().catch(err => {
|
|
450
450
|
throw err;
|
|
451
451
|
});
|
|
452
452
|
this._log.info('getVulnerabilityOccurrencesSummary request %j', request);
|
|
@@ -489,7 +489,7 @@ class ContainerAnalysisClient {
|
|
|
489
489
|
this._gaxModule.routingHeader.fromParams({
|
|
490
490
|
name: request.name ?? '',
|
|
491
491
|
});
|
|
492
|
-
this.initialize().catch(
|
|
492
|
+
this.initialize().catch(err => {
|
|
493
493
|
throw err;
|
|
494
494
|
});
|
|
495
495
|
this._log.info('exportSBOM request %j', request);
|
|
@@ -615,7 +615,7 @@ class ContainerAnalysisClient {
|
|
|
615
615
|
*/
|
|
616
616
|
close() {
|
|
617
617
|
if (this.containerAnalysisStub && !this._terminated) {
|
|
618
|
-
return this.containerAnalysisStub.then(
|
|
618
|
+
return this.containerAnalysisStub.then(stub => {
|
|
619
619
|
this._log.info('ending gRPC channel');
|
|
620
620
|
this._terminated = true;
|
|
621
621
|
stub.close();
|
|
@@ -216,7 +216,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
216
216
|
'exportSboM',
|
|
217
217
|
];
|
|
218
218
|
for (const methodName of containerAnalysisV1Beta1StubMethods) {
|
|
219
|
-
const callPromise = this.containerAnalysisV1Beta1Stub.then(
|
|
219
|
+
const callPromise = this.containerAnalysisV1Beta1Stub.then(stub => (...args) => {
|
|
220
220
|
if (this._terminated) {
|
|
221
221
|
return Promise.reject('The client has already been closed.');
|
|
222
222
|
}
|
|
@@ -308,7 +308,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
308
308
|
this._gaxModule.routingHeader.fromParams({
|
|
309
309
|
resource: request.resource ?? '',
|
|
310
310
|
});
|
|
311
|
-
this.initialize().catch(
|
|
311
|
+
this.initialize().catch(err => {
|
|
312
312
|
throw err;
|
|
313
313
|
});
|
|
314
314
|
this._log.info('setIamPolicy request %j', request);
|
|
@@ -351,7 +351,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
351
351
|
this._gaxModule.routingHeader.fromParams({
|
|
352
352
|
resource: request.resource ?? '',
|
|
353
353
|
});
|
|
354
|
-
this.initialize().catch(
|
|
354
|
+
this.initialize().catch(err => {
|
|
355
355
|
throw err;
|
|
356
356
|
});
|
|
357
357
|
this._log.info('getIamPolicy request %j', request);
|
|
@@ -394,7 +394,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
394
394
|
this._gaxModule.routingHeader.fromParams({
|
|
395
395
|
resource: request.resource ?? '',
|
|
396
396
|
});
|
|
397
|
-
this.initialize().catch(
|
|
397
|
+
this.initialize().catch(err => {
|
|
398
398
|
throw err;
|
|
399
399
|
});
|
|
400
400
|
this._log.info('testIamPermissions request %j', request);
|
|
@@ -437,7 +437,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
437
437
|
this._gaxModule.routingHeader.fromParams({
|
|
438
438
|
name: request.name ?? '',
|
|
439
439
|
});
|
|
440
|
-
this.initialize().catch(
|
|
440
|
+
this.initialize().catch(err => {
|
|
441
441
|
throw err;
|
|
442
442
|
});
|
|
443
443
|
this._log.info('generatePackagesSummary request %j', request);
|
|
@@ -480,7 +480,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
480
480
|
this._gaxModule.routingHeader.fromParams({
|
|
481
481
|
name: request.name ?? '',
|
|
482
482
|
});
|
|
483
|
-
this.initialize().catch(
|
|
483
|
+
this.initialize().catch(err => {
|
|
484
484
|
throw err;
|
|
485
485
|
});
|
|
486
486
|
this._log.info('exportSBOM request %j', request);
|
|
@@ -514,7 +514,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
514
514
|
*/
|
|
515
515
|
close() {
|
|
516
516
|
if (this.containerAnalysisV1Beta1Stub && !this._terminated) {
|
|
517
|
-
return this.containerAnalysisV1Beta1Stub.then(
|
|
517
|
+
return this.containerAnalysisV1Beta1Stub.then(stub => {
|
|
518
518
|
this._log.info('ending gRPC channel');
|
|
519
519
|
this._terminated = true;
|
|
520
520
|
stub.close();
|
|
@@ -234,7 +234,7 @@ class GrafeasV1Beta1Client {
|
|
|
234
234
|
'getVulnerabilityOccurrencesSummary',
|
|
235
235
|
];
|
|
236
236
|
for (const methodName of grafeasV1Beta1StubMethods) {
|
|
237
|
-
const callPromise = this.grafeasV1Beta1Stub.then(
|
|
237
|
+
const callPromise = this.grafeasV1Beta1Stub.then(stub => (...args) => {
|
|
238
238
|
if (this._terminated) {
|
|
239
239
|
return Promise.reject('The client has already been closed.');
|
|
240
240
|
}
|
|
@@ -326,7 +326,7 @@ class GrafeasV1Beta1Client {
|
|
|
326
326
|
this._gaxModule.routingHeader.fromParams({
|
|
327
327
|
name: request.name ?? '',
|
|
328
328
|
});
|
|
329
|
-
this.initialize().catch(
|
|
329
|
+
this.initialize().catch(err => {
|
|
330
330
|
throw err;
|
|
331
331
|
});
|
|
332
332
|
this._log.info('getOccurrence request %j', request);
|
|
@@ -369,7 +369,7 @@ class GrafeasV1Beta1Client {
|
|
|
369
369
|
this._gaxModule.routingHeader.fromParams({
|
|
370
370
|
name: request.name ?? '',
|
|
371
371
|
});
|
|
372
|
-
this.initialize().catch(
|
|
372
|
+
this.initialize().catch(err => {
|
|
373
373
|
throw err;
|
|
374
374
|
});
|
|
375
375
|
this._log.info('deleteOccurrence request %j', request);
|
|
@@ -412,7 +412,7 @@ class GrafeasV1Beta1Client {
|
|
|
412
412
|
this._gaxModule.routingHeader.fromParams({
|
|
413
413
|
parent: request.parent ?? '',
|
|
414
414
|
});
|
|
415
|
-
this.initialize().catch(
|
|
415
|
+
this.initialize().catch(err => {
|
|
416
416
|
throw err;
|
|
417
417
|
});
|
|
418
418
|
this._log.info('createOccurrence request %j', request);
|
|
@@ -455,7 +455,7 @@ class GrafeasV1Beta1Client {
|
|
|
455
455
|
this._gaxModule.routingHeader.fromParams({
|
|
456
456
|
parent: request.parent ?? '',
|
|
457
457
|
});
|
|
458
|
-
this.initialize().catch(
|
|
458
|
+
this.initialize().catch(err => {
|
|
459
459
|
throw err;
|
|
460
460
|
});
|
|
461
461
|
this._log.info('batchCreateOccurrences request %j', request);
|
|
@@ -498,7 +498,7 @@ class GrafeasV1Beta1Client {
|
|
|
498
498
|
this._gaxModule.routingHeader.fromParams({
|
|
499
499
|
name: request.name ?? '',
|
|
500
500
|
});
|
|
501
|
-
this.initialize().catch(
|
|
501
|
+
this.initialize().catch(err => {
|
|
502
502
|
throw err;
|
|
503
503
|
});
|
|
504
504
|
this._log.info('updateOccurrence request %j', request);
|
|
@@ -541,7 +541,7 @@ class GrafeasV1Beta1Client {
|
|
|
541
541
|
this._gaxModule.routingHeader.fromParams({
|
|
542
542
|
name: request.name ?? '',
|
|
543
543
|
});
|
|
544
|
-
this.initialize().catch(
|
|
544
|
+
this.initialize().catch(err => {
|
|
545
545
|
throw err;
|
|
546
546
|
});
|
|
547
547
|
this._log.info('getOccurrenceNote request %j', request);
|
|
@@ -584,7 +584,7 @@ class GrafeasV1Beta1Client {
|
|
|
584
584
|
this._gaxModule.routingHeader.fromParams({
|
|
585
585
|
name: request.name ?? '',
|
|
586
586
|
});
|
|
587
|
-
this.initialize().catch(
|
|
587
|
+
this.initialize().catch(err => {
|
|
588
588
|
throw err;
|
|
589
589
|
});
|
|
590
590
|
this._log.info('getNote request %j', request);
|
|
@@ -627,7 +627,7 @@ class GrafeasV1Beta1Client {
|
|
|
627
627
|
this._gaxModule.routingHeader.fromParams({
|
|
628
628
|
name: request.name ?? '',
|
|
629
629
|
});
|
|
630
|
-
this.initialize().catch(
|
|
630
|
+
this.initialize().catch(err => {
|
|
631
631
|
throw err;
|
|
632
632
|
});
|
|
633
633
|
this._log.info('deleteNote request %j', request);
|
|
@@ -670,7 +670,7 @@ class GrafeasV1Beta1Client {
|
|
|
670
670
|
this._gaxModule.routingHeader.fromParams({
|
|
671
671
|
parent: request.parent ?? '',
|
|
672
672
|
});
|
|
673
|
-
this.initialize().catch(
|
|
673
|
+
this.initialize().catch(err => {
|
|
674
674
|
throw err;
|
|
675
675
|
});
|
|
676
676
|
this._log.info('createNote request %j', request);
|
|
@@ -713,7 +713,7 @@ class GrafeasV1Beta1Client {
|
|
|
713
713
|
this._gaxModule.routingHeader.fromParams({
|
|
714
714
|
parent: request.parent ?? '',
|
|
715
715
|
});
|
|
716
|
-
this.initialize().catch(
|
|
716
|
+
this.initialize().catch(err => {
|
|
717
717
|
throw err;
|
|
718
718
|
});
|
|
719
719
|
this._log.info('batchCreateNotes request %j', request);
|
|
@@ -756,7 +756,7 @@ class GrafeasV1Beta1Client {
|
|
|
756
756
|
this._gaxModule.routingHeader.fromParams({
|
|
757
757
|
name: request.name ?? '',
|
|
758
758
|
});
|
|
759
|
-
this.initialize().catch(
|
|
759
|
+
this.initialize().catch(err => {
|
|
760
760
|
throw err;
|
|
761
761
|
});
|
|
762
762
|
this._log.info('updateNote request %j', request);
|
|
@@ -799,7 +799,7 @@ class GrafeasV1Beta1Client {
|
|
|
799
799
|
this._gaxModule.routingHeader.fromParams({
|
|
800
800
|
parent: request.parent ?? '',
|
|
801
801
|
});
|
|
802
|
-
this.initialize().catch(
|
|
802
|
+
this.initialize().catch(err => {
|
|
803
803
|
throw err;
|
|
804
804
|
});
|
|
805
805
|
this._log.info('getVulnerabilityOccurrencesSummary request %j', request);
|
|
@@ -842,7 +842,7 @@ class GrafeasV1Beta1Client {
|
|
|
842
842
|
this._gaxModule.routingHeader.fromParams({
|
|
843
843
|
parent: request.parent ?? '',
|
|
844
844
|
});
|
|
845
|
-
this.initialize().catch(
|
|
845
|
+
this.initialize().catch(err => {
|
|
846
846
|
throw err;
|
|
847
847
|
});
|
|
848
848
|
const wrappedCallback = callback
|
|
@@ -894,7 +894,7 @@ class GrafeasV1Beta1Client {
|
|
|
894
894
|
});
|
|
895
895
|
const defaultCallSettings = this._defaults['listOccurrences'];
|
|
896
896
|
const callSettings = defaultCallSettings.merge(options);
|
|
897
|
-
this.initialize().catch(
|
|
897
|
+
this.initialize().catch(err => {
|
|
898
898
|
throw err;
|
|
899
899
|
});
|
|
900
900
|
this._log.info('listOccurrences stream %j', request);
|
|
@@ -938,7 +938,7 @@ class GrafeasV1Beta1Client {
|
|
|
938
938
|
});
|
|
939
939
|
const defaultCallSettings = this._defaults['listOccurrences'];
|
|
940
940
|
const callSettings = defaultCallSettings.merge(options);
|
|
941
|
-
this.initialize().catch(
|
|
941
|
+
this.initialize().catch(err => {
|
|
942
942
|
throw err;
|
|
943
943
|
});
|
|
944
944
|
this._log.info('listOccurrences iterate %j', request);
|
|
@@ -961,7 +961,7 @@ class GrafeasV1Beta1Client {
|
|
|
961
961
|
this._gaxModule.routingHeader.fromParams({
|
|
962
962
|
parent: request.parent ?? '',
|
|
963
963
|
});
|
|
964
|
-
this.initialize().catch(
|
|
964
|
+
this.initialize().catch(err => {
|
|
965
965
|
throw err;
|
|
966
966
|
});
|
|
967
967
|
const wrappedCallback = callback
|
|
@@ -1013,7 +1013,7 @@ class GrafeasV1Beta1Client {
|
|
|
1013
1013
|
});
|
|
1014
1014
|
const defaultCallSettings = this._defaults['listNotes'];
|
|
1015
1015
|
const callSettings = defaultCallSettings.merge(options);
|
|
1016
|
-
this.initialize().catch(
|
|
1016
|
+
this.initialize().catch(err => {
|
|
1017
1017
|
throw err;
|
|
1018
1018
|
});
|
|
1019
1019
|
this._log.info('listNotes stream %j', request);
|
|
@@ -1057,7 +1057,7 @@ class GrafeasV1Beta1Client {
|
|
|
1057
1057
|
});
|
|
1058
1058
|
const defaultCallSettings = this._defaults['listNotes'];
|
|
1059
1059
|
const callSettings = defaultCallSettings.merge(options);
|
|
1060
|
-
this.initialize().catch(
|
|
1060
|
+
this.initialize().catch(err => {
|
|
1061
1061
|
throw err;
|
|
1062
1062
|
});
|
|
1063
1063
|
this._log.info('listNotes iterate %j', request);
|
|
@@ -1080,7 +1080,7 @@ class GrafeasV1Beta1Client {
|
|
|
1080
1080
|
this._gaxModule.routingHeader.fromParams({
|
|
1081
1081
|
name: request.name ?? '',
|
|
1082
1082
|
});
|
|
1083
|
-
this.initialize().catch(
|
|
1083
|
+
this.initialize().catch(err => {
|
|
1084
1084
|
throw err;
|
|
1085
1085
|
});
|
|
1086
1086
|
const wrappedCallback = callback
|
|
@@ -1132,7 +1132,7 @@ class GrafeasV1Beta1Client {
|
|
|
1132
1132
|
});
|
|
1133
1133
|
const defaultCallSettings = this._defaults['listNoteOccurrences'];
|
|
1134
1134
|
const callSettings = defaultCallSettings.merge(options);
|
|
1135
|
-
this.initialize().catch(
|
|
1135
|
+
this.initialize().catch(err => {
|
|
1136
1136
|
throw err;
|
|
1137
1137
|
});
|
|
1138
1138
|
this._log.info('listNoteOccurrences stream %j', request);
|
|
@@ -1176,7 +1176,7 @@ class GrafeasV1Beta1Client {
|
|
|
1176
1176
|
});
|
|
1177
1177
|
const defaultCallSettings = this._defaults['listNoteOccurrences'];
|
|
1178
1178
|
const callSettings = defaultCallSettings.merge(options);
|
|
1179
|
-
this.initialize().catch(
|
|
1179
|
+
this.initialize().catch(err => {
|
|
1180
1180
|
throw err;
|
|
1181
1181
|
});
|
|
1182
1182
|
this._log.info('listNoteOccurrences iterate %j', request);
|
|
@@ -1190,7 +1190,7 @@ class GrafeasV1Beta1Client {
|
|
|
1190
1190
|
*/
|
|
1191
1191
|
close() {
|
|
1192
1192
|
if (this.grafeasV1Beta1Stub && !this._terminated) {
|
|
1193
|
-
return this.grafeasV1Beta1Stub.then(
|
|
1193
|
+
return this.grafeasV1Beta1Stub.then(stub => {
|
|
1194
1194
|
this._log.info('ending gRPC channel');
|
|
1195
1195
|
this._terminated = true;
|
|
1196
1196
|
stub.close();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/containeranalysis",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "Containeranalysis client for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test": "c8 mocha --config ../../.mocharc.cjs build/test"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@google-cloud/grafeas": "^
|
|
48
|
+
"@google-cloud/grafeas": "^7.0.0",
|
|
49
49
|
"google-gax": "^6.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
@@ -69,10 +69,5 @@
|
|
|
69
69
|
},
|
|
70
70
|
"overrides": {
|
|
71
71
|
"@sinonjs/fake-timers": "15.2.1"
|
|
72
|
-
},
|
|
73
|
-
"pnpm": {
|
|
74
|
-
"overrides": {
|
|
75
|
-
"@sinonjs/fake-timers": "15.2.1"
|
|
76
|
-
}
|
|
77
72
|
}
|
|
78
73
|
}
|