@googlemaps/routing 2.0.0 → 2.0.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.
- package/CHANGELOG.md +7 -0
- package/build/src/v2/routes_client.js +6 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.0.1](https://github.com/googleapis/google-cloud-node/compare/routing-v2.0.0...routing-v2.0.1) (2025-03-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* [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))
|
|
9
|
+
|
|
3
10
|
## [2.0.0](https://github.com/googleapis/google-cloud-node/compare/routing-v1.4.0...routing-v2.0.0) (2025-03-18)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -297,7 +297,9 @@ class RoutesClient {
|
|
|
297
297
|
options = options || {};
|
|
298
298
|
options.otherArgs = options.otherArgs || {};
|
|
299
299
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
300
|
-
this.initialize()
|
|
300
|
+
this.initialize().catch(err => {
|
|
301
|
+
throw err;
|
|
302
|
+
});
|
|
301
303
|
this._log.info('computeRoutes request %j', request);
|
|
302
304
|
const wrappedCallback = callback
|
|
303
305
|
? (error, response, options, rawResponse) => {
|
|
@@ -435,7 +437,9 @@ class RoutesClient {
|
|
|
435
437
|
options = options || {};
|
|
436
438
|
options.otherArgs = options.otherArgs || {};
|
|
437
439
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
438
|
-
this.initialize()
|
|
440
|
+
this.initialize().catch(err => {
|
|
441
|
+
throw err;
|
|
442
|
+
});
|
|
439
443
|
this._log.info('computeRouteMatrix stream %j', options);
|
|
440
444
|
return this.innerApiCalls.computeRouteMatrix(request, options);
|
|
441
445
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googlemaps/routing",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": " client for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"test": "c8 mocha build/test"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"google-gax": "^5.0.
|
|
49
|
+
"google-gax": "^5.0.1-rc.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/mocha": "^10.0.10",
|