Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unstorage

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unstorage - npm Package Compare versions

Comparing version 0.5.6 to 0.6.0

dist/shared/unstorage.6d398c5e.cjs

4

dist/index.d.ts

@@ -1,3 +0,3 @@

import { D as Driver, S as Storage, a as StorageValue } from './types-ba4f7911.js';
export { D as Driver, S as Storage, c as StorageMeta, a as StorageValue, b as WatchCallback, W as WatchEvent } from './types-ba4f7911.js';
import { D as Driver, S as Storage, a as StorageValue } from './types-0cba0bd1.js';
export { D as Driver, S as Storage, c as StorageMeta, a as StorageValue, U as Unwatch, b as WatchCallback, W as WatchEvent } from './types-0cba0bd1.js';

@@ -4,0 +4,0 @@ interface CreateStorageOptions {

import { RequestListener } from 'http';
import { S as Storage } from './types-ba4f7911.js';
import { S as Storage } from './types-0cba0bd1.js';

@@ -4,0 +4,0 @@ interface StorageServerOptions {

{
"name": "unstorage",
"version": "0.5.6",
"version": "0.6.0",
"description": "Universal Storage Layer",

@@ -34,37 +34,39 @@ "repository": "unjs/unstorage",

"destr": "^1.1.1",
"h3": "^0.7.12",
"ioredis": "^5.2.2",
"listhen": "^0.2.13",
"h3": "^0.8.1",
"ioredis": "^5.2.3",
"listhen": "^0.3.4",
"mkdir": "^0.0.2",
"mri": "^1.2.0",
"ohmyfetch": "^0.4.18",
"ufo": "^0.8.5",
"ws": "^8.8.1"
"ohmyfetch": "^0.4.19",
"ufo": "^0.8.6",
"ws": "^8.9.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^3.14.1",
"@nuxtjs/eslint-config-typescript": "latest",
"@types/ioredis": "latest",
"@types/jsdom": "latest",
"@types/mri": "latest",
"@types/node": "latest",
"@types/ws": "latest",
"@vitejs/plugin-vue": "latest",
"@vue/compiler-sfc": "latest",
"@cloudflare/workers-types": "^3.17.0",
"@nuxtjs/eslint-config-typescript": "^11.0.0",
"@types/ioredis": "^4.28.10",
"@types/jsdom": "^20.0.0",
"@types/mri": "^1.1.1",
"@types/node": "^18.11.0",
"@types/ws": "^8.5.3",
"@vitejs/plugin-vue": "^3.1.2",
"@vitest/coverage-c8": "^0.24.3",
"@vue/compiler-sfc": "^3.2.41",
"c8": "^7.12.0",
"doctoc": "latest",
"eslint": "latest",
"jiti": "latest",
"jsdom": "latest",
"changelogen": "^0.3.5",
"doctoc": "^2.2.1",
"eslint": "^8.25.0",
"jiti": "^1.16.0",
"jsdom": "^20.0.1",
"mkdist": "latest",
"monaco-editor": "latest",
"msw": "^0.44.2",
"standard-version": "latest",
"monaco-editor": "^0.34.0",
"msw": "^0.47.4",
"types-cloudflare-worker": "^1.2.0",
"typescript": "latest",
"unbuild": "latest",
"vite": "latest",
"vitest": "^0.20.2",
"vue": "^3.2.37"
"typescript": "^4.8.4",
"unbuild": "^0.9.4",
"vite": "^3.1.8",
"vitest": "^0.24.3",
"vue": "^3.2.41"
},
"packageManager": "pnpm@7.8.0",
"packageManager": "pnpm@7.13.4",
"scripts": {

@@ -76,6 +78,6 @@ "build": "unbuild",

"lint": "eslint --ext .ts .",
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run",
"release": "pnpm test && changelogen --release && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run --coverage",
"unstorage": "pnpm jiti src/cli"
}
}

@@ -60,2 +60,3 @@ # unstorage

- [`storage.watch(callback)`](#storagewatchcallback)
- [`storage.unwatch()`](#storageunwatch)
- [Utils](#utils)

@@ -237,5 +238,16 @@ - [`snapshot(storage, base?)`](#snapshotstorage-base)

```js
await storage.watch((event, key) => { })
const unwatch = await storage.watch((event, key) => { })
// to stop this watcher
await unwatch()
```
### `storage.unwatch()`
Stop all watchers on all mountpoints.
```js
await storage.unwatch()
```
## Utils

@@ -295,4 +307,4 @@

// Alternatively we can use `storage.handle` as a middleware
await listen(storage.handle)
// Alternatively we can use `storageServer.handle` as a middleware
await listen(storageServer.handle)
```

@@ -299,0 +311,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc