@google-analytics/data 4.4.0 → 4.5.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.
@@ -34,6 +34,21 @@
34
34
  }
35
35
  }
36
36
  },
37
+ "Edition": {
38
+ "values": {
39
+ "EDITION_UNKNOWN": 0,
40
+ "EDITION_PROTO2": 998,
41
+ "EDITION_PROTO3": 999,
42
+ "EDITION_2023": 1000,
43
+ "EDITION_2024": 1001,
44
+ "EDITION_1_TEST_ONLY": 1,
45
+ "EDITION_2_TEST_ONLY": 2,
46
+ "EDITION_99997_TEST_ONLY": 99997,
47
+ "EDITION_99998_TEST_ONLY": 99998,
48
+ "EDITION_99999_TEST_ONLY": 99999,
49
+ "EDITION_MAX": 2147483647
50
+ }
51
+ },
37
52
  "FileDescriptorProto": {
38
53
  "fields": {
39
54
  "name": {
@@ -98,8 +113,8 @@
98
113
  "id": 12
99
114
  },
100
115
  "edition": {
101
- "type": "string",
102
- "id": 13
116
+ "type": "Edition",
117
+ "id": 14
103
118
  }
104
119
  }
105
120
  },
@@ -191,6 +206,26 @@
191
206
  "rule": "repeated",
192
207
  "type": "UninterpretedOption",
193
208
  "id": 999
209
+ },
210
+ "declaration": {
211
+ "rule": "repeated",
212
+ "type": "Declaration",
213
+ "id": 2,
214
+ "options": {
215
+ "retention": "RETENTION_SOURCE"
216
+ }
217
+ },
218
+ "features": {
219
+ "type": "FeatureSet",
220
+ "id": 50
221
+ },
222
+ "verification": {
223
+ "type": "VerificationState",
224
+ "id": 3,
225
+ "options": {
226
+ "default": "UNVERIFIED",
227
+ "retention": "RETENTION_SOURCE"
228
+ }
194
229
  }
195
230
  },
196
231
  "extensions": [
@@ -198,7 +233,45 @@
198
233
  1000,
199
234
  536870911
200
235
  ]
201
- ]
236
+ ],
237
+ "nested": {
238
+ "Declaration": {
239
+ "fields": {
240
+ "number": {
241
+ "type": "int32",
242
+ "id": 1
243
+ },
244
+ "fullName": {
245
+ "type": "string",
246
+ "id": 2
247
+ },
248
+ "type": {
249
+ "type": "string",
250
+ "id": 3
251
+ },
252
+ "reserved": {
253
+ "type": "bool",
254
+ "id": 5
255
+ },
256
+ "repeated": {
257
+ "type": "bool",
258
+ "id": 6
259
+ }
260
+ },
261
+ "reserved": [
262
+ [
263
+ 4,
264
+ 4
265
+ ]
266
+ ]
267
+ },
268
+ "VerificationState": {
269
+ "values": {
270
+ "DECLARATION": 0,
271
+ "UNVERIFIED": 1
272
+ }
273
+ }
274
+ }
202
275
  },
203
276
  "FieldDescriptorProto": {
204
277
  "fields": {
@@ -273,8 +346,8 @@
273
346
  "Label": {
274
347
  "values": {
275
348
  "LABEL_OPTIONAL": 1,
276
- "LABEL_REQUIRED": 2,
277
- "LABEL_REPEATED": 3
349
+ "LABEL_REPEATED": 3,
350
+ "LABEL_REQUIRED": 2
278
351
  }
279
352
  }
280
353
  }
@@ -462,13 +535,6 @@
462
535
  "default": false
463
536
  }
464
537
  },
465
- "phpGenericServices": {
466
- "type": "bool",
467
- "id": 42,
468
- "options": {
469
- "default": false
470
- }
471
- },
472
538
  "deprecated": {
473
539
  "type": "bool",
474
540
  "id": 23,
@@ -511,6 +577,10 @@
511
577
  "type": "string",
512
578
  "id": 45
513
579
  },
580
+ "features": {
581
+ "type": "FeatureSet",
582
+ "id": 50
583
+ },
514
584
  "uninterpretedOption": {
515
585
  "rule": "repeated",
516
586
  "type": "UninterpretedOption",
@@ -524,6 +594,10 @@
524
594
  ]
525
595
  ],
