@googlemaps/routing 3.1.0 → 3.1.1

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.
@@ -202,7 +202,7 @@ class RoutesClient {
202
202
  // and create an API call method for each.
203
203
  const routesStubMethods = ['computeRoutes', 'computeRouteMatrix'];
204
204
  for (const methodName of routesStubMethods) {
205
- const callPromise = this.routesStub.then((stub) => (...args) => {
205
+ const callPromise = this.routesStub.then(stub => (...args) => {
206
206
  if (this._terminated) {
207
207
  if (methodName in this.descriptors.stream) {
208
208
  const stream = new stream_1.PassThrough({ objectMode: true });
@@ -297,7 +297,7 @@ class RoutesClient {
297
297
  options = options || {};
298
298
  options.otherArgs = options.otherArgs || {};
299
299
  options.otherArgs.headers = options.otherArgs.headers || {};
300
- this.initialize().catch((err) => {
300
+ this.initialize().catch(err => {
301
301
  throw err;
302
302
  });
303
303
  this._log.info('computeRoutes request %j', request);
@@ -447,7 +447,7 @@ class RoutesClient {
447
447
  options = options || {};
448
448
  options.otherArgs = options.otherArgs || {};
449
449
  options.otherArgs.headers = options.otherArgs.headers || {};
450
- this.initialize().catch((err) => {
450
+ this.initialize().catch(err => {
451
451
  throw err;
452
452
  });
453
453
  this._log.info('computeRouteMatrix stream %j', options);
@@ -461,7 +461,7 @@ class RoutesClient {
461
461
  */
462
462
  close() {
463
463
  if (this.routesStub && !this._terminated) {
464
- return this.routesStub.then((stub) => {
464
+ return this.routesStub.then(stub => {
465
465
  this._log.info('ending gRPC channel');
466
466
  this._terminated = true;
467
467
  stub.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googlemaps/routing",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": " client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,10 +67,5 @@
67
67
  },
68
68
  "overrides": {
69
69
  "@sinonjs/fake-timers": "15.2.1"
70
- },
71
- "pnpm": {
72
- "overrides": {
73
- "@sinonjs/fake-timers": "15.2.1"
74
- }
75
70
  }
76
71
  }