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.
@architect/plugin-bundles
Advanced tools
plugin-bundles Plugin for exposing bundled modules to the browser from your Architect project.
`plugin-bundles Plugin for exposing bundled modules to the browser from your Architect project.
npm i @architect/plugin-bundles
In your app.arc
file:
@app
bndl-mock
@http
get /yolo
# Define you plugins pragma
@plugins
# Add the plugin bundles module
architect/plugin-bundles
# Define the bundles pragma
@bundles
# Specify which modules to bundle based off of file path.
# . Hint: You can include organization node modules by quoting the path
# . i.e. hashids "@begin/hashids"
yolo /lib/yolo.mjs
In your lambda handler you now have access to a map with the path to bundled and fingerprinted modules
import map from '@architect/bundles/map.mjs'`
Map will look like this
export default {
"/_bundles/yolo.mjs": "/_bundles/yolo-232bd6a.mjs",
}
In your browser code you can now request modules from /_bundles/
and the response will be the bundled and fingerprinted file.
You can use the map to look up the fingerprinted name.
import map from '@architect/bundles/map.mjs'`
const fingerprintedPath = map['/_bundles/yolo.mjs']
// fingerprintedPath would be: /_bundles/yolo-232bd6a.mjs
FAQs
Architect plugin for exposing bundled modules to the browser from your Architect project.
The npm package @architect/plugin-bundles receives a total of 16 weekly downloads. As such, @architect/plugin-bundles popularity was classified as not popular.
We found that @architect/plugin-bundles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
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.