Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
cross-domain-events
Advanced tools
Event-like api for postMessage to send objects between cross-domain frames
An event-like interface to postMessage for cross domain communication.
postMessage was implemented in Internet Explorer 8, but only supports sending text strings. Modern browsers can send objects, but if you want to listen for different kind of objects you have to implement your own delegation.
// notify parent about page size
xde.sendTo(window.top, "resize", {
width: iframe.clientWidth,
height: iframe.clientHeight
});
// parent page
xde.on("resize", function (evt) {
var iframe = document.getElementById("theiframe");
iframe.style.width = evt.data.width;
iframe.style.height = evt.data.height;
});
Works in IE8 & IE9 as long as you have ES5-shim (for Array.prototype.filter) and JSON.js already.
MIT
FAQs
Event-like api for postMessage to send objects between cross-domain frames
The npm package cross-domain-events receives a total of 3 weekly downloads. As such, cross-domain-events popularity was classified as not popular.
We found that cross-domain-events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.