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

smart-sections

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-sections - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

dist/bundle.cjs.js

@@ -599,3 +599,3 @@ 'use strict';

Object.keys(sections).forEach(function (sectionName) {
if (sectionCallbacks.get(sectionName).size) {
if (sectionCallbacks.get(sectionName) && sectionCallbacks.get(sectionName).size) {
sectionCallbacks.get(sectionName).forEach(function (callback) {

@@ -631,3 +631,3 @@ if (typeof callback === 'function') {

unregisterSectionSpy: function unregisterSectionSpy(sectionName, callback) {
if (sectionCallbacks.has(sectionName).size) {
if (sectionCallbacks.has(sectionName)) {
sectionCallbacks.get(sectionName).delete(callback);

@@ -634,0 +634,0 @@ }

@@ -595,3 +595,3 @@ var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

Object.keys(sections).forEach(function (sectionName) {
if (sectionCallbacks.get(sectionName).size) {
if (sectionCallbacks.get(sectionName) && sectionCallbacks.get(sectionName).size) {
sectionCallbacks.get(sectionName).forEach(function (callback) {

@@ -627,3 +627,3 @@ if (typeof callback === 'function') {

unregisterSectionSpy: function unregisterSectionSpy(sectionName, callback) {
if (sectionCallbacks.has(sectionName).size) {
if (sectionCallbacks.has(sectionName)) {
sectionCallbacks.get(sectionName).delete(callback);

@@ -630,0 +630,0 @@ }

{
"name": "smart-sections",
"version": "0.0.1",
"description":
"Framework agnostic, vertical scroll solution that follows what you actually read",
"version": "0.0.2",
"description": "Framework agnostic, vertical scroll solution that follows what you actually read",
"main": "dist/bundle.cjs.js",
"module": "dist/bundle.es.js",
"jsnext:main": "dist/bundle.es.js",
"files": ["dist"],
"files": [
"dist"
],
"repository": "git@github.com:netguru/smart-sections.git",
"author":
"Maciej Myśliński <hello@maciejmyslinski.com> (https://maciejmyslinski.com)",
"author": "Maciej Myśliński <hello@maciejmyslinski.com> (https://maciejmyslinski.com)",
"license": "MIT",

@@ -14,0 +14,0 @@ "private": false,

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