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 1.4.1 to 1.5.0

./dist/index.cjs

2

dist/index.d.ts

@@ -33,3 +33,2 @@ import { D as Driver, S as Storage, a as StorageValue } from './types-bb85dfb7.js';

lruCache: string;
localstorage: string;
memory: string;

@@ -41,2 +40,3 @@ mongodb: string;

azureKeyVault: string;
sessionStorage: string;
};

@@ -43,0 +43,0 @@ type BuiltinDriverName = keyof typeof builtinDrivers;

@@ -11,11 +11,11 @@ export interface GithubOptions {

*/
branch: string;
branch?: string;
/**
* @default ""
* @default "main"
*/
dir: string;
dir?: string;
/**
* @default 600
*/
ttl: number;
ttl?: number;
/**

@@ -22,0 +22,0 @@ * Github API token (recommended)

@@ -1,15 +0,6 @@

import LRU from "lru-cache";
type LRUCacheOptions = LRU.SharedOptions<string, any> & LRU.LimitedByCount & LRU.LimitedBySize<string, any> & LRU.LimitedByTTL & {
/**
* The maximum allowed size for any single item in the cache.
*
* If a larger item is passed to set or returned by a
* fetchMethod, then it will not be stored in the cache.
*/
maxEntrySize?: number;
sizeCalculation?: LRU.SizeCalculator<string, any>;
};
export interface LRUDriverOptions extends Partial<LRUCacheOptions> {
import { LRUCache } from "lru-cache";
type LRUCacheOptions = LRUCache.OptionsBase<string, any, any> & Partial<LRUCache.OptionsMaxLimit<string, any, any>> & Partial<LRUCache.OptionsSizeLimit<string, any, any>> & Partial<LRUCache.OptionsTTLLimit<string, any, any>>;
export interface LRUDriverOptions extends LRUCacheOptions {
}
declare const _default: (opts?: LRUDriverOptions | undefined) => import("../types").Driver;
export default _default;
{
"name": "unstorage",
"version": "1.4.1",
"version": "1.5.0",
"description": "Universal Storage Layer",

@@ -33,13 +33,2 @@ "repository": "unjs/unstorage",

],
"scripts": {
"build": "unbuild",
"demo": "vite demo",
"dev": "vitest",
"lint": "eslint --ext .ts . && prettier -c src test demo docs/content",
"lint:fix": "eslint --ext .ts . --fix && prettier -w src test demo docs/content",
"prepack": "pnpm build",
"release": "pnpm test && changelogen --release && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run --coverage",
"unstorage": "pnpm jiti src/cli"
},
"dependencies": {

@@ -49,8 +38,8 @@ "anymatch": "^3.1.3",

"destr": "^1.2.2",
"h3": "^1.5.0",
"ioredis": "^5.3.1",
"listhen": "^1.0.3",
"lru-cache": "^7.18.3",
"h3": "^1.6.4",
"ioredis": "^5.3.2",
"listhen": "^1.0.4",
"lru-cache": "^9.0.3",
"mri": "^1.2.0",
"node-fetch-native": "^1.0.2",
"node-fetch-native": "^1.1.0",
"ofetch": "^1.0.1",

@@ -62,33 +51,33 @@ "ufo": "^1.1.1"

"@azure/cosmos": "^3.17.3",
"@azure/data-tables": "^13.2.1",
"@azure/identity": "^3.1.3",
"@azure/keyvault-secrets": "^4.6.0",
"@azure/storage-blob": "^12.13.0",
"@cloudflare/workers-types": "^4.20230228.0",
"@planetscale/database": "^1.6.0",
"@types/ioredis-mock": "^8",
"@types/jsdom": "^21.1.0",
"@azure/data-tables": "^13.2.2",
"@azure/identity": "^3.1.4",
"@azure/keyvault-secrets": "^4.7.0",
"@azure/storage-blob": "^12.14.0",
"@cloudflare/workers-types": "^4.20230404.0",
"@planetscale/database": "^1.7.0",
"@types/ioredis-mock": "^8.2.1",
"@types/jsdom": "^21.1.1",
"@types/mri": "^1.1.1",
"@types/node": "^18.14.6",
"@vitejs/plugin-vue": "^4.0.0",
"@vitest/coverage-c8": "^0.29.2",
"@types/node": "^18.15.11",
"@vitejs/plugin-vue": "^4.1.0",
"@vitest/coverage-c8": "^0.30.1",
"@vue/compiler-sfc": "^3.2.47",
"azurite": "^3.22.0",
"azurite": "^3.23.0",
"c8": "^7.13.0",
"changelogen": "^0.5.1",
"eslint": "^8.35.0",
"changelogen": "^0.5.3",
"eslint": "^8.38.0",
"eslint-config-unjs": "^0.1.0",
"ioredis-mock": "^8.2.6",
"jiti": "^1.17.2",
"jsdom": "^21.1.0",
"monaco-editor": "^0.36.1",
"mongodb": "^5.1.0",
"mongodb-memory-server": "^8.11.5",
"msw": "^1.1.0",
"prettier": "^2.8.4",
"ioredis-mock": "^8.6.0",
"jiti": "^1.18.2",
"jsdom": "^21.1.1",
"monaco-editor": "^0.37.1",
"mongodb": "^5.2.0",
"mongodb-memory-server": "^8.12.2",
"msw": "^1.2.1",
"prettier": "^2.8.7",
"types-cloudflare-worker": "^1.2.0",
"typescript": "^4.9.5",
"unbuild": "^1.1.2",
"vite": "^4.1.4",
"vitest": "^0.29.2",
"typescript": "^5.0.4",
"unbuild": "^1.2.1",
"vite": "^4.2.1",
"vitest": "^0.30.1",
"vue": "^3.2.47"

@@ -99,7 +88,7 @@ },

"@azure/cosmos": "^3.17.3",
"@azure/data-tables": "^13.2.1",
"@azure/identity": "^3.1.3",
"@azure/keyvault-secrets": "^4.6.0",
"@azure/storage-blob": "^12.13.0",
"@planetscale/database": "^1.6.0"
"@azure/data-tables": "^13.2.2",
"@azure/identity": "^3.1.4",
"@azure/keyvault-secrets": "^4.7.0",
"@azure/storage-blob": "^12.14.0",
"@planetscale/database": "^1.7.0"
},

@@ -129,3 +118,13 @@ "peerDependenciesMeta": {

},
"packageManager": "pnpm@7.29.0"
}
"packageManager": "pnpm@8.2.0",
"scripts": {
"build": "unbuild",
"demo": "vite demo",
"dev": "vitest",
"lint": "eslint --ext .ts . && prettier -c src test demo docs/content",
"lint:fix": "eslint --ext .ts . --fix && prettier -w src test demo docs/content",
"release": "pnpm test && changelogen --release && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run --coverage",
"unstorage": "pnpm jiti src/cli"
}
}

@@ -24,3 +24,3 @@ # 💾 Unstorage

- Auto JSON value serialization and deserialization
- Banary and raw value support
- Binary and raw value support
- State [snapshots](https://unstorage.unjs.io/utils#snapshots) and hydration

@@ -27,0 +27,0 @@ - Storage watcher

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