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

navigator.sendbeacon

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

navigator.sendbeacon - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

package.json
{
"name": "navigator.sendbeacon",
"version": "0.0.10",
"version": "0.0.11",
"description": "Polyfill for navigator.sendBeacon()",

@@ -5,0 +5,0 @@ "main": "dist/navigator.sendbeacon.cjs.js",

@@ -15,4 +15,4 @@ const isString = val => typeof val === 'string';

function sendBeacon(url, data) {
var event = this.event && this.event.type;
var sync = event === 'unload' || event === 'beforeunload';
const event = this.event && this.event.type;
const sync = event === 'unload' || event === 'beforeunload';

@@ -19,0 +19,0 @@ const xhr = ('XMLHttpRequest' in this) ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');

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