@platform/cache
Advanced tools
Comparing version 0.2.41 to 0.3.0
export * from './MemoryCache'; | ||
export * from './FileSystem'; | ||
export * from './types'; |
@@ -5,2 +5,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./MemoryCache"), exports); | ||
tslib_1.__exportStar(require("./FileSystem"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); |
@@ -20,1 +20,18 @@ export declare type MemoryCacheFilter = (key: string) => boolean; | ||
}; | ||
export declare type IFileCache = { | ||
readonly dir: string; | ||
file(path: string): ICachedFile; | ||
exists(path: string): Promise<boolean>; | ||
get(path: string): Promise<Uint8Array | undefined>; | ||
put(path: string, data: string | Uint8Array): Promise<void>; | ||
delete(path: string): Promise<void>; | ||
clear(): Promise<void>; | ||
}; | ||
export declare type ICachedFile = { | ||
readonly dir: string; | ||
readonly path: string; | ||
exists(): Promise<boolean>; | ||
get(): Promise<Uint8Array | undefined>; | ||
put(data: string | Uint8Array): Promise<void>; | ||
delete(): Promise<void>; | ||
}; |
{ | ||
"name": "@platform/cache", | ||
"version": "0.2.41", | ||
"version": "0.3.0", | ||
"description": "Caching tools.", | ||
@@ -17,6 +17,7 @@ "main": "lib/index", | ||
"dependencies": { | ||
"@platform/fs.types": "0.1.0", | ||
"@platform/libs": "0.2.3" | ||
}, | ||
"devDependencies": { | ||
"@platform/test": "0.1.16", | ||
"@platform/test": "0.1.17", | ||
"@platform/ts": "4.0.6" | ||
@@ -23,0 +24,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
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
32
31248
2
801
1
+ Added@platform/fs.types@0.1.0
+ Added@platform/fs.types@0.1.0(transitive)