
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
observe-resize
Advanced tools
Trigger a callback when an element is resized. Adapted from simple-element-resize-detector.
var observeResize = require('observe-resize')
var html = require('bel')
var el = html`<div>hello planet</div>`
document.body.appendChild(el)
// observers should only be added _after_ the element is rendered on the DOM,
// else it displeases the browser emperors and they _will_ warn you
var stop = observeResize(el, function () {
console.log('resized')
stop()
})
Observe resize events on the specified element. This event is throttled by
requestAnimationFrame. In most cases you'd probably still want to use a
debounce function to throttle changes, as resize events can be rather
volatile otherwise.
Unbind the observer from the element.
$ npm install observe-resize
FAQs
Trigger a callback when an element is resized
The npm package observe-resize receives a total of 64 weekly downloads. As such, observe-resize popularity was classified as not popular.
We found that observe-resize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.