526
596
  "reserved": [
597
+ [
598
+ 42,
599
+ 42
600
+ ],
527
601
  [
528
602
  38,
529
603
  38
@@ -573,6 +647,10 @@
573
647
  "deprecated": true
574
648
  }
575
649
  },
650
+ "features": {
651
+ "type": "FeatureSet",
652
+ "id": 12
653
+ },
576
654
  "uninterpretedOption": {
577
655
  "rule": "repeated",
578
656
  "type": "UninterpretedOption",
@@ -667,9 +745,22 @@
667
745
  "type": "OptionRetention",
668
746
  "id": 17
669
747
  },
670
- "target": {
748
+ "targets": {
749
+ "rule": "repeated",
671
750
  "type": "OptionTargetType",
672
- "id": 18
751
+ "id": 19,
752
+ "options": {
753
+ "packed": false
754
+ }
755
+ },
756
+ "editionDefaults": {
757
+ "rule": "repeated",
758
+ "type": "EditionDefault",
759
+ "id": 20
760
+ },
761
+ "features": {
762
+ "type": "FeatureSet",
763
+ "id": 21
673
764
  },
674
765
  "uninterpretedOption": {
675
766
  "rule": "repeated",
@@ -687,6 +778,10 @@
687
778
  [
688
779
  4,
689
780
  4
781
+ ],
782
+ [
783
+ 18,
784
+ 18
690
785
  ]
691
786
  ],
692
787
  "nested": {
@@ -724,11 +819,27 @@
724
819
  "TARGET_TYPE_SERVICE": 8,
725
820
  "TARGET_TYPE_METHOD": 9
726
821
  }
822
+ },
823
+ "EditionDefault": {
824
+ "fields": {
825
+ "edition": {
826
+ "type": "Edition",
827
+ "id": 3
828
+ },
829
+ "value": {
830
+ "type": "string",
831
+ "id": 2
832
+ }
833
+ }
727
834
  }
728
835
  }
729
836
  },
730
837
  "OneofOptions": {
731
838
  "fields": {
839
+ "features": {
840
+ "type": "FeatureSet",
841
+ "id": 1
842
+ },
732
843
  "uninterpretedOption": {
733
844
  "rule": "repeated",
734
845
  "type": "UninterpretedOption",
@@ -762,6 +873,10 @@
762
873
  "deprecated": true
763
874
  }
764
875
  },
876
+ "features": {
877
+ "type": "FeatureSet",
878
+ "id": 7
879
+ },
765
880
  "uninterpretedOption": {
766
881
  "rule": "repeated",
767
882
  "type": "UninterpretedOption",
@@ -790,6 +905,17 @@
790
905
  "default": false
791
906
  }
792
907
  },
908
+ "features": {
909
+ "type": "FeatureSet",
910
+ "id": 2
911
+ },
912
+ "debugRedact": {
913
+ "type": "bool",
914
+ "id": 3,
915
+ "options": {
916
+ "default": false
917
+ }
918
+ },
793
919
  "uninterpretedOption": {
794
920
  "rule": "repeated",
795
921
  "type": "UninterpretedOption",
@@ -805,6 +931,10 @@
805
931
  },
806
932
  "ServiceOptions": {
807
933
  "fields": {
934
+ "features": {
935
+ "type": "FeatureSet",
936
+ "id": 34
937
+ },
808
938
  "deprecated": {
809
939
  "type": "bool",
810
940
  "id": 33,
@@ -841,6 +971,10 @@
841
971
  "default": "IDEMPOTENCY_UNKNOWN"
842
972
  }
843
973
  },
974
+ "features": {
975
+ "type": "FeatureSet",
976
+ "id": 35
977
+ },
844
978
  "uninterpretedOption": {
845
979
  "rule": "repeated",
846
980
  "type": "UninterpretedOption",
@@ -912,6 +1046,166 @@
912
1046
  }
913
1047
  }
914
1048
  },
