@azure-rest/maps-geolocation 1.0.0-beta.1 → 1.0.0-beta.2
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/README.md +6 -7
- package/package.json +5 -7
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ npm install @azure/core-auth
|
|
|
77
77
|
|
|
78
78
|
```javascript
|
|
79
79
|
const MapsGeolocation = require("@azure-rest/maps-geolocation").default;
|
|
80
|
-
const AzureKeyCredential = require("@azure/core-auth");
|
|
80
|
+
const { AzureKeyCredential } = require("@azure/core-auth");
|
|
81
81
|
const credential = new AzureKeyCredential("<subscription-key>");
|
|
82
82
|
const client = MapsGeolocation(credential);
|
|
83
83
|
```
|
|
@@ -93,7 +93,7 @@ const client = MapsGeolocation(credential);
|
|
|
93
93
|
You can get the country code from a IP address:
|
|
94
94
|
|
|
95
95
|
```javascript
|
|
96
|
-
const isUnexpected = require("@azure-rest/maps-geolocation");
|
|
96
|
+
const { isUnexpected } = require("@azure-rest/maps-geolocation");
|
|
97
97
|
|
|
98
98
|
const result = await client.path("/geolocation/ip/{format}", "json").get({
|
|
99
99
|
queryParameters: { ip: "2001:4898:80e8:b::189" },
|
|
@@ -124,11 +124,10 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
|
|
|
124
124
|
|
|
125
125
|

|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
[source_code]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/maps-geolocation-rest
|
|
128
|
+
[npm_package]: https://www.npmjs.com/package/@azure-rest/maps-geolocation
|
|
129
|
+
[api_ref]: https://docs.microsoft.com/javascript/api/@azure-rest/maps-geolocation?view=azure-node-preview
|
|
130
|
+
[samples]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/maps-geolocation-rest/samples
|
|
132
131
|
[product_info]: https://learn.microsoft.com/rest/api/maps/geolocation
|
|
133
132
|
[az_subscription]: https://azure.microsoft.com/free/
|
|
134
133
|
[az_maps_account_management]: https://docs.microsoft.com/azure/azure-maps/how-to-manage-account-keys
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@azure-rest/maps-geolocation",
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
|
-
"version": "1.0.0-beta.
|
|
5
|
+
"version": "1.0.0-beta.2",
|
|
6
6
|
"description": "A generated SDK for MapsGeolocationClient.",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
@@ -64,25 +64,25 @@
|
|
|
64
64
|
"@azure/core-auth": "^1.3.0",
|
|
65
65
|
"@azure-rest/core-client": "1.0.0-beta.10",
|
|
66
66
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
67
|
-
"@azure/maps-common": "
|
|
67
|
+
"@azure/maps-common": "1.0.0-beta.2",
|
|
68
68
|
"tslib": "^2.2.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@microsoft/api-extractor": "^7.31.1",
|
|
72
72
|
"autorest": "latest",
|
|
73
73
|
"@types/node": "^14.0.0",
|
|
74
|
-
"dotenv": "^
|
|
74
|
+
"dotenv": "^16.0.0",
|
|
75
75
|
"eslint": "^8.0.0",
|
|
76
76
|
"mkdirp": "^1.0.4",
|
|
77
77
|
"prettier": "^2.5.1",
|
|
78
78
|
"rimraf": "^3.0.0",
|
|
79
79
|
"source-map-support": "^0.5.9",
|
|
80
|
-
"typescript": "~
|
|
80
|
+
"typescript": "~5.0.0",
|
|
81
81
|
"@azure/dev-tool": "^1.0.0",
|
|
82
82
|
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
|
83
83
|
"@azure-tools/test-credential": "^1.0.0",
|
|
84
84
|
"@azure/identity": "^2.0.1",
|
|
85
|
-
"@azure-tools/test-recorder": "^
|
|
85
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
|
86
86
|
"mocha": "^7.1.1",
|
|
87
87
|
"@types/mocha": "^7.0.2",
|
|
88
88
|
"mocha-junit-reporter": "^1.18.0",
|
|
@@ -91,10 +91,8 @@
|
|
|
91
91
|
"chai": "^4.2.0",
|
|
92
92
|
"karma-chrome-launcher": "^3.0.0",
|
|
93
93
|
"karma-coverage": "^2.0.0",
|
|
94
|
-
"karma-edge-launcher": "^0.4.2",
|
|
95
94
|
"karma-env-preprocessor": "^0.1.1",
|
|
96
95
|
"karma-firefox-launcher": "^1.1.0",
|
|
97
|
-
"karma-ie-launcher": "^1.0.0",
|
|
98
96
|
"karma-junit-reporter": "^2.0.1",
|
|
99
97
|
"karma-mocha-reporter": "^2.2.5",
|
|
100
98
|
"karma-mocha": "^2.0.1",
|