Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apple-maps-server-sdk

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apple-maps-server-sdk - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

lib/index.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc