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

@googlemaps/js-api-loader

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@googlemaps/js-api-loader - npm Package Compare versions

Comparing version 1.0.0-rc.1 to 1.0.0

.github/workflows/e2e.yml

35

e2e/selenium.test.ts

@@ -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

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