func-cache
Advanced tools
Comparing version 2.0.75 to 2.0.76
@@ -1,4 +0,4 @@ | ||
export declare function fSCacher(tmpPath: string): { | ||
export default function fSCacher(tmpPath: string): { | ||
initialCache: any; | ||
onDataUpdate: (ndata: any) => Promise<void>; | ||
}; |
@@ -1,3 +0,3 @@ | ||
export * from "./fs"; | ||
export * from "./redis"; | ||
export * from "./upstash"; | ||
export { default as fSCacher } from "./fs"; | ||
export { default as redisCacher } from "./redis"; | ||
export { default as upsatashCacher } from "./upstash"; |
import redis from 'redis'; | ||
export declare function redisCacher(tmpPath: string, options: { | ||
export default function redisCacher(tmpPath: string, options: { | ||
client: redis.RedisClientType; | ||
}): Partial<FCOptions>; |
import redis from '@upstash/redis'; | ||
export declare function upstashCacher(tmpPath: string, options: { | ||
export default function upstashCacher(tmpPath: string, options: { | ||
client: redis.Redis; | ||
}): Partial<FCOptions>; |
{ | ||
"name": "func-cache", | ||
"version": "2.0.75", | ||
"version": "2.0.76", | ||
"license": "MIT", | ||
@@ -73,26 +73,9 @@ "main": "dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js", | ||
"import": "./src/index.ts", | ||
"require": "./dist/func-cache.cjs.production.min.cjs" | ||
}, | ||
"./src/tools/fs": { | ||
"types": "./dist/tools/fs.d.ts", | ||
"import": "./src/tools/fs", | ||
"require": "./src/tools/fs" | ||
}, | ||
"./src/tools/redis": { | ||
"types": "./dist/tools/redis.d.ts", | ||
"import": "./src/tools/redis", | ||
"require": "./src/tools/redis" | ||
}, | ||
"./src/tools/upstash": { | ||
"types": "./dist/tools/upstash.d.ts", | ||
"import": "./src/tools/upstash", | ||
"require": "./src/tools/upstash" | ||
}, | ||
"./tools": { | ||
"types": "./dist/tools", | ||
"import": "./src/tools", | ||
"require": "./src/tools" | ||
} | ||
"./fs": "./src/tools/fs.ts", | ||
"./redis": "./src/tools/redis.ts", | ||
"./upstash": "./src/tools/upstash.ts" | ||
} | ||
} |
@@ -5,3 +5,3 @@ import fs from "fs/promises"; | ||
export function fSCacher(tmpPath: string) { | ||
export default function fSCacher(tmpPath: string) { | ||
@@ -8,0 +8,0 @@ return { |
@@ -1,3 +0,3 @@ | ||
export * from "./fs"; | ||
export * from "./redis"; | ||
export * from "./upstash"; | ||
export { default as fSCacher } from "./fs"; | ||
export { default as redisCacher } from "./redis"; | ||
export { default as upsatashCacher } from "./upstash"; |
import redis from 'redis'; | ||
export function redisCacher(tmpPath: string, options: { client: redis.RedisClientType }): Partial<FCOptions> { | ||
export default function redisCacher(tmpPath: string, options: { client: redis.RedisClientType }): Partial<FCOptions> { | ||
const red = options.client; | ||
@@ -6,0 +6,0 @@ return { |
import redis from '@upstash/redis'; | ||
export function upstashCacher(tmpPath: string, options: { client: redis.Redis }): Partial<FCOptions> { | ||
export default function upstashCacher(tmpPath: string, options: { client: redis.Redis }): Partial<FCOptions> { | ||
const red = options.client; | ||
@@ -6,0 +6,0 @@ return { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74884