@filebox/core 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,8 @@ export declare class Cache {
32
32
  * 从缓存中删除值
33
33
  */
34
34
  del(key: string): Promise<void>;
35
+ /** Invalidate one directory's listings, preserving parent and child lists. */
36
+ invalidateList(path: string): Promise<void>;
35
37
  /**
36
38
  * 检查键是否存在于缓存中
37
39
  */
@@ -38,6 +38,7 @@ declare class Volume extends BaseVolume {
38
38
  bulkCopy(src: string[], dest: string, options?: any): Promise<any>;
39
39
  createUpload(path: string, file: any, uploadProgress: any): Promise<any>;
40
40
  upload(path: string, file: any, uploadProgress: any): Promise<any>;
41
+ private invalidateUploadCache;
41
42
  remoteUpload(path: string | Stat, url: string): Promise<any>;
42
43
  download(path: string, options?: any): Promise<any>;
43
44
  copy(source: string, destination: string, options?: any): Promise<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@filebox/core",
3
3
  "email": "ppnows@gmail.com",
4
- "version": "1.0.16",
4
+ "version": "1.0.17",
5
5
  "description": "filebox-core",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",
@@ -18,7 +18,8 @@
18
18
  "publish:patch": "npm version patch && npm publish --access public",
19
19
  "publish:minor": "npm version minor && npm publish --access public",
20
20
  "publish:major": "npm version major && npm publish --access public",
21
- "test": "jest"
21
+ "test": "jest",
22
+ "test:upload-cache": "node --test test/upload-cache.test.mjs"
22
23
  },
23
24
  "keywords": [],
24
25
  "files": [