@googlemaps/js-api-loader
Advanced tools
Comparing version 1.0.0-rc.1 to 1.0.0
@@ -23,28 +23,24 @@ /** | ||
beforeAll(async () => { | ||
let capabilities: webdriver.Capabilities; | ||
const server = `http://localhost:4444/wd/hub`; | ||
switch (process.env.BROWSER || "chrome") { | ||
case "safari": { | ||
capabilities = webdriver.Capabilities.safari(); | ||
case "chrome": { | ||
driver = new webdriver.Builder() | ||
.usingServer(server) | ||
.withCapabilities({ | ||
browserName: "chrome", | ||
}) | ||
.build(); | ||
break; | ||
} | ||
case "firefox": { | ||
require("geckodriver"); | ||
capabilities = webdriver.Capabilities.firefox(); | ||
driver = new webdriver.Builder() | ||
.usingServer(server) | ||
.withCapabilities({ | ||
browserName: "firefox", | ||
}) | ||
.build(); | ||
break; | ||
} | ||
case "chrome": { | ||
require("chromedriver"); | ||
capabilities = webdriver.Capabilities.chrome(); | ||
capabilities.set("chromeOptions", { | ||
args: [ | ||
"--headless", | ||
"--no-sandbox", | ||
"--disable-gpu", | ||
"--window-size=1980,1200", | ||
], | ||
}); | ||
break; | ||
} | ||
} | ||
driver = await new webdriver.Builder().withCapabilities(capabilities).build(); | ||
}); | ||
@@ -57,2 +53,3 @@ | ||
it("loader should load map and getCenter", async () => { | ||
jest.setTimeout(30000); | ||
await driver.get("file://" + path.resolve(__dirname, "index.html")); | ||
@@ -59,0 +56,0 @@ |
{ | ||
"name": "@googlemaps/js-api-loader", | ||
"version": "1.0.0-rc.1", | ||
"version": "1.0.0", | ||
"description": "Wrapper for the loading of Google Maps JavaScript API script in the browser", | ||
@@ -19,5 +19,5 @@ "keywords": [ | ||
"author": "Justin Poehnelt", | ||
"main": "dist/loader.umd.js", | ||
"unpkg": "dist/loader.min.js", | ||
"module": "dist/loader.esm.js", | ||
"main": "dist/index.umd.js", | ||
"unpkg": "dist/index.min.js", | ||
"module": "dist/index.esm.js", | ||
"types": "dist/index.d.ts", | ||
@@ -24,0 +24,0 @@ "scripts": { |
@@ -27,3 +27,3 @@ # Google Maps JavaScript API Loader | ||
`<script src="https://unpkg.com/@googlemaps/js-api-loader@1.0.0/dist/loader.umd.js"></script>` | ||
`<script src="https://unpkg.com/@googlemaps/js-api-loader@1.0.0/dist/index.min.js"></script>` | ||
@@ -30,0 +30,0 @@ When adding via unpkg, the loader can be accessed at `google.maps.plugins.loader.Loader`. |
@@ -38,3 +38,3 @@ /** | ||
output: { | ||
file: "dist/loader.umd.js", | ||
file: "dist/index.umd.js", | ||
format: "umd", | ||
@@ -54,3 +54,3 @@ name: "google.maps.plugins.loader", | ||
output: { | ||
file: "dist/loader.min.js", | ||
file: "dist/index.min.js", | ||
format: "iife", | ||
@@ -64,3 +64,3 @@ name: "google.maps.plugins.loader", | ||
output: { | ||
file: "dist/loader.dev.js", | ||
file: "dist/index.dev.js", | ||
format: "iife", | ||
@@ -74,3 +74,3 @@ name: "google.maps.plugins.loader", | ||
output: { | ||
file: "dist/loader.esm.js", | ||
file: "dist/index.esm.js", | ||
format: "esm", | ||
@@ -77,0 +77,0 @@ sourcemap: true, |
Sorry, the diff of this file is not supported yet
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
678010
34
6882
0
2