Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
imweb-filestorage
Advanced tools
filestorage
npm install-imweb-filestorage
expire - Number(in seconds) - 1814400(as 21 days) - the time length the file should be storage
execute - Boolean - true - whether execute the script once it's loaded
noCache - Boolean - false - do not use cache
refresh - Boolean - false - refresh the storage
cors - Boolean - false - whether add crossorigin attribute to script tag if it comes to use script tag to load the file
cb - Function - function(err, info){} - callback once it's done
err - Event - null - if there is an error, it will not be null
opts - Object
time - Number(in microseconds) - the time spend on loading the script
from - where this script coming from, its value and meaning is written at FileStorage.FROM
url - String - the url you request
just clear all localStorage
configure default settings for FileStorage, should be call before FileStorage.load
opts - Object
timeout - Number(in microseconds) - 30000(as 30s) - ajax timeout for fetching
expire - Number(in seconds) - 1814400(as 21 days) - the time length the file should be storage
clearExpireTimeout - Number(in microseconds) - 10000(as 10s) - when to try clearing the expire file
return Object
File: 'file' // means loaded from regular script tag with src
STORAGE: 'storage' // means loaded from localStorage
FETCH: 'fetch' // means loaded from ajax call
FAQs
imweb filestorage
The npm package imweb-filestorage receives a total of 3 weekly downloads. As such, imweb-filestorage popularity was classified as not popular.
We found that imweb-filestorage 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.