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

modularload

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modularload - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

15

dist/main.cjs.js

@@ -122,5 +122,10 @@ 'use strict';

if (target.matches('a')) {
e.preventDefault();
this.reset();
this.getClickOptions(target);
var href = target.getAttribute('href');
if (!href.startsWith('#') && !href.startsWith('mailto:') && !href.startsWith('tel:')) {
e.preventDefault();
this.reset();
this.getClickOptions(target);
}
break;

@@ -175,6 +180,2 @@ }

if (href.startsWith('#')) {
return;
}
this.setOptions(href, true);

@@ -181,0 +182,0 @@ }

@@ -120,5 +120,10 @@ function _classCallCheck(instance, Constructor) {

if (target.matches('a')) {
e.preventDefault();
this.reset();
this.getClickOptions(target);
var href = target.getAttribute('href');
if (!href.startsWith('#') && !href.startsWith('mailto:') && !href.startsWith('tel:')) {
e.preventDefault();
this.reset();
this.getClickOptions(target);
}
break;

@@ -173,6 +178,2 @@ }

if (href.startsWith('#')) {
return;
}
this.setOptions(href, true);

@@ -179,0 +180,0 @@ }

{
"name": "modularload",
"version": "1.2.1",
"version": "1.2.2",
"description": "Dead simple page transitions and lazy loading.",

@@ -5,0 +5,0 @@ "repository": "modularorg/modularload",

@@ -53,6 +53,11 @@ export default class {

if (target.matches('a')) {
e.preventDefault();
const href = target.getAttribute('href');
this.reset();
this.getClickOptions(target);
if (!href.startsWith('#') && !href.startsWith('mailto:') && !href.startsWith('tel:')) {
e.preventDefault();
this.reset();
this.getClickOptions(target);
}
break;

@@ -104,6 +109,2 @@ }

if (href.startsWith('#')) {
return;
}
this.setOptions(href, true);

@@ -110,0 +111,0 @@ }

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