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

@googlemaps/extended-component-library

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@googlemaps/extended-component-library - npm Package Compare versions

Comparing version 0.1.0 to 0.1.3

utils/request_cache.d.ts

2

base/constants.d.ts

@@ -21,4 +21,4 @@ /**

/** Package version of this component library. */
export declare const LIBRARY_VERSION = "0.1.0";
export declare const LIBRARY_VERSION = "0.1.3";
/** Identifier of where this component library is sourced from. */
export declare const ATTRIBUTION_SOURCE_ID = "GIT";

@@ -20,8 +20,6 @@ /**

*/
// TODO(b/266088660): Have this auto-set by build process.
/** Package version of this component library. */
export const LIBRARY_VERSION = '0.1.0';
// TODO(b/266088660): Have this auto-set by build process.
export const LIBRARY_VERSION = '0.1.3'; // x-release-please-version
/** Identifier of where this component library is sourced from. */
export const ATTRIBUTION_SOURCE_ID = 'NPM';
//# sourceMappingURL=constants.js.map

@@ -241,3 +241,4 @@ /**

`;
// https://lit.dev/docs/components/shadow-dom/#setting-shadowrootoptions
// Set up focus delegation; see
// https://lit.dev/docs/components/shadow-dom/#setting-shadowrootoptions.
/** @ignore */

@@ -244,0 +245,0 @@ IconButton.shadowRootOptions = {

{
"name": "@googlemaps/extended-component-library",
"version": "0.1.0",
"version": "0.1.3",
"description": "Web Components for building rich experiences with the Google Maps JavaScript API.",

@@ -106,3 +106,5 @@ "license": "Apache-2.0",

"command": ". build/finalize_package.sh",
"dependencies": [ "build:ts" ],
"dependencies": [
"build:ts"
],
"files": [

@@ -112,3 +114,6 @@ "build/finalize_package.sh",

],
"output": [ "**/*.js", "**/*.md" ],
"output": [
"**/*.js",
"**/*.md"
],
"clean": false

@@ -118,3 +123,5 @@ },

"command": "rollup -c build/rollup.config.js",
"dependencies": [ "build:package" ],
"dependencies": [
"build:package"
],
"files": [

@@ -124,8 +131,14 @@ "build/rollup.config.js",

],
"output": [ "dist/**/*" ]
"output": [
"dist/**/*"
]
},
"test": {
"command": "wtr",
"dependencies": [ "build:ts" ],
"files": [ "web-test-runner.config.js" ],
"dependencies": [
"build:ts"
],
"files": [
"web-test-runner.config.js"
],
"output": []

@@ -132,0 +145,0 @@ },

@@ -28,2 +28,3 @@ /**

private static service?;
private static readonly cache;
constructor(host: ReactiveControllerHost & LitElement);

@@ -30,0 +31,0 @@ hostUpdate(): void;

@@ -22,2 +22,4 @@ /**

import { RequestErrorEvent } from '../../base/events.js';
import { RequestCache } from '../../utils/request_cache.js';
const CACHE_SIZE = 100;
/**

@@ -38,5 +40,10 @@ * Controller that interfaces with the Maps JavaScript API Directions Service.

async route(request) {
const service = await this.getService();
let responsePromise = DirectionsController.cache.get(request);
if (responsePromise === null) {
responsePromise =
this.getService().then((service) => service.route(request));
DirectionsController.cache.set(request, responsePromise);
}
try {
return await service.route(request);
return await responsePromise;
}

@@ -57,2 +64,3 @@ catch (error) {

}
DirectionsController.cache = new RequestCache(CACHE_SIZE);
//# sourceMappingURL=directions_controller.js.map

@@ -120,2 +120,5 @@ /**

this.directionsData = result?.routes[0]?.legs[0];
// When switching the travel mode between driving and undefined,
// this.directionsData is unchanged but we still want an update.
this.requestUpdate();
}

@@ -122,0 +125,0 @@ else {

@@ -102,8 +102,8 @@ # Extended Component Library

Map and marker components can be used with the Extended Component Library, or on their own.
Map and marker components can be used with the Extended Component Library, or on their own. See the [guide](https://developers.google.com/maps/documentation/web-components/overview?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components) for more information on Web Components in the Maps JS SDK.
| Component | Description |
| ----------------------- | ---------------------------------------------- |
| `<gmp-map>` | The map component displays a map on a webpage, and can wrap other map-related components such as markers inside the map component in HTML. |
| `<gmp-advanced-marker>` | The marker component displays a pin on the map at specified coordinates. |
| [`<gmp-map>`](https://developers.google.com/maps/documentation/javascript/reference/map?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components#MapElement) | The map component displays a map on a webpage, and can wrap other map-related components such as markers inside the map component in HTML. |
| [`<gmp-advanced-marker>`](https://developers.google.com/maps/documentation/javascript/reference/advanced-markers?utm_source=npm&utm_medium=documentation&utm_campaign=&utm_content=web_components#AdvancedMarkerElement) | The marker component displays a pin on the map at specified coordinates. |

@@ -110,0 +110,0 @@ ## Inventory of components

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

Sorry, the diff of this file is not supported yet

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