load-google-maps-api
Advanced tools
Comparing version 1.1.1 to 1.2.0
# Changelog | ||
## 1.2.0 | ||
- Remove check on `window` | ||
- Add `standard` | ||
- Bump dependencies | ||
## 1.1.0 | ||
@@ -4,0 +10,0 @@ |
@@ -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" |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124885
7
41