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

swup

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swup - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

11

lib/index.js

@@ -246,2 +246,8 @@ 'use strict';

/**
* trigger enabled event
*/
this.triggerEvent('enabled');
document.documentElement.classList.add('swup-enabled');
/**
* trigger page view event

@@ -273,2 +279,5 @@ */

});
this.triggerEvent('disabled');
document.documentElement.classList.remove('swup-enabled');
}

@@ -336,3 +345,2 @@ }, {

} else {
_this.triggerEvent('pagePreloaded');
// get json data

@@ -342,2 +350,3 @@ var page = _this.getDataFromHtml(response);

_this.cache.cacheUrl(page, _this.options.debugMode);
_this.triggerEvent('pagePreloaded');
}

@@ -344,0 +353,0 @@ resolve();

2

lib/modules/loadPage.js

@@ -64,3 +64,2 @@ 'use strict';

} else {
_this.triggerEvent('pageLoaded');
// get json data

@@ -71,2 +70,3 @@ var page = _this.getDataFromHtml(response);

_this.cache.cacheUrl(page, _this.options.debugMode);
_this.triggerEvent('pageLoaded');
}

@@ -73,0 +73,0 @@ resolve();

@@ -22,3 +22,2 @@ 'use strict';

} else {
_this.triggerEvent('pagePreloaded');
// get json data

@@ -28,2 +27,3 @@ var page = _this.getDataFromHtml(response);

_this.cache.cacheUrl(page, _this.options.debugMode);
_this.triggerEvent('pagePreloaded');
}

@@ -30,0 +30,0 @@ });

{
"name": "swup",
"version": "0.2.1",
"version": "0.2.2",
"description": "Animated page transitions with css - simple, quick and fun.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -242,2 +242,4 @@ # swup

* **swup:pageRetrievedFromCache** - triggers when page is retrieved from cache and no request is necessary
* **swup:enabled** - triggers when swup instance is created or re-enabled after call of `destroy()`
* **swup:enabled** - triggers on `destroy()`

@@ -244,0 +246,0 @@ ## API

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