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

masonic

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

masonic - npm Package Compare versions

Comparing version 2.1.7 to 2.1.8

29

dist/cjs/index.js

@@ -256,3 +256,3 @@ 'use strict'

const to = window.setTimeout(_ref, 1000 / 6)
return () => window.clearTimeout(to)
return () => window.clearTimeout(to) // eslint-disable-next-line
}, [scrollY])

@@ -379,9 +379,6 @@ return {

function _ref3(current) {
return ++current
}
const useForceUpdate = () => {
const setState = useState({})[1] // eslint-disable-next-line
const useForceUpdate = () => {
const setState = useState(0)[1]
return useCallback(() => setState(_ref3), emptyArr)
return useCallback(() => setState({}), emptyArr)
}

@@ -464,3 +461,3 @@

function _ref4(entries) {
function _ref3(entries) {
const updates = []

@@ -508,3 +505,3 @@

const resizeObserver = useMemo(
() => new _resizeObserverPolyfill.default(_ref4),
() => new _resizeObserverPolyfill.default(_ref3), // eslint-disable-next-line
[itemPositioner, positionCache]

@@ -521,6 +518,6 @@ ) // cleans up the resize observers when they change or the

onRender(startIndex.current, stopIndex.current, items)
}
}, [items, startIndex.current, stopIndex.current]) // Allows parent components to clear the position cache imperatively
} // eslint-disable-next-line
}, [onRender, items, startIndex.current, stopIndex.current]) // Allows parent components to clear the position cache imperatively
function _ref5() {
function _ref4() {
setPositionCache(createPositionCache())

@@ -532,4 +529,4 @@ }

() => ({
clearPositions: _ref5,
}),
clearPositions: _ref4,
}), // eslint-disable-next-line
emptyArr

@@ -563,3 +560,3 @@ ) // Updates the item positions any time a prop potentially affecting their

}
}
} // eslint-disable-next-line
}, [width, columnWidth, columnGutter, columnCount])

@@ -951,3 +948,3 @@ const setItemRef = getRefSetter(

},
[totalItems, minimumBatchSize, threshold, isItemLoaded]
[loadMoreItems, totalItems, minimumBatchSize, threshold, isItemLoaded]
)

@@ -954,0 +951,0 @@ }

@@ -230,3 +230,3 @@ import _pt from 'prop-types'

const to = window.setTimeout(_ref, 1000 / 6)
return () => window.clearTimeout(to)
return () => window.clearTimeout(to) // eslint-disable-next-line
}, [scrollY])

@@ -346,9 +346,6 @@ return {

function _ref3(current) {
return ++current
}
const useForceUpdate = () => {
const setState = useState({})[1] // eslint-disable-next-line
const useForceUpdate = () => {
const setState = useState(0)[1]
return useCallback(() => setState(_ref3), emptyArr)
return useCallback(() => setState({}), emptyArr)
}

@@ -430,3 +427,3 @@

function _ref4(entries) {
function _ref3(entries) {
const updates = []

@@ -473,6 +470,6 @@

const resizeObserver = useMemo(() => new ResizeObserver(_ref4), [
itemPositioner,
positionCache,
]) // cleans up the resize observers when they change or the
const resizeObserver = useMemo(
() => new ResizeObserver(_ref3), // eslint-disable-next-line
[itemPositioner, positionCache]
) // cleans up the resize observers when they change or the
// component unmounts

@@ -487,6 +484,6 @@

onRender(startIndex.current, stopIndex.current, items)
}
}, [items, startIndex.current, stopIndex.current]) // Allows parent components to clear the position cache imperatively
} // eslint-disable-next-line
}, [onRender, items, startIndex.current, stopIndex.current]) // Allows parent components to clear the position cache imperatively
function _ref5() {
function _ref4() {
setPositionCache(createPositionCache())

@@ -498,4 +495,4 @@ }

() => ({
clearPositions: _ref5,
}),
clearPositions: _ref4,
}), // eslint-disable-next-line
emptyArr

@@ -529,3 +526,3 @@ ) // Updates the item positions any time a prop potentially affecting their

}
}
} // eslint-disable-next-line
}, [width, columnWidth, columnGutter, columnCount])

@@ -898,3 +895,3 @@ const setItemRef = getRefSetter(

},
[totalItems, minimumBatchSize, threshold, isItemLoaded]
[loadMoreItems, totalItems, minimumBatchSize, threshold, isItemLoaded]
)

@@ -901,0 +898,0 @@ }

{
"name": "masonic",
"version": "2.1.7",
"version": "2.1.8",
"homepage": "https://github.com/jaredLunde/masonic#readme",

@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/masonic",

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