@googlemaps/places 1.1.0 → 1.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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -3,10 +3,11 @@ import type { Callback, CallOptions, Descriptors, ClientOptions } from 'google-g
3
3
  import * as protos from '../../protos/protos';
4
4
  /**
5
5
  * Service definition for the Places API.
6
- * Note: every request actually requires a field mask set outside of the request
7
- * proto (all/'*' is not assumed). That can be set via either a side channel
8
- * (SystemParameterContext) over RPC, or a header (X-Goog-FieldMask) over HTTP.
9
- * See: https://cloud.google.com/apis/docs/system-parameters
6
+ * Note: every request actually requires a field mask set outside of
7
+ * the request proto (all/'*', is not assumed). That can be set via either a
8
+ * side channel (SystemParameterContext) over RPC, or a header
9
+ * (X-Goog-FieldMask) over HTTP. See:
10
+ * https://cloud.google.com/apis/docs/system-parameters
10
11
  * @class
11
12
  * @memberof v1
12
13
  */
@@ -18,6 +19,8 @@ export declare class PlacesClient {
18
19
  private _gaxGrpc;
19
20
  private _protos;
20
21
  private _defaults;
22
+ private _universeDomain;
23
+ private _servicePath;
21
24
  auth: gax.GoogleAuth;
22
25
  descriptors: Descriptors;
23
26
  warn: (code: string, message: string, warnType?: string) => void;
@@ -86,15 +89,22 @@ export declare class PlacesClient {
86
89
  }>;
87
90
  /**
88
91
  * The DNS address for this API service.
92
+ * @deprecated Use the apiEndpoint method of the client instance.
89
93
  * @returns {string} The DNS address for this service.
90
94
  */
91
95
  static get servicePath(): string;
92
96
  /**
93
- * The DNS address for this API service - same as servicePath(),
94
- * exists for compatibility reasons.
97
+ * The DNS address for this API service - same as servicePath.
98
+ * @deprecated Use the apiEndpoint method of the client instance.
95
99
  * @returns {string} The DNS address for this service.
96
100
  */
97
101
  static get apiEndpoint(): string;
102
+ /**
103
+ * The DNS address for this API service.
104
+ * @returns {string} The DNS address for this service.
105
+ */
106
+ get apiEndpoint(): string;
107
+ get universeDomain(): string;
98
108
  /**
99
109
  * The port for this API service.
100
110
  * @returns {number} The default port for this service.
@@ -128,13 +138,17 @@ export declare class PlacesClient {
128
138
  * affect results based on applicable law.
129
139
  *
130
140
  * For more information, see
131
- * http://www.unicode.org/reports/tr35/#unicode_region_subtag.
141
+ * https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html.
132
142
  *
133
143
  *
134
144
  * Note that 3-digit region codes are not currently supported.
135
145
  * @param {string[]} request.includedTypes
136
146
  * Included Place type (eg, "restaurant" or "gas_station") from
137
- * https://developers.google.com/places/supported_types.
147
+ * https://developers.google.com/maps/documentation/places/web-service/place-types.
148
+ *
149
+ * Up to 50 types from [Table
150
+ * A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a)
151
+ * may be specified.
138
152
  *
139
153
  * If there are any conflicting types, i.e. a type appears in both
140
154
  * included_types and excluded_types, an INVALID_ARGUMENT error is
@@ -143,11 +157,15 @@ export declare class PlacesClient {
143
157
  * If a Place type is specified with multiple type restrictions, only places
144
158
  * that satisfy all of the restrictions are returned. For example, if we
145
159
  * have {included_types = ["restaurant"], excluded_primary_types =
146
- * ["restaurant"]}, the returned places are POIs that provide "restaurant"
160
+ * ["restaurant"]}, the returned places provide "restaurant"
147
161
  * related services but do not operate primarily as "restaurants".
148
162
  * @param {string[]} request.excludedTypes
149
163
  * Excluded Place type (eg, "restaurant" or "gas_station") from
150
- * https://developers.google.com/places/supported_types.
164
+ * https://developers.google.com/maps/documentation/places/web-service/place-types.
165
+ *
166
+ * Up to 50 types from [Table
167
+ * A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a)
168
+ * may be specified.
151
169
  *
152
170
  * If the client provides both included_types (e.g. restaurant) and
153
171
  * excluded_types (e.g. cafe), then the response should include places that
@@ -160,11 +178,17 @@ export declare class PlacesClient {
160
178
  * If a Place type is specified with multiple type restrictions, only places
161
179
  * that satisfy all of the restrictions are returned. For example, if we
162
180
  * have {included_types = ["restaurant"], excluded_primary_types =
163
- * ["restaurant"]}, the returned places are POIs that provide "restaurant"
181
+ * ["restaurant"]}, the returned places provide "restaurant"
164
182
  * related services but do not operate primarily as "restaurants".
165
183
  * @param {string[]} request.includedPrimaryTypes
166
184
  * Included primary Place type (e.g. "restaurant" or "gas_station") from
167
- * https://developers.google.com/places/supported_types.
185
+ * https://developers.google.com/maps/documentation/places/web-service/place-types.
186
+ * A place can only have a single primary type from the supported types table
187
+ * associated with it.
188
+ *
189
+ * Up to 50 types from [Table
190
+ * A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a)
191
+ * may be specified.
168
192
  *
169
193
  * If there are any conflicting primary types, i.e. a type appears in both
170
194
  * included_primary_types and excluded_primary_types, an INVALID_ARGUMENT
@@ -173,11 +197,15 @@ export declare class PlacesClient {
173
197
  * If a Place type is specified with multiple type restrictions, only places
174
198
  * that satisfy all of the restrictions are returned. For example, if we
175
199
  * have {included_types = ["restaurant"], excluded_primary_types =
176
- * ["restaurant"]}, the returned places are POIs that provide "restaurant"
200
+ * ["restaurant"]}, the returned places provide "restaurant"
177
201
  * related services but do not operate primarily as "restaurants".
178
202
  * @param {string[]} request.excludedPrimaryTypes
179
203
  * Excluded primary Place type (e.g. "restaurant" or "gas_station") from
180
- * https://developers.google.com/places/supported_types.
204
+ * https://developers.google.com/maps/documentation/places/web-service/place-types.
205
+ *
206
+ * Up to 50 types from [Table
207
+ * A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a)
208
+ * may be specified.
181
209
  *
182
210
  * If there are any conflicting primary types, i.e. a type appears in both
183
211
  * included_primary_types and excluded_primary_types, an INVALID_ARGUMENT
@@ -186,10 +214,10 @@ export declare class PlacesClient {
186
214
  * If a Place type is specified with multiple type restrictions, only places
187
215
  * that satisfy all of the restrictions are returned. For example, if we
188
216
  * have {included_types = ["restaurant"], excluded_primary_types =
189
- * ["restaurant"]}, the returned places are POIs that provide "restaurant"
217
+ * ["restaurant"]}, the returned places provide "restaurant"
190
218
  * related services but do not operate primarily as "restaurants".
191
219
  * @param {number} request.maxResultCount
192
- * Maximum number of results to return. It must be between 1 and 20,
220
+ * Maximum number of results to return. It must be between 1 and 20 (default),
193
221
  * inclusively. If the number is unset, it falls back to the upper limit. If
194
222
  * the number is set to negative or exceeds the upper limit, an
195
223
  * INVALID_ARGUMENT error is returned.
@@ -235,7 +263,7 @@ export declare class PlacesClient {
235
263
  * affect results based on applicable law.
236
264
  *
237
265
  * For more information, see
238
- * http://www.unicode.org/reports/tr35/#unicode_region_subtag.
266
+ * https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html.
239
267
  *
240
268
  *
241
269
  * Note that 3-digit region codes are not currently supported.
@@ -243,23 +271,22 @@ export declare class PlacesClient {
243
271
  * How results will be ranked in the response.
244
272
  * @param {string} request.includedType
245
273
  * The requested place type. Full list of types supported:
246
- * https://developers.google.com/places/supported_types. Only support one
247
- * included type.
274
+ * https://developers.google.com/maps/documentation/places/web-service/place-types.
275
+ * Only support one included type.
248
276
  * @param {boolean} request.openNow
249
- * Used to restrict the search to places that are open at a specific time.
250
- * open_now marks if a business is currently open.
277
+ * Used to restrict the search to places that are currently open. The default
278
+ * is false.
251
279
  * @param {number} request.minRating
252
280
  * Filter out results whose average user rating is strictly less than this
253
- * limit. A valid value must be an float between 0 and 5 (inclusively) at a
254
- * 0.5 cadence i.e. [0, 0.5, 1.0, ... , 5.0] inclusively. This is to keep
255
- * parity with LocalRefinement_UserRating. The input rating will round up to
256
- * the nearest 0.5(ceiling). For instance, a rating of 0.6 will eliminate all
257
- * results with a less than 1.0 rating.
281
+ * limit. A valid value must be a float between 0 and 5 (inclusively) at a
282
+ * 0.5 cadence i.e. [0, 0.5, 1.0, ... , 5.0] inclusively. The input rating
283
+ * will round up to the nearest 0.5(ceiling). For instance, a rating of 0.6
284
+ * will eliminate all results with a less than 1.0 rating.
258
285
  * @param {number} request.maxResultCount
259
286
  * Maximum number of results to return. It must be between 1 and 20,
260
- * inclusively. If the number is unset, it falls back to the upper limit. If
261
- * the number is set to negative or exceeds the upper limit, an
262
- * INVALID_ARGUMENT error is returned.
287
+ * inclusively. The default is 20. If the number is unset, it falls back to
288
+ * the upper limit. If the number is set to negative or exceeds the upper
289
+ * limit, an INVALID_ARGUMENT error is returned.
263
290
  * @param {number[]} request.priceLevels
264
291
  * Used to restrict the search to places that are marked as certain price
265
292
  * levels. Users can choose any combinations of price levels. Default to
@@ -297,9 +324,13 @@ export declare class PlacesClient {
297
324
  * @param {Object} request
298
325
  * The request object that will be sent.
299
326
  * @param {string} request.name
300
- * Required. The resource name of a photo. It is returned in Place's
301
- * photos.name field. Format:
302
- * places/<place_id>/photos/<photo_reference>/media.
327
+ * Required. The resource name of a photo media in the format:
328
+ * `places/{place_id}/photos/{photo_reference}/media`.
329
+ *
330
+ * The resource name of a photo as returned in a Place object's `photos.name`
331
+ * field comes with the format
332
+ * `places/{place_id}/photos/{photo_reference}`. You need to append `/media`
333
+ * at the end of the photo resource to get the photo media resource name.
303
334
  * @param {number} [request.maxWidthPx]
304
335
  * Optional. Specifies the maximum desired width, in pixels, of the image. If
305
336
  * the image is smaller than the values specified, the original image will be
@@ -328,7 +359,7 @@ export declare class PlacesClient {
328
359
  * Optional. If set, skip the default HTTP redirect behavior and render a text
329
360
  * format (for example, in JSON format for HTTP use case) response. If not
330
361
  * set, an HTTP redirect will be issued to redirect the call to the image
331
- * midea. This option is ignored for non-HTTP requests.
362
+ * media. This option is ignored for non-HTTP requests.
332
363
  * @param {object} [options]
333
364
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
334
365
  * @returns {Promise} - The promise which resolves to an array.
@@ -346,13 +377,14 @@ export declare class PlacesClient {
346
377
  getPhotoMedia(request: protos.google.maps.places.v1.IGetPhotoMediaRequest, options: CallOptions, callback: Callback<protos.google.maps.places.v1.IPhotoMedia, protos.google.maps.places.v1.IGetPhotoMediaRequest | null | undefined, {} | null | undefined>): void;
347
378
  getPhotoMedia(request: protos.google.maps.places.v1.IGetPhotoMediaRequest, callback: Callback<protos.google.maps.places.v1.IPhotoMedia, protos.google.maps.places.v1.IGetPhotoMediaRequest | null | undefined, {} | null | undefined>): void;
348
379
  /**
349
- * Get a Place with a place id (in a name) string.
380
+ * Get place details with a place id (in a name) string.
350
381
  *
351
382
  * @param {Object} request
352
383
  * The request object that will be sent.
353
384
  * @param {string} request.name
354
- * Required. A place_id returned in a Place (with "places/" prefix), or
355
- * equivalently the name in the same Place. Format: places/<place_id>.
385
+ * Required. A place ID returned in a Place (with "places/" prefix), or
386
+ * equivalently the name in the same Place. Format:
387
+ * `places/{place_id}`.
356
388
  * @param {string} [request.languageCode]
357
389
  * Optional. Place details will be displayed with the preferred language if
358
390
  * available.
@@ -365,7 +397,7 @@ export declare class PlacesClient {
365
397
  * details, like region-specific place name, if available. The parameter can
366
398
  * affect results based on applicable law.
367
399
  * For more information, see
368
- * http://www.unicode.org/reports/tr35/#unicode_region_subtag.
400
+ * https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html.
369
401
  *
370
402
  *
371
403
  * Note that 3-digit region codes are not currently supported.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // Copyright 2023 Google LLC
2
+ // Copyright 2024 Google LLC
3
3
  //
4
4
  // Licensed under the Apache License, Version 2.0 (the "License");
5
5
  // you may not use this file except in compliance with the License.
@@ -28,10 +28,11 @@ const gapicConfig = require("./places_client_config.json");
28
28
  const version = require('../../../package.json').version;
29
29
  /**
30
30
  * Service definition for the Places API.
31
- * Note: every request actually requires a field mask set outside of the request
32
- * proto (all/'*' is not assumed). That can be set via either a side channel
33
- * (SystemParameterContext) over RPC, or a header (X-Goog-FieldMask) over HTTP.
34
- * See: https://cloud.google.com/apis/docs/system-parameters
31
+ * Note: every request actually requires a field mask set outside of
32
+ * the request proto (all/'*', is not assumed). That can be set via either a
33
+ * side channel (SystemParameterContext) over RPC, or a header
34
+ * (X-Goog-FieldMask) over HTTP. See:
35
+ * https://cloud.google.com/apis/docs/system-parameters
35
36
  * @class
36
37
  * @memberof v1
37
38
  */
@@ -76,7 +77,7 @@ class PlacesClient {
76
77
  * ```
77
78
  */
78
79
  constructor(opts, gaxInstance) {
79
- var _a, _b;
80
+ var _a, _b, _c, _d;
80
81
  this._terminated = false;
81
82
  this.descriptors = {
82
83
  page: {},
@@ -86,16 +87,24 @@ class PlacesClient {
86
87
  };
87
88
  // Ensure that options include all the required fields.
88
89
  const staticMembers = this.constructor;
89
- const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || staticMembers.servicePath;
90
+ if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
91
+ (opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
92
+ (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
93
+ throw new Error('Please set either universe_domain or universeDomain, but not both.');
94
+ }
95
+ this._universeDomain =
96
+ (_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';
97
+ this._servicePath = 'places.' + this._universeDomain;
98
+ const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
90
99
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
91
100
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
92
- const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
93
- const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
101
+ const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
102
+ 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');
94
103
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
95
104
  // Request numeric enum values if REST transport is used.
96
105
  opts.numericEnums = true;
97
106
  // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
98
- if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
107
+ if (servicePath !== this._servicePath && !('scopes' in opts)) {
99
108
  opts['scopes'] = staticMembers.scopes;
100
109
  }
101
110
  // Load google-gax module synchronously if needed
@@ -113,9 +122,9 @@ class PlacesClient {
113
122
  // Set useJWTAccessWithScope on the auth object.
114
123
  this.auth.useJWTAccessWithScope = true;
115
124
  // Set defaultServicePath on the auth object.
116
- this.auth.defaultServicePath = staticMembers.servicePath;
125
+ this.auth.defaultServicePath = this._servicePath;
117
126
  // Set the default scopes in auth client if needed.
118
- if (servicePath === staticMembers.servicePath) {
127
+ if (servicePath === this._servicePath) {
119
128
  this.auth.defaultScopes = staticMembers.scopes;
120
129
  }
121
130
  // Determine the client header string.
@@ -203,19 +212,38 @@ class PlacesClient {
203
212
  }
204
213
  /**
205
214
  * The DNS address for this API service.
215
+ * @deprecated Use the apiEndpoint method of the client instance.
206
216
  * @returns {string} The DNS address for this service.
207
217
  */
208
218
  static get servicePath() {
219
+ if (typeof process !== undefined &&
220
+ typeof process.emitWarning === 'function') {
221
+ process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
222
+ }
209
223
  return 'places.googleapis.com';
210
224
  }
211
225
  /**
212
- * The DNS address for this API service - same as servicePath(),
213
- * exists for compatibility reasons.
226
+ * The DNS address for this API service - same as servicePath.
227
+ * @deprecated Use the apiEndpoint method of the client instance.
214
228
  * @returns {string} The DNS address for this service.
215
229
  */
216
230
  static get apiEndpoint() {
231
+ if (typeof process !== undefined &&
232
+ typeof process.emitWarning === 'function') {
233
+ process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
234
+ }
217
235
  return 'places.googleapis.com';
218
236
  }
237
+ /**
238
+ * The DNS address for this API service.
239
+ * @returns {string} The DNS address for this service.
240
+ */
241
+ get apiEndpoint() {
242
+ return this._servicePath;
243
+ }
244
+ get universeDomain() {
245
+ return this._universeDomain;
246
+ }
219
247
  /**
220
248
  * The port for this API service.
221
249
  * @returns {number} The default port for this service.
@@ -1 +1 @@
1
- {"version":3,"file":"places_client.js","sourceRoot":"","sources":["../../../src/v1/places_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAYrD,uDAAwD;AACxD;;;;GAIG;AACH,2DAA2D;AAC3D,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAa,YAAY;IAoBvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,YACE,IAAoB,EACpB,WAA8C;;QA5DxC,gBAAW,GAAG,KAAK,CAAC;QAQ5B,gBAAW,GAAgB;YACzB,IAAI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AQ,CAAC;IACxE,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CAAC,KAAa,EAAE,MAAc;QACtC,OAAO,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,MAAM,CAAC;YAClD,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,MAAM;SACf,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,wBAAwB,CAAC,UAAkB;QACzC,OAAO,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC;IACvE,CAAC;IAED;;;;;;OAMG;IACH,yBAAyB,CAAC,UAAkB;QAC1C,OAAO,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;IACxE,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACxC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACjC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AA96BD,oCA86BC"}
1
+ {"version":3,"file":"places_client.js","sourceRoot":"","sources":["../../../src/v1/places_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAYrD,uDAAwD;AAExD;;;;GAIG;AACH,2DAA2D;AAC3D,MAAM,OAAO,GAA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",
4
4
  "description": "Places API (New) client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,7 +38,7 @@
38
38
  "fix": "gts fix",
39
39
  "lint": "gts check",
40
40
  "postpack": "minifyProtoJson",
41
- "prepare": "npm run compile-protos && npm run compile",
41
+ "prepare": "npm run compile",
42
42
  "system-test": "c8 mocha build/system-test",
43
43
  "test": "c8 mocha build/test",
44
44
  "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
@@ -50,9 +50,9 @@
50
50
  "devDependencies": {
51
51
  "@types/mocha": "^9.0.0",
52
52
  "@types/node": "^20.4.5",
53
- "@types/sinon": "^10.0.0",
53
+ "@types/sinon": "^17.0.0",
54
54
  "c8": "^8.0.1",
55
- "gapic-tools": "^0.2.0",
55
+ "gapic-tools": "^0.3.0",
56
56
  "gts": "5.2.0",
57
57
  "jsdoc": "^4.0.0",
58
58
  "jsdoc-fresh": "^3.0.0",
@@ -61,7 +61,7 @@
61
61
  "long": "^5.2.3",
62
62
  "mocha": "^9.2.2",
63
63
  "pack-n-play": "^2.0.0",
64
- "sinon": "^15.0.0",
64
+ "sinon": "^17.0.0",
65
65
  "typescript": "^5.1.6"
66
66
  },
67
67
  "engines": {