New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

radar-sdk-js

Package Overview
Dependencies
Maintainers
0
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radar-sdk-js - npm Package Compare versions

Comparing version 4.4.3 to 4.4.4-beta.0

30

dist/types.d.ts

@@ -191,3 +191,3 @@ export type LogLevel = 'none' | 'info' | 'warn' | 'error';

}
export type RadarGeocodeLayer = 'place' | 'address' | 'postalCode' | 'locality' | 'county' | 'state' | 'country' | 'coarse' | 'fine';
export type RadarGeocodeLayer = 'place' | 'address' | 'postalCode' | 'locality' | 'neighborhood' | 'county' | 'state' | 'country' | 'coarse' | 'fine';
export interface RadarAddress {

@@ -218,5 +218,17 @@ addressLabel?: string;

}
export interface RadarTimeZone {
id: string;
name: string;
code: string;
currentTime: string;
utcOffset: number;
dstOffset: number;
}
export interface RadarAutocompleteAddress extends RadarAddress {
unit?: string;
}
export interface RadarGeocodeAddress extends RadarAddress {
unit?: string;
timeZone?: RadarTimeZone;
}
export type RadarValidationRecordType = 'S' | 'R' | 'P' | 'M' | 'H' | 'G' | 'F' | undefined;

@@ -237,2 +249,3 @@ export type RadarValidationPropertyType = 'commercial' | 'residential' | undefined;

country?: string;
lang?: string;
}

@@ -245,7 +258,7 @@ export interface RadarReverseGeocodeParams {

export interface RadarGeocodeResponse extends RadarResponse {
addresses: RadarAddress[];
addresses: RadarGeocodeAddress[];
}
export interface RadarIPGeocodeResponse extends RadarResponse {
ip: string;
address?: RadarAddress;
address?: RadarGeocodeAddress;
proxy?: boolean;

@@ -262,2 +275,3 @@ }

mailable?: boolean;
lang?: string;
}

@@ -413,13 +427,8 @@ export interface RadarAutocompleteResponse extends RadarResponse {

}
export interface RadarAutocompleteUIOptions {
export interface RadarAutocompleteUIOptions extends Omit<RadarAutocompleteParams, 'query'> {
container: string | HTMLElement;
near?: string | Location;
debounceMS?: number;
/** @deprecated use minCharacters instead */
threshold?: number;
minCharacters?: number;
limit?: number;
layers?: RadarGeocodeLayer[];
countryCode?: string;
expandUnits?: boolean;
mailable?: boolean;
placeholder?: string;

@@ -439,3 +448,2 @@ onSelection?: (selection: any) => void;

export interface RadarAutocompleteConfig extends RadarAutocompleteUIOptions {
container: string | HTMLElement;
debounceMS: number;

@@ -442,0 +450,0 @@ threshold: number;

@@ -1,2 +0,2 @@

declare const _default: "4.4.3";
declare const _default: "4.4.4-beta.0";
export default _default;
{
"name": "radar-sdk-js",
"version": "4.4.3",
"version": "4.4.4-beta.0",
"description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.",

@@ -5,0 +5,0 @@ "homepage": "https://radar.com",

@@ -59,3 +59,3 @@ <p align="center">

```html
<script src="https://js.radar.com/v4.4.3/radar.min.js"></script>
<script src="https://js.radar.com/v4.4.4-beta.0/radar.min.js"></script>
```

@@ -77,4 +77,4 @@

<head>
<link href="https://js.radar.com/v4.4.3/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.3/radar.min.js"></script>
<link href="https://js.radar.com/v4.4.4-beta.0/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.4-beta.0/radar.min.js"></script>
</head>

@@ -103,4 +103,4 @@

<head>
<link href="https://js.radar.com/v4.4.3/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.3/radar.min.js"></script>
<link href="https://js.radar.com/v4.4.4-beta.0/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.4-beta.0/radar.min.js"></script>
</head>

@@ -136,4 +136,4 @@

<head>
<link href="https://js.radar.com/v4.4.3/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.3/radar.min.js"></script>
<link href="https://js.radar.com/v4.4.4-beta.0/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.4.4-beta.0/radar.min.js"></script>
</head>

@@ -140,0 +140,0 @@

@@ -16,3 +16,3 @@ import Config from '../config';

const { query, layers, country } = params;
const { query, layers, country, lang } = params;

@@ -26,2 +26,3 @@ const response: any = await Http.request({

country,
lang,
},

@@ -28,0 +29,0 @@ });

@@ -26,2 +26,3 @@ import Config from '../config';

mailable,
lang,
} = params;

@@ -48,2 +49,3 @@

mailable,
lang,
},

@@ -50,0 +52,0 @@ requestId,

@@ -273,2 +273,3 @@ export type LogLevel = 'none' | 'info' | 'warn' | 'error'

| 'locality'
| 'neighborhood'
| 'county'

@@ -306,2 +307,11 @@ | 'state'

export interface RadarTimeZone {
id: string;
name: string;
code: string;
currentTime: string;
utcOffset: number;
dstOffset: number;
}
export interface RadarAutocompleteAddress extends RadarAddress {

@@ -311,2 +321,7 @@ unit?: string;

export interface RadarGeocodeAddress extends RadarAddress {
unit?: string;
timeZone?: RadarTimeZone;
}
export type RadarValidationRecordType = 'S' | 'R' | 'P' | 'M' | 'H' | 'G' | 'F' | undefined;

@@ -331,2 +346,3 @@

country?: string;
lang?: string;
}

@@ -340,4 +356,4 @@

export interface RadarGeocodeResponse extends RadarResponse {
addresses: RadarAddress[];
export interface RadarGeocodeResponse extends RadarResponse {
addresses: RadarGeocodeAddress[];
}

@@ -347,3 +363,3 @@

ip: string;
address?: RadarAddress;
address?: RadarGeocodeAddress;
proxy?: boolean;

@@ -361,2 +377,3 @@ }

mailable?: boolean;
lang?: string;
}

@@ -541,13 +558,8 @@

}
export interface RadarAutocompleteUIOptions {
export interface RadarAutocompleteUIOptions extends Omit<RadarAutocompleteParams, 'query'> {
container: string | HTMLElement;
near?: string | Location; // bias for location results
debounceMS?: number, // Debounce time in milliseconds
threshold?: number, // DEPRECATED(use minCharacters instead)
/** @deprecated use minCharacters instead */
threshold?: number,
minCharacters?: number, // Minimum number of characters to trigger autocomplete
limit?: number, // Maximum number of autocomplete results
layers?: RadarGeocodeLayer[];
countryCode?: string;
expandUnits?: boolean;
mailable?: boolean;
placeholder?: string, // Placeholder text for the input field

@@ -568,3 +580,2 @@ onSelection?: (selection: any) => void,

export interface RadarAutocompleteConfig extends RadarAutocompleteUIOptions {
container: string | HTMLElement;
debounceMS: number, // Debounce time in milliseconds

@@ -571,0 +582,0 @@ threshold: number, // DEPRECATED(use minCharacters instead)

@@ -1,1 +0,1 @@

export default '4.4.3';
export default '4.4.4-beta.0';

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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