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

file-system-cache

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-system-cache - npm Package Compare versions

Comparing version 2.4.5 to 2.4.6

lib/common.t.d.ts

52

lib/index.d.ts

@@ -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

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