New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simplebar

Package Overview
Dependencies
Maintainers
2
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplebar - npm Package Compare versions

Comparing version 3.0.0-beta.0 to 3.0.0-beta.1

dist/simplebar.min.js

21

dist/simplebar.esm.js
/**
* SimpleBar.js - v2.6.1
* SimpleBar.js - v3.0.0-beta.0
* Scrollbars, simpler.

@@ -19,2 +19,3 @@ * https://grsmto.github.io/simplebar/

import ResizeObserver from 'resize-observer-polyfill';
import canUseDOM from 'can-use-dom';

@@ -190,7 +191,10 @@ function _classCallCheck(instance, Constructor) {

this.el.SimpleBar = this;
this.initDOM(); // Calculate content size
this.initDOM(); // We stop here on server-side
this.hideNativeScrollbar();
this.render();
this.initListeners();
if (canUseDOM) {
// Calculate content size
this.hideNativeScrollbar();
this.render();
this.initListeners();
}
}

@@ -582,3 +586,3 @@ }, {

// Handle it asynchronously to allow scripts the opportunity to delay init
window.setTimeout(this.initDOMLoadedElements.bind(this));
window.setTimeout(this.initDOMLoadedElements);
} else {

@@ -659,5 +663,8 @@ document.addEventListener('DOMContentLoaded', this.initDOMLoadedElements);

}();
SimpleBar.initHtmlApi();
if (canUseDOM) {
SimpleBar.initHtmlApi();
}
export default SimpleBar;
//# sourceMappingURL=simplebar.esm.js.map
{
"version": "3.0.0-beta.0",
"version": "3.0.0-beta.1",
"name": "simplebar",

@@ -11,3 +11,3 @@ "title": "SimpleBar.js",

"repository": "grsmto/simplebar",
"main": "dist/simplebar.js",
"main": "dist/simplebar.min.js",
"module": "dist/simplebar.esm.js",

@@ -28,2 +28,3 @@ "style": "dist/simplebar.min.css",

"dependencies": {
"can-use-dom": "^0.1.0",
"lodash.throttle": "^4.1.1",

@@ -30,0 +31,0 @@ "resize-observer-polyfill": "^1.5.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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