New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.9 to 1.2.0

14

dist/main.cjs.js

@@ -188,2 +188,10 @@ 'use strict';

}, {
key: "goTo",
value: function goTo(href, transition, isUrl) {
this.reset();
this.transition = transition;
this.isUrl = isUrl;
this.setOptions(href, true);
}
}, {
key: "setOptions",

@@ -235,3 +243,3 @@ value: function setOptions(href, push) {

this.startEnterDelay();
this.goTo(href, container, push);
this.loadHref(href, container, push);
}

@@ -271,4 +279,4 @@ }

}, {
key: "goTo",
value: function goTo(href, container, push) {
key: "loadHref",
value: function loadHref(href, container, push) {
var _this3 = this;

@@ -275,0 +283,0 @@

@@ -186,2 +186,10 @@ function _classCallCheck(instance, Constructor) {

}, {
key: "goTo",
value: function goTo(href, transition, isUrl) {
this.reset();
this.transition = transition;
this.isUrl = isUrl;
this.setOptions(href, true);
}
}, {
key: "setOptions",

@@ -233,3 +241,3 @@ value: function setOptions(href, push) {

this.startEnterDelay();
this.goTo(href, container, push);
this.loadHref(href, container, push);
}

@@ -269,4 +277,4 @@ }

}, {
key: "goTo",
value: function goTo(href, container, push) {
key: "loadHref",
value: function loadHref(href, container, push) {
var _this3 = this;

@@ -273,0 +281,0 @@

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

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

@@ -122,2 +122,11 @@ <p align="center">

#### With methods
```js
import modularLoad from 'modularload';
this.load = new modularLoad();
this.load.goTo('/page', 'transitionName');
```
## Options

@@ -154,1 +163,6 @@ | Option | Type | Default | Description |

| `images` | | On all images load. |
## Methods
| Method | Description |
| ------ | ----------- |
| `goTo('href'[, 'transition'][, true])` | Go to href. With optional transition name and boolean for url update only. |

@@ -117,2 +117,10 @@ export default class {

goTo(href, transition, isUrl) {
this.reset();
this.transition = transition;
this.isUrl = isUrl;
this.setOptions(href, true);
}
setOptions(href, push) {

@@ -165,3 +173,3 @@ let container = '[' + this.container + ']';

this.startEnterDelay();
this.goTo(href, container, push);
this.loadHref(href, container, push);
}

@@ -197,3 +205,3 @@ }

goTo(href, container, push) {
loadHref(href, container, push) {
this.isLoading = true;

@@ -200,0 +208,0 @@ const signal = this.controller.signal;

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