Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
AMD loader for isolated module environment
If you need some module system which does not touch anything in your desk, this would be a good choice.
Compared with r.js, our loader provides following things
simple-amd
to use r.js
loader plugins, additionally
some loader plugins are included that helps to get data from pouchdb.
we also welcome plugin suggestion, please file an issue if needed.const Loader = require('simple-amd').Loader;
const React = require('react'); // module to be exposed to your module system.
const loader = new Loader({});
loader.define('react', [], () => React);
loader.require('react', (React) => { ... });
To use loader with default plugins, use default-loader
const PouchDB = require('PouchDB');
const React = require('react');
const ReactDOM = require('react-dom');
const create_loader = require('simple-amd/lib/default-loader').create_loader;
const db = new PouchDB(YOUR_HOST);
const loader = create_loader(db, {
react: React
});
loader.require(['attachment!docId#attachmentId', 'doc!docId'], function(attachment, observableDoc) {
observableDoc.subscribe(data => {
// it will render react 'reactive'
ReactDOM.render(React.createElement(attachment.SomeModule), { data: data });
});
});
FAQs
Isolated amd loader replacement
The npm package simple-amd receives a total of 1 weekly downloads. As such, simple-amd popularity was classified as not popular.
We found that simple-amd 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.