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

animated-scroll-to

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animated-scroll-to - npm Package Compare versions

Comparing version 2.0.12 to 2.1.0

test.js

10

CHANGELOG.md
# Changelog
### v2.1.0
08.03.2020.
**Removed**
* Removed support for using the script in browsers directly. It was broken, so probably was not using it anyway. Use version 1 if you really need it.
-----
### v2.0.12

@@ -4,0 +14,0 @@

8

lib/animated-scroll-to.js

@@ -320,9 +320,1 @@ "use strict";

exports.default = animateScrollTo;
// Support for direct usage in browsers
// This is mostly to keep it similar to v1
// Don't forget to include Promise polyfill for IE
// <script src="https://unpkg.com/es6-promise/dist/es6-promise.auto.min.js"></script>
// https://github.com/stefanpenner/es6-promise
if (WINDOW_EXISTS) {
window.animateScrollTo = animateScrollTo;
}

2

package.json
{
"name": "animated-scroll-to",
"version": "2.0.12",
"version": "2.1.0",
"description": "Simple, plain JavaScript animated window scroll",

@@ -5,0 +5,0 @@ "main": "./lib/animated-scroll-to.js",

@@ -166,6 +166,2 @@ # animated-scroll-to

### Usage in the browser directly
It is not recommended but you can use `animateScrollTo` directly in the browser, by including `lib/animated-scroll-to.js` in your page. Please note this file is not minified.
## Why?

@@ -172,0 +168,0 @@

@@ -377,11 +377,1 @@ export type TCoords = [number | null | undefined, number | null | undefined];

export default animateScrollTo;
// Support for direct usage in browsers
// This is mostly to keep it similar to v1
// Don't forget to include Promise polyfill for IE
// <script src="https://unpkg.com/es6-promise/dist/es6-promise.auto.min.js"></script>
// https://github.com/stefanpenner/es6-promise
if (WINDOW_EXISTS) {
(window as any).animateScrollTo = animateScrollTo;
}

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