@google-cloud/containeranalysis 6.0.0 → 6.2.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.
@@ -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.2.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",