Socket
Socket
Sign inDemoInstall

@platform/cache

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platform/cache - npm Package Compare versions

Comparing version 0.2.41 to 0.3.0

lib/FileSystem/CachedFile.d.ts

1

lib/index.d.ts
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>;
};

5

package.json
{
"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

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