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.4.3 to 1.0.0

dist/plugins/swupGaPlugin.js

11

lib/index.js

@@ -21,6 +21,2 @@ 'use strict';

var _detectie = require('detectie');
var _detectie2 = _interopRequireDefault(_detectie);
var _Cache = require('./Cache');

@@ -182,3 +178,2 @@

this.log = _log2.default;
this.detectie = _detectie2.default;
this.enable = this.enable;

@@ -230,8 +225,2 @@ this.destroy = this.destroy;

}
/**
* disable IE
*/
if (this.options.disableIE && this.detectie()) {
return;
}

@@ -238,0 +227,0 @@ // variable to keep event listeners from "delegate"

{
"name": "swup",
"version": "0.4.3",
"version": "1.0.0",
"description": "Animated page transitions with css.",

@@ -25,4 +25,3 @@ "main": "lib/index.js",

"dependencies": {
"delegate": "^3.1.3",
"detectie": "^1.0.0"
"delegate": "^3.1.3"
},

@@ -29,0 +28,0 @@ "devDependencies": {

18

readme.md

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

**If you'd like to share your work using swup with me or others, please, drop me a link.**
## Table of contents

@@ -29,3 +31,2 @@ [Introduction](#introduction)

* [Support](#support)
* [Disable IE](#disable-ie)
* [Debug Mode](#debug-mode)

@@ -45,2 +46,4 @@ * [Skip popState Handling](#skip-popstate-handling)

[Contributions](#contributions)
## Introduction

@@ -59,4 +62,2 @@ Swup enables animated transitions between pages powered by CSS. All you need to do is define how your page looks in the transition state, and swup takes care of the rest. Here's a little [preview](https://gmrchk.github.io/swup/).

**Note:** Swup is currently stable and production-ready. However, it is a "one-man show" and any contributions or suggestions are welcome.
## Installation

@@ -279,8 +280,2 @@ ```shell

### Disable IE
While swup itself should run without problem in IE Edge (or other IE with help of some polyfills), I have encountered multiple problems on IE (including Edge) in some particular situations, related to updating browser history, rendering large parts of page replaced with javascript or performance of animation on large elements. That's why swup allows to simply disable the whole thing in all IE browsers with `disableIE` option. This option is intended as a last resort to save your computer from physical damage caused by an angry developer. Swup is enabled in IE by default.
```javasrripts
disableIE: false
```
### Debug Mode

@@ -469,2 +464,4 @@ Debug mode is useful for integrating swup into your site. When enabled, swup displays emitted events (see [events](#events) section) in the console, as well as contents of the cache when changed. Swup instance is also accessible globally as `window.swup` in debug mode. Option defaults to false.

## Contributions
Swup is currently stable and production-ready. However, it is a "one-man show" and any contributions or suggestions are more than welcome.

@@ -477,4 +474,1 @@

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