1049
+ "FeatureSet": {
1050
+ "fields": {
1051
+ "fieldPresence": {
1052
+ "type": "FieldPresence",
1053
+ "id": 1,
1054
+ "options": {
1055
+ "retention": "RETENTION_RUNTIME",
1056
+ "targets": "TARGET_TYPE_FILE",
1057
+ "edition_defaults.edition": "EDITION_2023",
1058
+ "edition_defaults.value": "EXPLICIT"
1059
+ }
1060
+ },
1061
+ "enumType": {
1062
+ "type": "EnumType",
1063
+ "id": 2,
1064
+ "options": {
1065
+ "retention": "RETENTION_RUNTIME",
1066
+ "targets": "TARGET_TYPE_FILE",
1067
+ "edition_defaults.edition": "EDITION_PROTO3",
1068
+ "edition_defaults.value": "OPEN"
1069
+ }
1070
+ },
1071
+ "repeatedFieldEncoding": {
1072
+ "type": "RepeatedFieldEncoding",
1073
+ "id": 3,
1074
+ "options": {
1075
+ "retention": "RETENTION_RUNTIME",
1076
+ "targets": "TARGET_TYPE_FILE",
1077
+ "edition_defaults.edition": "EDITION_PROTO3",
1078
+ "edition_defaults.value": "PACKED"
1079
+ }
1080
+ },
1081
+ "utf8Validation": {
1082
+ "type": "Utf8Validation",
1083
+ "id": 4,
1084
+ "options": {
1085
+ "retention": "RETENTION_RUNTIME",
1086
+ "targets": "TARGET_TYPE_FILE",
1087
+ "edition_defaults.edition": "EDITION_PROTO3",
1088
+ "edition_defaults.value": "VERIFY"
1089
+ }
1090
+ },
1091
+ "messageEncoding": {
1092
+ "type": "MessageEncoding",
1093
+ "id": 5,
1094
+ "options": {
1095
+ "retention": "RETENTION_RUNTIME",
1096
+ "targets": "TARGET_TYPE_FILE",
1097
+ "edition_defaults.edition": "EDITION_PROTO2",
1098
+ "edition_defaults.value": "LENGTH_PREFIXED"
1099
+ }
1100
+ },
1101
+ "jsonFormat": {
1102
+ "type": "JsonFormat",
1103
+ "id": 6,
1104
+ "options": {
1105
+ "retention": "RETENTION_RUNTIME",
1106
+ "targets": "TARGET_TYPE_FILE",
1107
+ "edition_defaults.edition": "EDITION_PROTO3",
1108
+ "edition_defaults.value": "ALLOW"
1109
+ }
1110
+ }
1111
+ },
1112
+ "extensions": [
1113
+ [
1114
+ 1000,
1115
+ 1000
1116
+ ],
1117
+ [
1118
+ 1001,
1119
+ 1001
1120
+ ],
1121
+ [
1122
+ 9995,
1123
+ 9999
1124
+ ]
1125
+ ],
1126
+ "reserved": [
1127
+ [
1128
+ 999,
1129
+ 999
1130
+ ]
1131
+ ],
1132
+ "nested": {
1133
+ "FieldPresence": {
1134
+ "values": {
1135
+ "FIELD_PRESENCE_UNKNOWN": 0,
1136
+ "EXPLICIT": 1,
1137
+ "IMPLICIT": 2,
1138
+ "LEGACY_REQUIRED": 3
1139
+ }
1140
+ },
1141
+ "EnumType": {
1142
+ "values": {
1143
+ "ENUM_TYPE_UNKNOWN": 0,
1144
+ "OPEN": 1,
1145
+ "CLOSED": 2
1146
+ }
1147
+ },
1148
+ "RepeatedFieldEncoding": {
1149
+ "values": {
1150
+ "REPEATED_FIELD_ENCODING_UNKNOWN": 0,
1151
+ "PACKED": 1,
1152
+ "EXPANDED": 2
1153
+ }
1154
+ },
1155
+ "Utf8Validation": {
1156
+ "values": {
1157
+ "UTF8_VALIDATION_UNKNOWN": 0,
1158
+ "VERIFY": 2,
1159
+ "NONE": 3
1160
+ }
1161
+ },
1162
+ "MessageEncoding": {
1163
+ "values": {
1164
+ "MESSAGE_ENCODING_UNKNOWN": 0,
1165
+ "LENGTH_PREFIXED": 1,
1166
+ "DELIMITED": 2
1167
+ }
1168
+ },
1169
+ "JsonFormat": {
1170
+ "values": {
1171
+ "JSON_FORMAT_UNKNOWN": 0,
1172
+ "ALLOW": 1,
1173
+ "LEGACY_BEST_EFFORT": 2
1174
+ }
1175
+ }
1176
+ }
1177
+ },
1178
+ "FeatureSetDefaults": {
1179
+ "fields": {
1180
+ "defaults": {
1181
+ "rule": "repeated",
1182
+ "type": "FeatureSetEditionDefault",
1183
+ "id": 1
1184
+ },
1185
+ "minimumEdition": {
1186
+ "type": "Edition",
1187
+ "id": 4
1188
+ },
1189
+ "maximumEdition": {
1190
+ "type": "Edition",
1191
+ "id": 5
1192
+ }
1193
+ },
1194
+ "nested": {
1195
+ "FeatureSetEditionDefault": {
1196
+ "fields": {
1197
+ "edition": {
1198
+ "type": "Edition",
1199
+ "id": 3
1200
+ },
1201
+ "features": {
1202
+ "type": "FeatureSet",
1203
+ "id": 2
1204
+ }
1205
+ }
1206
+ }
1207
+ }
1208
+ },
915
1209
  "SourceCodeInfo": {
916
1210
  "fields": {
917
1211
  "location": {
@@ -5192,6 +5486,10 @@
5192
5486
  "rule": "repeated",
5193
5487
  "type": "ClientLibrarySettings",
5194
5488
  "id": 109
5489
+ },
5490
+ "protoReferenceDocumentationUri": {
5491
+ "type": "string",
5492
+ "id": 110
5195
5493
  }
5196
5494
  }
5197
5495
  },
