@mingto/obs-server 1.0.36 → 1.0.38

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 (3) hide show
  1. package/README.md +1 -0
  2. package/dist/index.js +46115 -44496
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -67,6 +67,7 @@ const uploadContext = obsServer.create({
67
67
  |------|------|------|------|
68
68
  | sourceFile | `File` | 是 | 要上传的文件对象 |
69
69
  | partSize | `number` | 否 | 分片大小,默认 5MB |
70
+ | sceneId | `'0' \| '1'` | 否 | 上传桶的类型,`'0'` 为私有桶,`'1'` 为公共桶(默认) |
70
71
  | onStart | `() => void` | 否 | 上传开始回调 |
71
72
  | onProgress | `(event) => void` | 否 | 上传进度回调 |
72
73
  | onSuccess | `(event) => void` | 否 | 上传成功回调 |