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

prisma-redis-middleware

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma-redis-middleware - npm Package Compare versions

Comparing version 4.6.1 to 4.7.0

16

dist/types.d.ts

@@ -14,2 +14,6 @@ import type Redis from "ioredis";

export declare type FetchFromPrisma = (params: MiddlewareParams) => Promise<Result>;
export declare type RedisMemoryStorage = {
type: "redis";
options?: RedisMemoryOptions;
};
export declare type RedisMemoryOptions = {

@@ -22,2 +26,6 @@ client: Redis;

};
export declare type MemoryStorage = {
type: "memory";
options?: MemoryStorageOptions;
};
export declare type MemoryStorageOptions = {

@@ -37,9 +45,3 @@ size?: number;

}[];
storage?: {
type: "redis";
options?: RedisMemoryOptions;
} | {
type: "memory";
options?: MemoryStorageOptions;
};
storage?: RedisMemoryStorage | MemoryStorage;
cacheTime?: number;

@@ -46,0 +48,0 @@ excludeModels?: string[] | Prisma.ModelName[];

{
"name": "prisma-redis-middleware",
"author": "A-J Roos <asjas@hey.com>",
"version": "4.6.1",
"version": "4.7.0",
"description": "Prisma Middleware for caching results of queries in Redis",

@@ -32,23 +32,23 @@ "license": "Hippocratic-3.0",

"dependencies": {
"async-cache-dedupe": "1.9.0",
"ioredis": "5.3.1"
"async-cache-dedupe": "1.10.2",
"ioredis": "5.3.2"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "3.7.1",
"@prisma/client": "4.10.1",
"@ianvs/prettier-plugin-sort-imports": "3.7.2",
"@prisma/client": "4.13.0",
"@size-limit/preset-small-lib": "8.2.4",
"@types/ioredis-mock": "8.2.1",
"@vitest/coverage-c8": "0.28.5",
"@vitest/coverage-c8": "0.30.1",
"c8": "7.13.0",
"husky": "8.0.3",
"ioredis-mock": "8.2.6",
"lint-staged": "13.1.2",
"ioredis-mock": "8.7.0",
"lint-staged": "13.2.2",
"npm-run-all": "4.1.5",
"prettier": "2.8.4",
"rimraf": "4.1.2",
"prettier": "2.8.8",
"rimraf": "5.0.0",
"size-limit": "8.2.4",
"tsdx": "0.14.1",
"tslib": "2.5.0",
"typescript": "4.9.5",
"vitest": "0.28.5"
"typescript": "5.0.4",
"vitest": "0.30.1"
},

@@ -55,0 +55,0 @@ "husky": {

@@ -48,2 +48,7 @@ import type Redis from "ioredis";

export type RedisMemoryStorage = {
type: "redis";
options?: RedisMemoryOptions;
}
export type RedisMemoryOptions = {

@@ -55,2 +60,7 @@ client: Redis;

export type MemoryStorage = {
type: "memory";
options?: MemoryStorageOptions;
}
export type MemoryStorageOptions = {

@@ -72,11 +82,3 @@ size?: number;

}[];
storage?:
| {
type: "redis";
options?: RedisMemoryOptions;
}
| {
type: "memory";
options?: MemoryStorageOptions;
};
storage?: RedisMemoryStorage | MemoryStorage;
cacheTime?: number;

@@ -83,0 +85,0 @@ excludeModels?: string[] | Prisma.ModelName[];

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