@@ -5249,6 +5547,31 @@
5249
5547
  "common": {
5250
5548
  "type": "CommonLanguageSettings",
5251
5549
  "id": 1
5550
+ },
5551
+ "renamedServices": {
5552
+ "keyType": "string",
5553
+ "type": "string",
5554
+ "id": 2
5555
+ },
5556
+ "renamedResources": {
5557
+ "keyType": "string",
5558
+ "type": "string",
5559
+ "id": 3
5560
+ },
5561
+ "ignoredResources": {
5562
+ "rule": "repeated",
5563
+ "type": "string",
5564
+ "id": 4
5565
+ },
5566
+ "forcedNamespaceAliases": {
5567
+ "rule": "repeated",
5568
+ "type": "string",
5569
+ "id": 5
5570
+ },
5571
+ "handwrittenSignatures": {
5572
+ "rule": "repeated",
5573
+ "type": "string",
5574
+ "id": 6
5252
5575
  }
5253
5576
  }
5254
5577
  },
@@ -5277,6 +5600,11 @@
5277
5600
  "longRunning": {
5278
5601
  "type": "LongRunning",
5279
5602
  "id": 2
5603
+ },
5604
+ "autoPopulatedFields": {
5605
+ "rule": "repeated",
5606
+ "type": "string",
5607
+ "id": 3
5280
5608
  }
5281
5609
  },
5282
5610
  "nested": {
@@ -5308,7 +5636,10 @@
5308
5636
  "CLOUD": 1,
5309
5637
  "ADS": 2,
5310
5638
  "PHOTOS": 3,
5311
- "STREET_VIEW": 4
5639
+ "STREET_VIEW": 4,
5640
+ "SHOPPING": 5,
5641
+ "GEO": 6,
5642
+ "GENERATIVE_AI": 7
5312
5643
  }
5313
5644
  },
5314
5645
  "ClientLibraryDestination": {
@@ -5345,7 +5676,8 @@
5345
5676
  "INPUT_ONLY": 4,
5346
5677
  "IMMUTABLE": 5,
5347
5678
  "UNORDERED_LIST": 6,
5348
- "NON_EMPTY_DEFAULT": 7
5679
+ "NON_EMPTY_DEFAULT": 7,
5680
+ "IDENTIFIER": 8
5349
5681
  }
5350
5682
  },
