
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
obvious-import-html
Advanced tools
the middleware to load resources from html
npm install obvious-import-html
or
yarn add obvious-import-html
You can specify the html entry when you use the middleware
import { touchBus } from 'obvious-core'
import importHtml from 'obvious-import-html'
const [bus, isHost] = touchBus()
if (isHost) {
bus.use(importHtml({
'host-app': 'https://cdn.yours.com/host-app/index.html',
'react-app': 'https://cdn.yours.com/react-app/index.html',
'vue-app': 'https://cdn.yours.com/vue-app/index.html'
}))
}
bus.activateApp('host-app')
Or you can use the loadHtml in the next middleware
import { touchBus } from 'obvious-core'
import importHtml from 'obvious-import-html'
const [bus, isHost] = touchBus()
if (isHost) {
bus.use(importHtml()).use(async (ctx, next) => {
const success = await ctx.loadHtml(`https://cdn.yours.com/${ctx.name}/index.html`)
if (!success) {
await next()
}
})
}
bus.activateApp('host-app')
obvious-import-html is MIT Licensed
FAQs
the obvious middleware to load resources from html entry
We found that obvious-import-html 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.