
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Postis is a light wrapper around the PostMessage API
$ npm install --save postis
Parent HTML which contains an iframe:
var postis = require("postis");
var targetWindow = document.querySelectorAll("iframe")[0].contentWindow;
var channel = postis({
window: targetWindow,
scope: "scope-for-message-changing-to-avoid-overlapping"
});
channel.ready(function() {
channel.listen("remoteMessageFromChild", function(remoteMessage) {
console.log("remoteMessageFromChild:", remoteMessage);
});
channel.send({
method: "remoteMessageFromParent",
params: { awesome: "messsage",
from: "Parent window"}
});
});
In embedded child iframe:
var postis = require("postis");
var targetWindow = window.parent;
var channel = postis({
window: targetWindow,
scope: "scope-for-message-changing-to-avoid-overlapping"
});
channel.ready(function() {
channel.listen("remoteMessageFromParent", function(remoteMessage) {
console.log("remoteMessageFromParent:", remoteMessage);
});
channel.send({
method: "remoteMessageFromChild",
params: { awesome: "messsage",
from: "child iframe"}
});
});
New releases are prepared in master after merging the PRs. Please include a meaningful changelog entry in PR.
Write a new CHANGELOG.md
entry before running built-in npm version bump and add the change to next commit.
npm version <major | minor | patch>
git push --tags
npm version
should include added changelog entry in the commit. Remember to push changes.
[2.2.0] - 2016-02-01
FAQs
Lightweight wrapper around the PostMessage API
The npm package postis receives a total of 2,651 weekly downloads. As such, postis popularity was classified as popular.
We found that postis 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.