5351
5683
  "resourceReference": {
@@ -5431,7 +5763,7 @@
5431
5763
  "options": {
5432
5764
  "cc_enable_arenas": true,
5433
5765
  "csharp_namespace": "Google.LongRunning",
5434
- "go_package": "google.golang.org/genproto/googleapis/longrunning;longrunning",
5766
+ "go_package": "cloud.google.com/go/longrunning/autogen/longrunningpb;longrunningpb",
5435
5767
  "java_multiple_files": true,
5436
5768
  "java_outer_classname": "OperationsProto",
5437
5769
  "java_package": "com.google.longrunning",
@@ -72,7 +72,7 @@ class AlphaAnalyticsDataClient {
72
72
  * ```
73
73
  */
74
74
  constructor(opts, gaxInstance) {
75
- var _a, _b, _c, _d;
75
+ var _a, _b, _c, _d, _e;
76
76
  this._terminated = false;
77
77
  this.descriptors = {
78
78
  page: {},
@@ -87,14 +87,17 @@ class AlphaAnalyticsDataClient {
87
87
  (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
88
88
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
89
89
  }
90
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
91
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
92
+ : undefined;
90
93
  this._universeDomain =
91
- (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
94
+ (_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
92
95
  this._servicePath = 'analyticsdata.' + this._universeDomain;
93
96
  const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
94
97
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
95
98
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
96
- const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
97
- const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
99
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
100
+ const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
98
101
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
99
102
  // Request numeric enum values if REST transport is used.
100
103
  opts.numericEnums = true;
@@ -124,7 +127,7 @@ class AlphaAnalyticsDataClient {
124
127
  }
125
128
  // Determine the client header string.
126
129
  const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
127
- if (typeof process !== 'undefined' && 'versions' in process) {
130
+ if (typeof process === 'object' && 'versions' in process) {
128
131
  clientHeader.push(`gl-node/${process.versions.node}`);
129
132
  }
130
133
  else {
@@ -245,7 +248,7 @@ class AlphaAnalyticsDataClient {
245
248
  * @returns {string} The DNS address for this service.
246
249
  */
247
250
  static get servicePath() {
248
- if (typeof process !== undefined &&
251
+ if (typeof process === 'object' &&
249
252
  typeof process.emitWarning === 'function') {
250
253
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
251
254
  }
@@ -257,7 +260,7 @@ class AlphaAnalyticsDataClient {
257
260
  * @returns {string} The DNS address for this service.
258
261
  */
259
262
  static get apiEndpoint() {
260
- if (typeof process !== undefined &&
263
+ if (typeof process === 'object' &&
261
264
  typeof process.emitWarning === 'function') {
262
265
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
263
266
  }
@@ -72,7 +72,7 @@ class BetaAnalyticsDataClient {
72
72
  * ```
73
73
  */
74
74
  constructor(opts, gaxInstance) {
75
- var _a, _b, _c, _d;
75
+ var _a, _b, _c, _d, _e;
76
76
  this._terminated = false;
77
77
  this.descriptors = {
78
78
  page: {},
@@ -87,14 +87,17 @@ class BetaAnalyticsDataClient {
87
87
  (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
88
88
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
89
89
  }
90
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
91
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
92
+ : undefined;
90
93
  this._universeDomain =
91
- (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
94
+ (_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
92
95
  this._servicePath = 'analyticsdata.' + this._universeDomain;
93
96
  const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
94
97
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
95
98
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
96
- const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
97
- const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
99
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
100
+ const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
98
101
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
99
102
  // Request numeric enum values if REST transport is used.
100
103
  opts.numericEnums = true;
@@ -124,7 +127,7 @@ class BetaAnalyticsDataClient {
124
127
  }
125
128
  // Determine the client header string.
126
129
  const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
127
- if (typeof process !== 'undefined' && 'versions' in process) {
130
+ if (typeof process === 'object' && 'versions' in process) {
128
131
  clientHeader.push(`gl-node/${process.versions.node}`);
129
132
  }
130
133
  else {
@@ -245,7 +248,7 @@ class BetaAnalyticsDataClient {
245
248
  * @returns {string} The DNS address for this service.
246
249
  */
247
250
  static get servicePath() {
248
- if (typeof process !== undefined &&
251
+ if (typeof process === 'object' &&
249
252
  typeof process.emitWarning === 'function') {
250
253
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
251
254
  }
@@ -257,7 +260,7 @@ class BetaAnalyticsDataClient {
257
260
  * @returns {string} The DNS address for this service.
258
261
  */
259
262
  static get apiEndpoint() {
260
- if (typeof process !== undefined &&
263
+ if (typeof process === 'object' &&
261
264
  typeof process.emitWarning === 'function') {
262
265
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
263
266
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-analytics/data",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "Data client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,8 +51,8 @@
51
51
  "@types/mocha": "^9.0.0",
52
52
  "@types/node": "^20.4.5",
53
53
  "@types/sinon": "^17.0.0",
54
- "c8": "^8.0.1",
55
- "gapic-tools": "^0.3.0",
54
+ "c8": "^9.0.0",
55
+ "gapic-tools": "^0.4.0",
56
56
  "gts": "^5.0.0",
57
57
  "jsdoc": "^4.0.0",
58
58
  "jsdoc-fresh": "^3.0.0",