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.1.1 to 1.2.0

6

CHANGELOG.md
# Changelog
## 1.2.0
- Remove check on `window`
- Add `standard`
- Bump dependencies
## 1.1.0

@@ -4,0 +10,0 @@

7

index.js

@@ -9,9 +9,2 @@ var CALLBACK_NAME = '__googleMapsApiOnLoadCallback'

return new Promise(function (resolve, reject) {
// Exit if not running inside a browser.
if (typeof window === 'undefined') {
return reject(
new Error('Can only load the Google Maps API in the browser')
)
}
// Reject the promise after a timeout.

@@ -18,0 +11,0 @@ var timeoutId = setTimeout(function () {

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

@@ -15,8 +15,10 @@ "author": "Lim Yuan Qing",

"prettier-standard": "^8.0.0",
"tape": "^4.8.0",
"standard": "^11.0.0",
"tape": "^4.9.0",
"tape-run": "^3.0.4",
"uglify-js": "^3.3.11"
"uglify-js": "^3.3.12"
},
"scripts": {
"lint": "prettier-standard *.js --no-semi --single-quote --write",
"fix": "prettier-standard '*.js'",
"lint": "standard '*.js'",
"test": "browserify test.js | tape-run",

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

2

README.md

@@ -7,3 +7,3 @@ # 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)

- Optionally set a timeout, an API key, the language, [and more](#loadgooglemapsapioptions)
- 456 bytes gzipped
- 414 bytes gzipped

@@ -10,0 +10,0 @@ ## Usage

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