
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.