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

load-google-maps-api

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-google-maps-api - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

23

package.json
{
"name": "load-google-maps-api",
"version": "1.3.2",
"version": "1.3.3",
"description": "A thin, Promise-returning helper for loading the Google Maps JavaScript API.",

@@ -12,12 +12,12 @@ "author": "Lim Yuan Qing",

"devDependencies": {
"browserify": "^16.1.1",
"gzip-size-cli": "^2.1.0",
"husky": "^0.14.3",
"lint-staged": "^7.1.0",
"prettier-standard": "^8.0.0",
"rimraf": "^2.6.2",
"standard": "^11.0.1",
"tape": "^4.9.0",
"tape-run": "^3.0.4",
"uglify-js": "^3.3.16"
"browserify": "^16.2.3",
"gzip-size-cli": "^3.0.0",
"husky": "^1.3.1",
"lint-staged": "^8.1.5",
"prettier-standard": "^9.1.1",
"rimraf": "^2.6.3",
"standard": "^12.0.1",
"tape": "^4.10.1",
"tape-run": "^5.0.0",
"uglify-js": "^3.5.3"
},

@@ -28,3 +28,2 @@ "scripts": {

"lint": "standard '*.js'",
"precommit": "lint-staged",
"test": "browserify test.js | tape-run",

@@ -31,0 +30,0 @@ "weight": "uglifyjs index.js --compress --mangle --toplevel | gzip-size"

@@ -1,8 +0,7 @@

# load-google-maps-api [![npm Version](http://img.shields.io/npm/v/load-google-maps-api.svg?style=flat)](https://www.npmjs.com/package/load-google-maps-api) [![Build Status](https://img.shields.io/travis/yuanqing/load-google-maps-api.svg?branch=master&style=flat)](https://travis-ci.org/yuanqing/load-google-maps-api)
# load-google-maps-api [![npm Version](https://badgen.net/npm/v/load-google-maps-api)](https://www.npmjs.org/package/load-google-maps-api) [![Build Status](https://badgen.net/travis/yuanqing/load-google-maps-api?label=build)](https://travis-ci.org/yuanqing/load-google-maps-api) [![Bundle Size](https://badgen.net/bundlephobia/minzip/load-google-maps-api)](https://bundlephobia.com/result?p=load-google-maps-api)
> A thin, [Promise](https://developers.google.com/web/fundamentals/primers/promises)-returning helper for loading the [Google Maps JavaScript API](https://developers.google.com/maps/documentation/javascript/).
- The Promise’s fulfilled callback is passed the `google.maps` object
- The Promise’s fulfilled callback is passed the `google.maps` object
- Optionally set a timeout, an API key, the language, [and more](#loadgooglemapsapioptions)
- 424 bytes gzipped

@@ -33,3 +32,3 @@ ## Usage

[Without this module](https://developers.google.com/maps/documentation/javascript/tutorial#Loading_the_Maps_API), you would need to specify a named *global* callback, and pass said callback’s name as a parameter in the `script` tag’s `src`. For example:
[Without this module](https://developers.google.com/maps/documentation/javascript/tutorial#Loading_the_Maps_API), you would need to specify a named *global* callback, and pass said callback’s name as a parameter in the `script` tag’s `src`. For example:

@@ -58,3 +57,3 @@ ```html

- **Fulfilled** if loading was successful. The fulfilled callback is passed the `google.maps` object. If `loadGoogleMapsApi` is called multiple times on a page, the fulfilled callback will be passed the previously-loaded `google.maps` object.
- **Rejected** if we weren’t able to load the Google Maps API after `options.timeout`.
- **Rejected** if we weren’t able to load the Google Maps API after `options.timeout`.

@@ -78,4 +77,2 @@ See [Usage](#usage).

Install via [yarn](https://yarnpkg.com):
```sh

@@ -85,10 +82,4 @@ $ yarn add load-google-maps-api

Or [npm](https://npmjs.com):
```sh
$ npm install --save load-google-maps-api
```
## License
[MIT](LICENSE.md)
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