fsd 0.10.0 → 0.12.0

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.
Files changed (2) hide show
  1. package/index.d.ts +4 -1
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -92,8 +92,11 @@ export class Adapter<T> {
92
92
  alloc?: (options?: AllocOptions) => Promise<string>;
93
93
  /**
94
94
  * 创建上传凭证,如果支持边缘上传,否则不存在
95
+ * @param path 文件路径
96
+ * @param {any} [meta] 文件元数据
97
+ * @param {number} [durationSeconds] 令牌有效时长,单位秒
95
98
  */
96
- createUploadToken?: (path: string, meta?: any) => Promise<any>;
99
+ createUploadToken?: (path: string, meta?: any, durationSeconds?: number) => Promise<any>;
97
100
 
98
101
  constructor(options: T);
99
102
  append(path: string, data: string | Buffer | NodeJS.ReadableStream): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fsd",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "General file system driver for Node.js",
5
5
  "main": "lib/fsd.js",
6
6
  "types": "index.d.ts",
@@ -16,5 +16,5 @@
16
16
  "is-stream": "^2.0.1",
17
17
  "slash": "^3.0.0"
18
18
  },
19
- "gitHead": "9820fd7263b6791a38e5568396bfac0f2d3e37e9"
19
+ "gitHead": "ad01afd0117496a9b857e566a404f0ececbd723d"
20
20
  }