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

@odopod/odo-affix

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@odopod/odo-affix - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

dist/.DS_Store

19

dist/odo-affix.js

@@ -10,4 +10,2 @@ (function (global, factory) {

var babelHelpers = {};
var classCallCheck = function (instance, Constructor) {

@@ -37,10 +35,2 @@ if (!(instance instanceof Constructor)) {

babelHelpers;
/**

@@ -312,2 +302,3 @@ * @fileoverview Emulates `position:sticky` to make an element fixed position

var scrollTop = this.element.scrollTop;
this.unstick();

@@ -438,3 +429,3 @@ this.reset();

key: 'uiOverlap',
get: function get() {
get: function get$$1() {
if (this._customOverlap) {

@@ -452,3 +443,3 @@ return this._customOverlap();

,
set: function set(fn) {
set: function set$$1(fn) {
this._customOverlap = fn;

@@ -465,3 +456,3 @@ this.update();

key: 'top',
get: function get() {
get: function get$$1() {
return this._top - this._overlap;

@@ -477,3 +468,3 @@ }

key: 'bottom',
get: function get() {
get: function get$$1() {
return this._bottom - this._marginBottom;

@@ -480,0 +471,0 @@ }

{
"name": "@odopod/odo-affix",
"description": "Makes an element fixed position while its within a container.",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/odo-affix.js",

@@ -16,3 +16,3 @@ "odoModule": "src/affix.js",

"@odopod/odo-scroll-animation": "^1.0.1",
"@odopod/odo-window-events": "^1.0.1"
"@odopod/odo-window-events": "^1.0.2"
},

@@ -19,0 +19,0 @@ "homepage": "https://github.com/odopod/code-library/tree/master/packages/odo-affix",

@@ -280,3 +280,3 @@ /**

update() {
const scrollTop = this.element.scrollTop;
const { scrollTop } = this.element;
this.unstick();

@@ -283,0 +283,0 @@ this.reset();

Sorry, the diff of this file is not supported yet

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