
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
[DRAFT PROPOSAL]
Shopbeam js client for 3rd parties.
Sites including shopbeam.js gain access to these shopbeam features:
<script src="www.shopbeam.com/js/v1/shopbeam.js"></script>
Loading shopbeam.js will automatically load the universal cart, and allow the user to add products in the current site. If the cart is not empty, it will become visible on the bottom-right corner.
To prevent the cart from loading automatically you can use a data attribute on the script tag:
<script src="www.shopbeam.com/js/v1/shopbeam.js" data-auto-cart="no"></script>
And load it at any time with:
shopbeam.cart();
shopbeam js will automatically scan the document for declarative widgets on load, but scan can be triggered again (eg. if new content is loaded with ajax) using:
shopbeam.scan();
<img
data-shopbeam-widget
data-shopbeam-productid="<!-- product id -->"
src="<!-- product image -->" />
<span
data-shopbeam-widget
data-shopbeam-productid="<!-- product id -->"
src="<!-- product image -->">
<!-- product description -->
</span>
In some cases publishers may want to create a custom ui for product inventory:
For that purpose the shopbeam js client provides methods to obtain product info and communicate with the universal cart.
var product = shopbeam.product(123456);
product.info().then(function(info) {
if (!info.outOfStock && confirm("would you be interested in a nice " +
info.title +
"at just $" + info.price + "?")) {
// show product details and "add to cart" button
product.show();
}
}, function(err) {
console.error('unable to get product info', err);
});
FAQs
shopbeam js client library
The npm package shopbeamjs receives a total of 7 weekly downloads. As such, shopbeamjs popularity was classified as not popular.
We found that shopbeamjs 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.