apple-maps-server-sdk
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,3 +6,5 @@ import { AxiosInstance } from "axios"; | ||
apiClient: AxiosInstance; | ||
constructor(authorizationToken: string); | ||
constructor({ authorizationToken }: { | ||
authorizationToken: string; | ||
}); | ||
getAccessToken(): Promise<undefined>; | ||
@@ -9,0 +11,0 @@ geocode(input: GeocodeInput): Promise<GeocodeResponse>; |
@@ -41,5 +41,8 @@ "use strict"; | ||
class AppleMaps { | ||
constructor(authorizationToken) { | ||
constructor({ authorizationToken }) { | ||
this.accessToken = ""; | ||
this.authorizationToken = authorizationToken; | ||
if (!authorizationToken) { | ||
throw new Error("'authorizationToken' param is required"); | ||
} | ||
this.apiClient = axios_1.default.create({ | ||
@@ -46,0 +49,0 @@ baseURL: "https://maps-api.apple.com/v1", |
{ | ||
"name": "apple-maps-server-sdk", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "An SDK for the Apple Maps Server API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -9,5 +9,10 @@ import axios, { AxiosError, AxiosInstance } from "axios"; | ||
constructor(authorizationToken: string) { | ||
constructor({ authorizationToken }: { authorizationToken: string }) { | ||
this.accessToken = ""; | ||
this.authorizationToken = authorizationToken; | ||
if (!authorizationToken) { | ||
throw new Error("'authorizationToken' param is required"); | ||
} | ||
this.apiClient = axios.create({ | ||
@@ -14,0 +19,0 @@ baseURL: "https://maps-api.apple.com/v1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14853
452
0