file-system-cache
Advanced tools
Comparing version 2.4.5 to 2.4.6
@@ -1,47 +0,5 @@ | ||
type HashAlgorithm = 'RSA-MD5' | 'RSA-RIPEMD160' | 'RSA-SHA1' | 'RSA-SHA1-2' | 'RSA-SHA224' | 'RSA-SHA256' | 'RSA-SHA3-224' | 'RSA-SHA3-256' | 'RSA-SHA3-384' | 'RSA-SHA3-512' | 'RSA-SHA384' | 'RSA-SHA512' | 'RSA-SHA512/224' | 'RSA-SHA512/256' | 'RSA-SM3' | 'blake2b512' | 'blake2s256' | 'id-rsassa-pkcs1-v1_5-with-sha3-224' | 'id-rsassa-pkcs1-v1_5-with-sha3-256' | 'id-rsassa-pkcs1-v1_5-with-sha3-384' | 'id-rsassa-pkcs1-v1_5-with-sha3-512' | 'md5' | 'md5-sha1' | 'md5WithRSAEncryption' | 'ripemd' | 'ripemd160' | 'ripemd160WithRSA' | 'rmd160' | 'sha1' | 'sha1WithRSAEncryption' | 'sha224' | 'sha224WithRSAEncryption' | 'sha256' | 'sha256WithRSAEncryption' | 'sha3-224' | 'sha3-256' | 'sha3-384' | 'sha3-512' | 'sha384' | 'sha384WithRSAEncryption' | 'sha512' | 'sha512-224' | 'sha512-224WithRSAEncryption' | 'sha512-256' | 'sha512-256WithRSAEncryption' | 'sha512WithRSAEncryption' | 'shake128' | 'shake256' | 'sm3' | 'sm3WithRSAEncryption' | 'ssl3-md5' | 'ssl3-sha1'; | ||
type FileSystemCacheOptions = { | ||
basePath?: string; | ||
ns?: any; | ||
ttl?: number; | ||
hash?: HashAlgorithm; | ||
extension?: string; | ||
}; | ||
declare class FileSystemCache { | ||
static hashAlgorithms: HashAlgorithm[]; | ||
readonly basePath: string; | ||
readonly ns?: any; | ||
readonly extension?: string; | ||
readonly hash: HashAlgorithm; | ||
readonly ttl: number; | ||
basePathExists?: boolean; | ||
constructor(options?: FileSystemCacheOptions); | ||
path(key: string): string; | ||
fileExists(key: string): Promise<boolean>; | ||
ensureBasePath(): Promise<void>; | ||
get(key: string, defaultValue?: any): Promise<any>; | ||
getSync(key: string, defaultValue?: any): any; | ||
set(key: string, value: any, ttl?: number): Promise<{ | ||
path: string; | ||
}>; | ||
setSync(key: string, value: any, ttl?: number): this; | ||
remove(key: string): Promise<void>; | ||
clear(): Promise<void>; | ||
save(input: ({ | ||
key: string; | ||
value: any; | ||
} | null | undefined)[]): Promise<{ | ||
paths: string[]; | ||
}>; | ||
load(): Promise<{ | ||
files: { | ||
path: string; | ||
value: any; | ||
}[]; | ||
}>; | ||
} | ||
declare const _default: (options?: FileSystemCacheOptions) => FileSystemCache; | ||
export { FileSystemCache as Cache, FileSystemCache, _default as default }; | ||
import { type t } from './common'; | ||
import { FileSystemCache } from './FileSystemCache'; | ||
declare const _default: (options?: t.FileSystemCacheOptions) => FileSystemCache; | ||
export default _default; | ||
export { FileSystemCache, FileSystemCache as Cache }; |
{ | ||
"name": "file-system-cache", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"description": "A super-fast, promise-based cache that reads and writes to the file-system.", | ||
@@ -45,7 +45,5 @@ "keywords": [ | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/mocha": "^10.0.7", | ||
"@types/ramda": "^0.30.1", | ||
"chai": "^5.1.1", | ||
"fs-extra": "^11.2.0", | ||
"mocha": "^10.6.0", | ||
"prettier": "^3.3.3", | ||
@@ -58,3 +56,7 @@ "ramda": "^0.30.1", | ||
}, | ||
"resolutions": { | ||
"braces": ">=3.0.3", | ||
"vite": ">=5.3.3" | ||
}, | ||
"packageManager": "yarn@1.22.19+sha512.ff4579ab459bb25aa7c0ff75b62acebe576f6084b36aa842971cf250a5d8c6cd3bc9420b22ce63c7f93a0857bc6ef29291db39c3e7a23aab5adfd5a4dd6c5d71" | ||
} |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
12
33
618
1
32439