@google-cloud/containeranalysis 6.0.0 → 6.1.0

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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/@google-cloud/containeranalysis?activeTab=versions
6
6
 
7
+ ## [6.1.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v6.0.0...containeranalysis-v6.1.0) (2025-03-19)
8
+
9
+
10
+ ### Features
11
+
12
+ * [Many APIs] await/catch promises, and update listOperationsAsync return type ([#6182](https://github.com/googleapis/google-cloud-node/issues/6182)) ([c41ff07](https://github.com/googleapis/google-cloud-node/commit/c41ff0729b65a1207978b4029d6369cc0552e0bf))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * [Many APIs] await/catch promises, and update listOperationsAsync return type ([#6190](https://github.com/googleapis/google-cloud-node/issues/6190)) ([f4866df](https://github.com/googleapis/google-cloud-node/commit/f4866dfa6ab481163150f54928a9857d2dfef948))
18
+ * **deps:** Update dependency @google-cloud/grafeas to v6 ([#6172](https://github.com/googleapis/google-cloud-node/issues/6172)) ([f91a34f](https://github.com/googleapis/google-cloud-node/commit/f91a34f796895397c51e02f87197b601214d82f9))
19
+
7
20
  ## [6.0.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.6.0...containeranalysis-v6.0.0) (2025-03-18)
8
21
 
9
22
 
@@ -316,7 +316,9 @@ class ContainerAnalysisClient {
316
316
  this._gaxModule.routingHeader.fromParams({
317
317
  resource: request.resource ?? '',
318
318
  });
319
- this.initialize();
319
+ this.initialize().catch(err => {
320
+ throw err;
321
+ });
320
322
  this._log.info('setIamPolicy request %j', request);
321
323
  const wrappedCallback = callback
322
324
  ? (error, response, options, rawResponse) => {
@@ -348,7 +350,9 @@ class ContainerAnalysisClient {
348
350
  this._gaxModule.routingHeader.fromParams({
349
351
  resource: request.resource ?? '',
350
352
  });
351
- this.initialize();
353
+ this.initialize().catch(err => {
354
+ throw err;
355
+ });
352
356
  this._log.info('getIamPolicy request %j', request);
353
357
  const wrappedCallback = callback
354
358
  ? (error, response, options, rawResponse) => {
@@ -380,7 +384,9 @@ class ContainerAnalysisClient {
380
384
  this._gaxModule.routingHeader.fromParams({
381
385
  resource: request.resource ?? '',
382
386
  });
383
- this.initialize();
387
+ this.initialize().catch(err => {
388
+ throw err;
389
+ });
384
390
  this._log.info('testIamPermissions request %j', request);
385
391
  const wrappedCallback = callback
386
392
  ? (error, response, options, rawResponse) => {
@@ -412,7 +418,9 @@ class ContainerAnalysisClient {
412
418
  this._gaxModule.routingHeader.fromParams({
413
419
  parent: request.parent ?? '',
414
420
  });
415
- this.initialize();
421
+ this.initialize().catch(err => {
422
+ throw err;
423
+ });
416
424
  this._log.info('getVulnerabilityOccurrencesSummary request %j', request);
417
425
  const wrappedCallback = callback
418
426
  ? (error, response, options, rawResponse) => {
@@ -308,7 +308,9 @@ class ContainerAnalysisV1Beta1Client {
308
308
  this._gaxModule.routingHeader.fromParams({
309
309
  resource: request.resource ?? '',
310
310
  });
311
- this.initialize();
311
+ this.initialize().catch(err => {
312
+ throw err;
313
+ });
312
314
  this._log.info('setIamPolicy request %j', request);
313
315
  const wrappedCallback = callback
314
316
  ? (error, response, options, rawResponse) => {
@@ -340,7 +342,9 @@ class ContainerAnalysisV1Beta1Client {
340
342
  this._gaxModule.routingHeader.fromParams({
341
343
  resource: request.resource ?? '',
342
344
  });
343
- this.initialize();
345
+ this.initialize().catch(err => {
346
+ throw err;
347
+ });
344
348
  this._log.info('getIamPolicy request %j', request);
345
349
  const wrappedCallback = callback
346
350
  ? (error, response, options, rawResponse) => {
@@ -372,7 +376,9 @@ class ContainerAnalysisV1Beta1Client {
372
376
  this._gaxModule.routingHeader.fromParams({
373
377
  resource: request.resource ?? '',
374
378
  });
375
- this.initialize();
379
+ this.initialize().catch(err => {
380
+ throw err;
381
+ });
376
382
  this._log.info('testIamPermissions request %j', request);
377
383
  const wrappedCallback = callback
378
384
  ? (error, response, options, rawResponse) => {
@@ -404,7 +410,9 @@ class ContainerAnalysisV1Beta1Client {
404
410
  this._gaxModule.routingHeader.fromParams({
405
411
  name: request.name ?? '',
406
412
  });
407
- this.initialize();
413
+ this.initialize().catch(err => {
414
+ throw err;
415
+ });
408
416
  this._log.info('generatePackagesSummary request %j', request);
409
417
  const wrappedCallback = callback
410
418
  ? (error, response, options, rawResponse) => {
@@ -436,7 +444,9 @@ class ContainerAnalysisV1Beta1Client {
436
444
  this._gaxModule.routingHeader.fromParams({
437
445
  name: request.name ?? '',
438
446
  });
439
- this.initialize();
447
+ this.initialize().catch(err => {
448
+ throw err;
449
+ });
440
450
  this._log.info('exportSBOM request %j', request);
441
451
  const wrappedCallback = callback
442
452
  ? (error, response, options, rawResponse) => {
@@ -325,7 +325,9 @@ class GrafeasV1Beta1Client {
325
325
  this._gaxModule.routingHeader.fromParams({
326
326
  name: request.name ?? '',
327
327
  });
328
- this.initialize();
328
+ this.initialize().catch(err => {
329
+ throw err;
330
+ });
329
331
  this._log.info('getOccurrence request %j', request);
330
332
  const wrappedCallback = callback
331
333
  ? (error, response, options, rawResponse) => {
@@ -357,7 +359,9 @@ class GrafeasV1Beta1Client {
357
359
  this._gaxModule.routingHeader.fromParams({
358
360
  name: request.name ?? '',
359
361
  });
360
- this.initialize();
362
+ this.initialize().catch(err => {
363
+ throw err;
364
+ });
361
365
  this._log.info('deleteOccurrence request %j', request);
362
366
  const wrappedCallback = callback
363
367
  ? (error, response, options, rawResponse) => {
@@ -389,7 +393,9 @@ class GrafeasV1Beta1Client {
389
393
  this._gaxModule.routingHeader.fromParams({
390
394
  parent: request.parent ?? '',
391
395
  });
392
- this.initialize();
396
+ this.initialize().catch(err => {
397
+ throw err;
398
+ });
393
399
  this._log.info('createOccurrence request %j', request);
394
400
  const wrappedCallback = callback
395
401
  ? (error, response, options, rawResponse) => {
@@ -421,7 +427,9 @@ class GrafeasV1Beta1Client {
421
427
  this._gaxModule.routingHeader.fromParams({
422
428
  parent: request.parent ?? '',
423
429
  });
424
- this.initialize();
430
+ this.initialize().catch(err => {
431
+ throw err;
432
+ });
425
433
  this._log.info('batchCreateOccurrences request %j', request);
426
434
  const wrappedCallback = callback
427
435
  ? (error, response, options, rawResponse) => {
@@ -453,7 +461,9 @@ class GrafeasV1Beta1Client {
453
461
  this._gaxModule.routingHeader.fromParams({
454
462
  name: request.name ?? '',
455
463
  });
456
- this.initialize();
464
+ this.initialize().catch(err => {
465
+ throw err;
466
+ });
457
467
  this._log.info('updateOccurrence request %j', request);
458
468
  const wrappedCallback = callback
459
469
  ? (error, response, options, rawResponse) => {
@@ -485,7 +495,9 @@ class GrafeasV1Beta1Client {
485
495
  this._gaxModule.routingHeader.fromParams({
486
496
  name: request.name ?? '',
487
497
  });
488
- this.initialize();
498
+ this.initialize().catch(err => {
499
+ throw err;
500
+ });
489
501
  this._log.info('getOccurrenceNote request %j', request);
490
502
  const wrappedCallback = callback
491
503
  ? (error, response, options, rawResponse) => {
@@ -517,7 +529,9 @@ class GrafeasV1Beta1Client {
517
529
  this._gaxModule.routingHeader.fromParams({
518
530
  name: request.name ?? '',
519
531
  });
520
- this.initialize();
532
+ this.initialize().catch(err => {
533
+ throw err;
534
+ });
521
535
  this._log.info('getNote request %j', request);
522
536
  const wrappedCallback = callback
523
537
  ? (error, response, options, rawResponse) => {
@@ -549,7 +563,9 @@ class GrafeasV1Beta1Client {
549
563
  this._gaxModule.routingHeader.fromParams({
550
564
  name: request.name ?? '',
551
565
  });
552
- this.initialize();
566
+ this.initialize().catch(err => {
567
+ throw err;
568
+ });
553
569
  this._log.info('deleteNote request %j', request);
554
570
  const wrappedCallback = callback
555
571
  ? (error, response, options, rawResponse) => {
@@ -581,7 +597,9 @@ class GrafeasV1Beta1Client {
581
597
  this._gaxModule.routingHeader.fromParams({
582
598
  parent: request.parent ?? '',
583
599
  });
584
- this.initialize();
600
+ this.initialize().catch(err => {
601
+ throw err;
602
+ });
585
603
  this._log.info('createNote request %j', request);
586
604
  const wrappedCallback = callback
587
605
  ? (error, response, options, rawResponse) => {
@@ -613,7 +631,9 @@ class GrafeasV1Beta1Client {
613
631
  this._gaxModule.routingHeader.fromParams({
614
632
  parent: request.parent ?? '',
615
633
  });
616
- this.initialize();
634
+ this.initialize().catch(err => {
635
+ throw err;
636
+ });
617
637
  this._log.info('batchCreateNotes request %j', request);
618
638
  const wrappedCallback = callback
619
639
  ? (error, response, options, rawResponse) => {
@@ -645,7 +665,9 @@ class GrafeasV1Beta1Client {
645
665
  this._gaxModule.routingHeader.fromParams({
646
666
  name: request.name ?? '',
647
667
  });
648
- this.initialize();
668
+ this.initialize().catch(err => {
669
+ throw err;
670
+ });
649
671
  this._log.info('updateNote request %j', request);
650
672
  const wrappedCallback = callback
651
673
  ? (error, response, options, rawResponse) => {
@@ -677,7 +699,9 @@ class GrafeasV1Beta1Client {
677
699
  this._gaxModule.routingHeader.fromParams({
678
700
  parent: request.parent ?? '',
679
701
  });
680
- this.initialize();
702
+ this.initialize().catch(err => {
703
+ throw err;
704
+ });
681
705
  this._log.info('getVulnerabilityOccurrencesSummary request %j', request);
682
706
  const wrappedCallback = callback
683
707
  ? (error, response, options, rawResponse) => {
@@ -709,7 +733,9 @@ class GrafeasV1Beta1Client {
709
733
  this._gaxModule.routingHeader.fromParams({
710
734
  parent: request.parent ?? '',
711
735
  });
712
- this.initialize();
736
+ this.initialize().catch(err => {
737
+ throw err;
738
+ });
713
739
  const wrappedCallback = callback
714
740
  ? (error, values, nextPageRequest, rawResponse) => {
715
741
  this._log.info('listOccurrences values %j', values);
@@ -759,7 +785,9 @@ class GrafeasV1Beta1Client {
759
785
  });
760
786
  const defaultCallSettings = this._defaults['listOccurrences'];
761
787
  const callSettings = defaultCallSettings.merge(options);
762
- this.initialize();
788
+ this.initialize().catch(err => {
789
+ throw err;
790
+ });
763
791
  this._log.info('listOccurrences stream %j', request);
764
792
  return this.descriptors.page.listOccurrences.createStream(this.innerApiCalls.listOccurrences, request, callSettings);
765
793
  }
@@ -801,7 +829,9 @@ class GrafeasV1Beta1Client {
801
829
  });
802
830
  const defaultCallSettings = this._defaults['listOccurrences'];
803
831
  const callSettings = defaultCallSettings.merge(options);
804
- this.initialize();
832
+ this.initialize().catch(err => {
833
+ throw err;
834
+ });
805
835
  this._log.info('listOccurrences iterate %j', request);
806
836
  return this.descriptors.page.listOccurrences.asyncIterate(this.innerApiCalls['listOccurrences'], request, callSettings);
807
837
  }
@@ -822,7 +852,9 @@ class GrafeasV1Beta1Client {
822
852
  this._gaxModule.routingHeader.fromParams({
823
853
  parent: request.parent ?? '',
824
854
  });
825
- this.initialize();
855
+ this.initialize().catch(err => {
856
+ throw err;
857
+ });
826
858
  const wrappedCallback = callback
827
859
  ? (error, values, nextPageRequest, rawResponse) => {
828
860
  this._log.info('listNotes values %j', values);
@@ -872,7 +904,9 @@ class GrafeasV1Beta1Client {
872
904
  });
873
905
  const defaultCallSettings = this._defaults['listNotes'];
874
906
  const callSettings = defaultCallSettings.merge(options);
875
- this.initialize();
907
+ this.initialize().catch(err => {
908
+ throw err;
909
+ });
876
910
  this._log.info('listNotes stream %j', request);
877
911
  return this.descriptors.page.listNotes.createStream(this.innerApiCalls.listNotes, request, callSettings);
878
912
  }
@@ -914,7 +948,9 @@ class GrafeasV1Beta1Client {
914
948
  });
915
949
  const defaultCallSettings = this._defaults['listNotes'];
916
950
  const callSettings = defaultCallSettings.merge(options);
917
- this.initialize();
951
+ this.initialize().catch(err => {
952
+ throw err;
953
+ });
918
954
  this._log.info('listNotes iterate %j', request);
919
955
  return this.descriptors.page.listNotes.asyncIterate(this.innerApiCalls['listNotes'], request, callSettings);
920
956
  }
@@ -935,7 +971,9 @@ class GrafeasV1Beta1Client {
935
971
  this._gaxModule.routingHeader.fromParams({
936
972
  name: request.name ?? '',
937
973
  });
938
- this.initialize();
974
+ this.initialize().catch(err => {
975
+ throw err;
976
+ });
939
977
  const wrappedCallback = callback
940
978
  ? (error, values, nextPageRequest, rawResponse) => {
941
979
  this._log.info('listNoteOccurrences values %j', values);
@@ -985,7 +1023,9 @@ class GrafeasV1Beta1Client {
985
1023
  });
986
1024
  const defaultCallSettings = this._defaults['listNoteOccurrences'];
987
1025
  const callSettings = defaultCallSettings.merge(options);
988
- this.initialize();
1026
+ this.initialize().catch(err => {
1027
+ throw err;
1028
+ });
989
1029
  this._log.info('listNoteOccurrences stream %j', request);
990
1030
  return this.descriptors.page.listNoteOccurrences.createStream(this.innerApiCalls.listNoteOccurrences, request, callSettings);
991
1031
  }
@@ -1027,7 +1067,9 @@ class GrafeasV1Beta1Client {
1027
1067
  });
1028
1068
  const defaultCallSettings = this._defaults['listNoteOccurrences'];
1029
1069
  const callSettings = defaultCallSettings.merge(options);
1030
- this.initialize();
1070
+ this.initialize().catch(err => {
1071
+ throw err;
1072
+ });
1031
1073
  this._log.info('listNoteOccurrences iterate %j', request);
1032
1074
  return this.descriptors.page.listNoteOccurrences.asyncIterate(this.innerApiCalls['listNoteOccurrences'], request, callSettings);
1033
1075
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/containeranalysis",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Containeranalysis client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,8 +47,8 @@
47
47
  "test": "c8 mocha build/test"
48
48
  },
49
49
  "dependencies": {
50
- "@google-cloud/grafeas": "^5.5.0",
51
- "google-gax": "^5.0.0-rc.0"
50
+ "@google-cloud/grafeas": "^6.0.0",
51
+ "google-gax": "^5.0.1-rc.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/mocha": "^10.0.10",