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
6
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.3.0-beta.9 to 4.3.0-beta.10

46

dist/index.d.ts

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

/// <reference types="mapbox__point-geometry" />
import MapUI from './ui/map';

@@ -10,46 +9,3 @@ import AutocompleteUI from './ui/autocomplete';

static get ui(): {
maplibregl: {
supported: import("@mapbox/mapbox-gl-supported").IsSupported;
setRTLTextPlugin: (url: string, callback: (error?: Error | undefined) => void, deferred?: boolean | undefined) => void;
getRTLTextPluginStatus: () => string;
Map: typeof import("maplibre-gl").Map;
NavigationControl: typeof import("maplibre-gl").NavigationControl;
GeolocateControl: typeof import("maplibre-gl").GeolocateControl;
AttributionControl: typeof import("maplibre-gl").AttributionControl;
LogoControl: typeof import("maplibre-gl").LogoControl;
ScaleControl: typeof import("maplibre-gl").ScaleControl;
FullscreenControl: typeof import("maplibre-gl").FullscreenControl;
TerrainControl: typeof import("maplibre-gl").TerrainControl;
Popup: typeof import("maplibre-gl").Popup;
Marker: typeof import("maplibre-gl").Marker;
Style: typeof import("maplibre-gl").Style;
LngLat: typeof import("maplibre-gl").LngLat;
LngLatBounds: typeof import("maplibre-gl").LngLatBounds;
Point: typeof import("@mapbox/point-geometry");
MercatorCoordinate: typeof import("maplibre-gl").MercatorCoordinate;
Evented: typeof import("maplibre-gl").Evented;
AJAXError: typeof import("maplibre-gl").AJAXError;
config: {
MAX_PARALLEL_IMAGE_REQUESTS: number;
REGISTERED_PROTOCOLS: {
[x: string]: any;
};
};
CanvasSource: typeof import("maplibre-gl").CanvasSource;
GeoJSONSource: typeof import("maplibre-gl").GeoJSONSource;
ImageSource: typeof import("maplibre-gl").ImageSource;
RasterDEMTileSource: typeof import("maplibre-gl").RasterDEMTileSource;
RasterTileSource: typeof import("maplibre-gl").RasterTileSource;
VectorTileSource: typeof import("maplibre-gl").VectorTileSource;
VideoSource: typeof import("maplibre-gl").VideoSource;
prewarm: () => void;
clearPrewarmedResources: () => void;
readonly version: string;
workerCount: number;
maxParallelImageRequests: number;
clearStorage(callback?: ((err?: Error | null | undefined) => void) | undefined): void;
workerUrl: string;
addProtocol(customProtocol: string, loadFn: (requestParameters: import("maplibre-gl").RequestParameters, callback: import("maplibre-gl").ResponseCallback<any>) => import("maplibre-gl").Cancelable): void;
removeProtocol(customProtocol: string): void;
};
maplibregl: typeof import("maplibre-gl");
map: typeof MapUI.createMap;

@@ -56,0 +12,0 @@ marker: typeof MapUI.createMarker;

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

/// <reference types="mapbox__point-geometry" />
import maplibregl from 'maplibre-gl';
import RadarMap from './RadarMap';

@@ -6,46 +6,3 @@ import RadarMarker from './RadarMarker';

declare class MapUI {
static getMapLibre(): {
supported: import("@mapbox/mapbox-gl-supported").IsSupported;
setRTLTextPlugin: (url: string, callback: (error?: Error | undefined) => void, deferred?: boolean | undefined) => void;
getRTLTextPluginStatus: () => string;
Map: typeof import("maplibre-gl").Map;
NavigationControl: typeof import("maplibre-gl").NavigationControl;
GeolocateControl: typeof import("maplibre-gl").GeolocateControl;
AttributionControl: typeof import("maplibre-gl").AttributionControl;
LogoControl: typeof import("maplibre-gl").LogoControl;
ScaleControl: typeof import("maplibre-gl").ScaleControl;
FullscreenControl: typeof import("maplibre-gl").FullscreenControl;
TerrainControl: typeof import("maplibre-gl").TerrainControl;
Popup: typeof import("maplibre-gl").Popup;
Marker: typeof import("maplibre-gl").Marker;
Style: typeof import("maplibre-gl").Style;
LngLat: typeof import("maplibre-gl").LngLat;
LngLatBounds: typeof import("maplibre-gl").LngLatBounds;
Point: typeof import("@mapbox/point-geometry");
MercatorCoordinate: typeof import("maplibre-gl").MercatorCoordinate;
Evented: typeof import("maplibre-gl").Evented;
AJAXError: typeof import("maplibre-gl").AJAXError;
config: {
MAX_PARALLEL_IMAGE_REQUESTS: number;
REGISTERED_PROTOCOLS: {
[x: string]: any;
};
};
CanvasSource: typeof import("maplibre-gl").CanvasSource;
GeoJSONSource: typeof import("maplibre-gl").GeoJSONSource;
ImageSource: typeof import("maplibre-gl").ImageSource;
RasterDEMTileSource: typeof import("maplibre-gl").RasterDEMTileSource;
RasterTileSource: typeof import("maplibre-gl").RasterTileSource;
VectorTileSource: typeof import("maplibre-gl").VectorTileSource;
VideoSource: typeof import("maplibre-gl").VideoSource;
prewarm: () => void;
clearPrewarmedResources: () => void;
readonly version: string;
workerCount: number;
maxParallelImageRequests: number;
clearStorage(callback?: ((err?: Error | null | undefined) => void) | undefined): void;
workerUrl: string;
addProtocol(customProtocol: string, loadFn: (requestParameters: import("maplibre-gl").RequestParameters, callback: import("maplibre-gl").ResponseCallback<any>) => import("maplibre-gl").Cancelable): void;
removeProtocol(customProtocol: string): void;
};
static getMapLibre(): typeof maplibregl;
static createMap(mapOptions: RadarMapOptions): RadarMap;

@@ -52,0 +9,0 @@ static createMarker(markerOptions?: RadarMarkerOptions): RadarMarker;

2

dist/version.d.ts

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

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

@@ -41,3 +41,3 @@ "homepage": "https://radar.com",

"jest-environment-jsdom": "^29.5.0",
"maplibre-gl": "^2.4.0",
"maplibre-gl": "^4.3.2",
"mock-xmlhttprequest": "^8.2.0",

@@ -44,0 +44,0 @@ "nodemon": "^2.0.22",

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

```html
<script src="https://js.radar.com/v4.3.0-beta.9/radar.min.js"></script>
<script src="https://js.radar.com/v4.3.0-beta.10/radar.min.js"></script>
```

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

<head>
<link href="https://js.radar.com/v4.3.0-beta.9/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.3.0-beta.9/radar.min.js"></script>
<link href="https://js.radar.com/v4.3.0-beta.10/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.3.0-beta.10/radar.min.js"></script>
</head>

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

<head>
<link href="https://js.radar.com/v4.3.0-beta.9/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.3.0-beta.9/radar.min.js"></script>
<link href="https://js.radar.com/v4.3.0-beta.10/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.3.0-beta.10/radar.min.js"></script>
</head>

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

<head>
<link href="https://js.radar.com/v4.3.0-beta.9/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.3.0-beta.9/radar.min.js"></script>
<link href="https://js.radar.com/v4.3.0-beta.10/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.3.0-beta.10/radar.min.js"></script>
</head>

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

@@ -22,6 +22,14 @@ import maplibregl from 'maplibre-gl';

if (options.width) {
element.width = options.width;
if (typeof options.width === 'number') {
element.width = options.width;
} else {
element.style.width = options.width;
}
}
if (options.height) {
element.height = options.height;
if (typeof options.height === 'number') {
element.height = options.height;
} else {
element.style.height = options.height;
}
}

@@ -69,3 +77,7 @@ if (!options.width && !options.height) {

const markerObject = URL.createObjectURL(blob);
this._element.replaceChildren(createImageElement({ url: markerObject }));
this._element.replaceChildren(createImageElement({
width: markerOptions.width,
height: markerOptions.height,
url: markerObject,
}));
};

@@ -72,0 +84,0 @@

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

export default '4.3.0-beta.9';
export default '4.3.0-beta.10';

Sorry, the diff of this file is not supported yet

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