
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@okiba/resource-loader
Advanced tools
Manages loading of resources trough fetch to boost caching. Transparently relies on a WebWorker if possible to load on a separate thread.
__
import ResourceLoader from '@okiba/resource-loader'
const resLoader = new ResourceLoader()
// if `window.Worker` is available
// `fetch` happens on a separate thread!
urls.forEach(
url => resLoader.load(url)
.then(console.log('Loaded! 📦'))
.catch(console.log('Fail! ☹️'))
)
npm i --save @okiba/resource-loader
Or import it directly in the browser
<script type="module" src="https://unpkg.com/@okiba/resource-loader/index.js"></script>
import ResourceLoader from '@okiba/resource-loader'
Okiba Core packages are not transpiled, so don't forget to transpile them with your favourite bundler. For example, using Babel with Webpack, you should prevent imports from okiba to be excluded from transpilation, like follows:
{
test: /\.js$/,
exclude: /node_modules\/(?!(@okiba)\/).*/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
Initiates loading of a resource at a given URL
url
: String
Resource URL
Promise
A promise which will be resolved if the resource
is loaded and rejected if not.
FAQs
Class to fetch resources, prefers a separate thread
We found that @okiba/resource-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.