@nocobase/plugin-file-manager 1.9.25 → 1.9.26

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 (279) hide show
  1. package/dist/externalVersion.js +7 -7
  2. package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -1
  3. package/dist/node_modules/ali-oss/LICENSE +21 -0
  4. package/dist/node_modules/ali-oss/dist/aliyun-oss-sdk.js +44018 -0
  5. package/dist/node_modules/ali-oss/dist/aliyun-oss-sdk.min.js +4 -0
  6. package/dist/node_modules/ali-oss/lib/browser/bucket.js +296 -0
  7. package/dist/node_modules/ali-oss/lib/browser/client.js +452 -0
  8. package/dist/node_modules/ali-oss/lib/browser/managed-upload.js +360 -0
  9. package/dist/node_modules/ali-oss/lib/browser/object.js +385 -0
  10. package/dist/node_modules/ali-oss/lib/browser/version.js +1 -0
  11. package/dist/node_modules/ali-oss/lib/browser.js +6 -0
  12. package/dist/node_modules/ali-oss/lib/bucket.js +337 -0
  13. package/dist/node_modules/{multer-aliyun-oss/index.js → ali-oss/lib/client.js} +2 -2
  14. package/dist/node_modules/ali-oss/lib/cluster.js +228 -0
  15. package/dist/node_modules/ali-oss/lib/common/bucket/abortBucketWorm.d.ts +4 -0
  16. package/dist/node_modules/ali-oss/lib/common/bucket/abortBucketWorm.js +14 -0
  17. package/dist/node_modules/ali-oss/lib/common/bucket/abortBucketWorm.ts +12 -0
  18. package/dist/node_modules/ali-oss/lib/common/bucket/completeBucketWorm.d.ts +4 -0
  19. package/dist/node_modules/ali-oss/lib/common/bucket/completeBucketWorm.js +14 -0
  20. package/dist/node_modules/ali-oss/lib/common/bucket/completeBucketWorm.ts +12 -0
  21. package/dist/node_modules/ali-oss/lib/common/bucket/deleteBucketEncryption.js +20 -0
  22. package/dist/node_modules/ali-oss/lib/common/bucket/deleteBucketInventory.d.ts +10 -0
  23. package/dist/node_modules/ali-oss/lib/common/bucket/deleteBucketInventory.js +22 -0
  24. package/dist/node_modules/ali-oss/lib/common/bucket/deleteBucketInventory.ts +21 -0
  25. package/dist/node_modules/ali-oss/lib/common/bucket/deleteBucketLifecycle.js +13 -0
  26. package/dist/node_modules/ali-oss/lib/common/bucket/deleteBucketPolicy.js +21 -0
  27. package/dist/node_modules/ali-oss/lib/common/bucket/deleteBucketTags.js +21 -0
  28. package/dist/node_modules/ali-oss/lib/common/bucket/deleteBucketWebsite.js +13 -0
  29. package/dist/node_modules/ali-oss/lib/common/bucket/extendBucketWorm.d.ts +4 -0
  30. package/dist/node_modules/ali-oss/lib/common/bucket/extendBucketWorm.js +23 -0
  31. package/dist/node_modules/ali-oss/lib/common/bucket/extendBucketWorm.ts +21 -0
  32. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketEncryption.js +21 -0
  33. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketInventory.d.ts +11 -0
  34. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketInventory.js +25 -0
  35. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketInventory.ts +24 -0
  36. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketLifecycle.js +33 -0
  37. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketPolicy.js +28 -0
  38. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketRequestPayment.js +25 -0
  39. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketStat.d.ts +23 -0
  40. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketStat.js +17 -0
  41. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketStat.ts +34 -0
  42. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketTags.js +23 -0
  43. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketVersioning.js +22 -0
  44. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketWebsite.js +28 -0
  45. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketWorm.d.ts +1 -0
  46. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketWorm.js +20 -0
  47. package/dist/node_modules/ali-oss/lib/common/bucket/getBucketWorm.ts +22 -0
  48. package/dist/node_modules/ali-oss/lib/common/bucket/index.js +34 -0
  49. package/dist/node_modules/ali-oss/lib/common/bucket/initiateBucketWorm.d.ts +5 -0
  50. package/dist/node_modules/ali-oss/lib/common/bucket/initiateBucketWorm.js +24 -0
  51. package/dist/node_modules/ali-oss/lib/common/bucket/initiateBucketWorm.ts +23 -0
  52. package/dist/node_modules/ali-oss/lib/common/bucket/listBucketInventory.d.ts +13 -0
  53. package/dist/node_modules/ali-oss/lib/common/bucket/listBucketInventory.js +29 -0
  54. package/dist/node_modules/ali-oss/lib/common/bucket/listBucketInventory.ts +32 -0
  55. package/dist/node_modules/ali-oss/lib/common/bucket/putBucket.js +31 -0
  56. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketEncryption.js +36 -0
  57. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketInventory.d.ts +36 -0
  58. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketInventory.js +58 -0
  59. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketInventory.ts +84 -0
  60. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketLifecycle.js +127 -0
  61. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketPolicy.js +27 -0
  62. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketRequestPayment.js +40 -0
  63. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketTags.js +39 -0
  64. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketVersioning.js +35 -0
  65. package/dist/node_modules/ali-oss/lib/common/bucket/putBucketWebsite.js +50 -0
  66. package/dist/node_modules/ali-oss/lib/common/callback.js +27 -0
  67. package/dist/node_modules/ali-oss/lib/common/client/getReqUrl.d.ts +1 -0
  68. package/dist/node_modules/ali-oss/lib/common/client/getReqUrl.js +52 -0
  69. package/dist/node_modules/ali-oss/lib/common/client/getReqUrl.ts +51 -0
  70. package/dist/node_modules/ali-oss/lib/common/client/initOptions.js +72 -0
  71. package/dist/node_modules/ali-oss/lib/common/image/index.js +5 -0
  72. package/dist/node_modules/ali-oss/lib/common/image/processObjectSave.js +45 -0
  73. package/dist/node_modules/ali-oss/lib/common/multipart-copy.js +240 -0
  74. package/dist/node_modules/ali-oss/lib/common/multipart.js +271 -0
  75. package/dist/node_modules/ali-oss/lib/common/object/asyncSignatureUrl.js +57 -0
  76. package/dist/node_modules/ali-oss/lib/common/object/calculatePostSignature.js +35 -0
  77. package/dist/node_modules/ali-oss/lib/common/object/copyObject.js +74 -0
  78. package/dist/node_modules/ali-oss/lib/common/object/delete.js +22 -0
  79. package/dist/node_modules/ali-oss/lib/common/object/deleteMulti.js +57 -0
  80. package/dist/node_modules/ali-oss/lib/common/object/deleteObjectTagging.js +22 -0
  81. package/dist/node_modules/ali-oss/lib/common/object/generateObjectUrl.js +28 -0
  82. package/dist/node_modules/ali-oss/lib/common/object/get.js +64 -0
  83. package/dist/node_modules/ali-oss/lib/common/object/getACL.js +30 -0
  84. package/dist/node_modules/ali-oss/lib/common/object/getAsyncFetch.d.ts +1 -0
  85. package/dist/node_modules/ali-oss/lib/common/object/getAsyncFetch.js +26 -0
  86. package/dist/node_modules/ali-oss/lib/common/object/getAsyncFetch.ts +25 -0
  87. package/dist/node_modules/ali-oss/lib/common/object/getBucketVersions.js +98 -0
  88. package/dist/node_modules/ali-oss/lib/common/object/getObjectMeta.js +23 -0
  89. package/dist/node_modules/ali-oss/lib/common/object/getObjectTagging.js +34 -0
  90. package/dist/node_modules/ali-oss/lib/common/object/getObjectUrl.js +21 -0
  91. package/dist/node_modules/ali-oss/lib/common/object/getSymlink.js +23 -0
  92. package/dist/node_modules/ali-oss/lib/common/object/head.js +40 -0
  93. package/dist/node_modules/ali-oss/lib/common/object/index.js +26 -0
  94. package/dist/node_modules/ali-oss/lib/common/object/postAsyncFetch.d.ts +1 -0
  95. package/dist/node_modules/ali-oss/lib/common/object/postAsyncFetch.js +44 -0
  96. package/dist/node_modules/ali-oss/lib/common/object/postAsyncFetch.ts +46 -0
  97. package/dist/node_modules/ali-oss/lib/common/object/putACL.js +27 -0
  98. package/dist/node_modules/ali-oss/lib/common/object/putObjectTagging.js +43 -0
  99. package/dist/node_modules/ali-oss/lib/common/object/putSymlink.js +33 -0
  100. package/dist/node_modules/ali-oss/lib/common/object/signatureUrl.js +52 -0
  101. package/dist/node_modules/ali-oss/lib/common/object/signatureUrlV4.js +70 -0
  102. package/dist/node_modules/ali-oss/lib/common/parallel.js +177 -0
  103. package/dist/node_modules/ali-oss/lib/common/signUtils.js +355 -0
  104. package/dist/node_modules/ali-oss/lib/common/utils/checkBucketName.d.ts +1 -0
  105. package/dist/node_modules/ali-oss/lib/common/utils/checkBucketName.js +9 -0
  106. package/dist/node_modules/ali-oss/lib/common/utils/checkBucketName.ts +6 -0
  107. package/dist/node_modules/ali-oss/lib/common/utils/checkBucketNameTest.d.ts +1 -0
  108. package/dist/node_modules/ali-oss/lib/common/utils/checkBucketNameTest.js +14 -0
  109. package/dist/node_modules/ali-oss/lib/common/utils/checkBucketNameTest.ts +12 -0
  110. package/dist/node_modules/ali-oss/lib/common/utils/checkBucketTag.d.ts +1 -0
  111. package/dist/node_modules/ali-oss/lib/common/utils/checkBucketTag.js +49 -0
  112. package/dist/node_modules/ali-oss/lib/common/utils/checkBucketTag.ts +52 -0
  113. package/dist/node_modules/ali-oss/lib/common/utils/checkConfigValid.d.ts +1 -0
  114. package/dist/node_modules/ali-oss/lib/common/utils/checkConfigValid.js +30 -0
  115. package/dist/node_modules/ali-oss/lib/common/utils/checkConfigValid.ts +27 -0
  116. package/dist/node_modules/ali-oss/lib/common/utils/checkEnv.d.ts +1 -0
  117. package/dist/node_modules/ali-oss/lib/common/utils/checkEnv.js +9 -0
  118. package/dist/node_modules/ali-oss/lib/common/utils/checkEnv.ts +5 -0
  119. package/dist/node_modules/ali-oss/lib/common/utils/checkObjectTag.d.ts +1 -0
  120. package/dist/node_modules/ali-oss/lib/common/utils/checkObjectTag.js +50 -0
  121. package/dist/node_modules/ali-oss/lib/common/utils/checkObjectTag.ts +53 -0
  122. package/dist/node_modules/ali-oss/lib/common/utils/checkUserAgent.d.ts +1 -0
  123. package/dist/node_modules/ali-oss/lib/common/utils/checkUserAgent.js +7 -0
  124. package/dist/node_modules/ali-oss/lib/common/utils/checkUserAgent.ts +4 -0
  125. package/dist/node_modules/ali-oss/lib/common/utils/checkValid.d.ts +1 -0
  126. package/dist/node_modules/ali-oss/lib/common/utils/checkValid.js +14 -0
  127. package/dist/node_modules/ali-oss/lib/common/utils/checkValid.ts +9 -0
  128. package/dist/node_modules/ali-oss/lib/common/utils/createRequest.d.ts +8 -0
  129. package/dist/node_modules/ali-oss/lib/common/utils/createRequest.js +139 -0
  130. package/dist/node_modules/ali-oss/lib/common/utils/createRequest.ts +169 -0
  131. package/dist/node_modules/ali-oss/lib/common/utils/dataFix.d.ts +12 -0
  132. package/dist/node_modules/ali-oss/lib/common/utils/dataFix.js +63 -0
  133. package/dist/node_modules/ali-oss/lib/common/utils/dataFix.ts +78 -0
  134. package/dist/node_modules/ali-oss/lib/common/utils/deepCopy.d.ts +2 -0
  135. package/dist/node_modules/ali-oss/lib/common/utils/deepCopy.js +41 -0
  136. package/dist/node_modules/ali-oss/lib/common/utils/deepCopy.ts +47 -0
  137. package/dist/node_modules/ali-oss/lib/common/utils/encodeString.d.ts +1 -0
  138. package/dist/node_modules/ali-oss/lib/common/utils/encodeString.js +12 -0
  139. package/dist/node_modules/ali-oss/lib/common/utils/encodeString.ts +7 -0
  140. package/dist/node_modules/ali-oss/lib/common/utils/encoder.d.ts +2 -0
  141. package/dist/node_modules/ali-oss/lib/common/utils/encoder.js +9 -0
  142. package/dist/node_modules/ali-oss/lib/common/utils/encoder.ts +6 -0
  143. package/dist/node_modules/ali-oss/lib/common/utils/formatInventoryConfig.d.ts +1 -0
  144. package/dist/node_modules/ali-oss/lib/common/utils/formatInventoryConfig.js +45 -0
  145. package/dist/node_modules/ali-oss/lib/common/utils/formatInventoryConfig.ts +41 -0
  146. package/dist/node_modules/ali-oss/lib/common/utils/formatObjKey.d.ts +6 -0
  147. package/dist/node_modules/ali-oss/lib/common/utils/formatObjKey.js +34 -0
  148. package/dist/node_modules/ali-oss/lib/common/utils/formatObjKey.ts +35 -0
  149. package/dist/node_modules/ali-oss/lib/common/utils/formatTag.d.ts +1 -0
  150. package/dist/node_modules/ali-oss/lib/common/utils/formatTag.js +22 -0
  151. package/dist/node_modules/ali-oss/lib/common/utils/formatTag.ts +20 -0
  152. package/dist/node_modules/ali-oss/lib/common/utils/getStandardRegion.d.ts +1 -0
  153. package/dist/node_modules/ali-oss/lib/common/utils/getStandardRegion.js +7 -0
  154. package/dist/node_modules/ali-oss/lib/common/utils/getStandardRegion.ts +3 -0
  155. package/dist/node_modules/ali-oss/lib/common/utils/getStrBytesCount.d.ts +1 -0
  156. package/dist/node_modules/ali-oss/lib/common/utils/getStrBytesCount.js +17 -0
  157. package/dist/node_modules/ali-oss/lib/common/utils/getStrBytesCount.ts +12 -0
  158. package/dist/node_modules/ali-oss/lib/common/utils/getUserAgent.d.ts +1 -0
  159. package/dist/node_modules/ali-oss/lib/common/utils/getUserAgent.js +18 -0
  160. package/dist/node_modules/ali-oss/lib/common/utils/getUserAgent.ts +14 -0
  161. package/dist/node_modules/ali-oss/lib/common/utils/isArray.d.ts +1 -0
  162. package/dist/node_modules/ali-oss/lib/common/utils/isArray.js +6 -0
  163. package/dist/node_modules/ali-oss/lib/common/utils/isArray.ts +3 -0
  164. package/dist/node_modules/ali-oss/lib/common/utils/isBlob.d.ts +1 -0
  165. package/dist/node_modules/ali-oss/lib/common/utils/isBlob.js +7 -0
  166. package/dist/node_modules/ali-oss/lib/common/utils/isBlob.ts +3 -0
  167. package/dist/node_modules/ali-oss/lib/common/utils/isBuffer.d.ts +1 -0
  168. package/dist/node_modules/ali-oss/lib/common/utils/isBuffer.js +7 -0
  169. package/dist/node_modules/ali-oss/lib/common/utils/isBuffer.ts +3 -0
  170. package/dist/node_modules/ali-oss/lib/common/utils/isDingTalk.d.ts +1 -0
  171. package/dist/node_modules/ali-oss/lib/common/utils/isDingTalk.js +10 -0
  172. package/dist/node_modules/ali-oss/lib/common/utils/isDingTalk.ts +6 -0
  173. package/dist/node_modules/ali-oss/lib/common/utils/isFile.d.ts +1 -0
  174. package/dist/node_modules/ali-oss/lib/common/utils/isFile.js +6 -0
  175. package/dist/node_modules/ali-oss/lib/common/utils/isFile.ts +3 -0
  176. package/dist/node_modules/ali-oss/lib/common/utils/isFunction.d.ts +1 -0
  177. package/dist/node_modules/ali-oss/lib/common/utils/isFunction.js +6 -0
  178. package/dist/node_modules/ali-oss/lib/common/utils/isFunction.ts +3 -0
  179. package/dist/node_modules/ali-oss/lib/common/utils/isIP.d.ts +6 -0
  180. package/dist/node_modules/ali-oss/lib/common/utils/isIP.js +14 -0
  181. package/dist/node_modules/ali-oss/lib/common/utils/isIP.ts +12 -0
  182. package/dist/node_modules/ali-oss/lib/common/utils/isObject.d.ts +1 -0
  183. package/dist/node_modules/ali-oss/lib/common/utils/isObject.js +6 -0
  184. package/dist/node_modules/ali-oss/lib/common/utils/isObject.ts +3 -0
  185. package/dist/node_modules/ali-oss/lib/common/utils/lowercaseKeyHeader.d.ts +1 -0
  186. package/dist/node_modules/ali-oss/lib/common/utils/lowercaseKeyHeader.js +14 -0
  187. package/dist/node_modules/ali-oss/lib/common/utils/lowercaseKeyHeader.ts +11 -0
  188. package/dist/node_modules/ali-oss/lib/common/utils/obj2xml.d.ts +1 -0
  189. package/dist/node_modules/ali-oss/lib/common/utils/obj2xml.js +43 -0
  190. package/dist/node_modules/ali-oss/lib/common/utils/obj2xml.ts +37 -0
  191. package/dist/node_modules/ali-oss/lib/common/utils/omit.d.ts +1 -0
  192. package/dist/node_modules/ali-oss/lib/common/utils/omit.js +11 -0
  193. package/dist/node_modules/ali-oss/lib/common/utils/omit.ts +9 -0
  194. package/dist/node_modules/ali-oss/lib/common/utils/policy2Str.d.ts +1 -0
  195. package/dist/node_modules/ali-oss/lib/common/utils/policy2Str.js +21 -0
  196. package/dist/node_modules/ali-oss/lib/common/utils/policy2Str.ts +15 -0
  197. package/dist/node_modules/ali-oss/lib/common/utils/retry.d.ts +1 -0
  198. package/dist/node_modules/ali-oss/lib/common/utils/retry.js +30 -0
  199. package/dist/node_modules/ali-oss/lib/common/utils/retry.ts +26 -0
  200. package/dist/node_modules/ali-oss/lib/common/utils/setRegion.d.ts +3 -0
  201. package/dist/node_modules/ali-oss/lib/common/utils/setRegion.js +20 -0
  202. package/dist/node_modules/ali-oss/lib/common/utils/setRegion.ts +15 -0
  203. package/dist/node_modules/ali-oss/lib/common/utils/setSTSToken.d.ts +2 -0
  204. package/dist/node_modules/ali-oss/lib/common/utils/setSTSToken.js +36 -0
  205. package/dist/node_modules/ali-oss/lib/common/utils/setSTSToken.ts +32 -0
  206. package/dist/node_modules/ali-oss/lib/global.d.ts +6 -0
  207. package/dist/node_modules/ali-oss/lib/image.js +146 -0
  208. package/dist/node_modules/ali-oss/lib/managed-upload.js +380 -0
  209. package/dist/node_modules/ali-oss/lib/object.js +420 -0
  210. package/dist/node_modules/ali-oss/lib/rtmp.js +295 -0
  211. package/dist/node_modules/ali-oss/lib/setConfig.d.ts +3 -0
  212. package/dist/node_modules/ali-oss/lib/setConfig.js +42 -0
  213. package/dist/node_modules/ali-oss/lib/setConfig.ts +52 -0
  214. package/dist/node_modules/ali-oss/lib/sts.js +156 -0
  215. package/dist/node_modules/ali-oss/lib/types/experimental.d.ts +1 -0
  216. package/dist/node_modules/ali-oss/lib/types/experimental.js +2 -0
  217. package/dist/node_modules/ali-oss/lib/types/experimental.ts +1 -0
  218. package/dist/node_modules/ali-oss/node_modules/bowser/.editorconfig +17 -0
  219. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/.name +1 -0
  220. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/bowser.iml +8 -0
  221. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/encodings.xml +6 -0
  222. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/inspectionProfiles/Project_Default.xml +6 -0
  223. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/jsLibraryMappings.xml +8 -0
  224. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/markdown-exported-files.xml +8 -0
  225. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/markdown-navigator/profiles_settings.xml +3 -0
  226. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/markdown-navigator.xml +67 -0
  227. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/misc.xml +6 -0
  228. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/modules.xml +8 -0
  229. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/vcs.xml +6 -0
  230. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/watcherTasks.xml +4 -0
  231. package/dist/node_modules/ali-oss/node_modules/bowser/.idea/workspace.xml +696 -0
  232. package/dist/node_modules/ali-oss/node_modules/bowser/.travis.yml +8 -0
  233. package/dist/node_modules/ali-oss/node_modules/bowser/bower.json +33 -0
  234. package/dist/node_modules/ali-oss/node_modules/bowser/bowser.js +644 -0
  235. package/dist/node_modules/ali-oss/node_modules/bowser/bowser.min.js +6 -0
  236. package/dist/node_modules/ali-oss/node_modules/bowser/package.json +38 -0
  237. package/dist/node_modules/ali-oss/node_modules/bowser/src/bowser.js +644 -0
  238. package/dist/node_modules/ali-oss/node_modules/bowser/test/test.js +151 -0
  239. package/dist/node_modules/ali-oss/node_modules/bowser/typings.d.ts +115 -0
  240. package/dist/node_modules/ali-oss/node_modules/dateformat/.vs/ProjectSettings.json +3 -0
  241. package/dist/node_modules/ali-oss/node_modules/dateformat/.vs/config/applicationhost.config +1031 -0
  242. package/dist/node_modules/ali-oss/node_modules/dateformat/.vs/node-dateformat/v15/.suo +0 -0
  243. package/dist/node_modules/ali-oss/node_modules/dateformat/.vs/slnx.sqlite +0 -0
  244. package/dist/node_modules/ali-oss/node_modules/dateformat/lib/dateformat.js +226 -0
  245. package/dist/node_modules/ali-oss/node_modules/dateformat/package.json +30 -0
  246. package/dist/node_modules/ali-oss/node_modules/mime/Mime.js +97 -0
  247. package/dist/node_modules/ali-oss/node_modules/mime/cli.js +46 -0
  248. package/dist/node_modules/ali-oss/node_modules/mime/index.js +4 -0
  249. package/dist/node_modules/ali-oss/node_modules/mime/lite.js +4 -0
  250. package/dist/node_modules/ali-oss/node_modules/mime/package.json +52 -0
  251. package/dist/node_modules/ali-oss/node_modules/mime/types/other.js +1 -0
  252. package/dist/node_modules/ali-oss/node_modules/mime/types/standard.js +1 -0
  253. package/dist/node_modules/ali-oss/package.json +1 -0
  254. package/dist/node_modules/ali-oss/shims/crypto/crypto.js +98 -0
  255. package/dist/node_modules/ali-oss/shims/crypto/helpers.js +36 -0
  256. package/dist/node_modules/ali-oss/shims/crypto/md5.js +152 -0
  257. package/dist/node_modules/ali-oss/shims/crypto/sha.js +91 -0
  258. package/dist/node_modules/ali-oss/shims/crypto/sha256.js +163 -0
  259. package/dist/node_modules/ali-oss/shims/debug.js +3 -0
  260. package/dist/node_modules/ali-oss/shims/is-type-of.js +18 -0
  261. package/dist/node_modules/ali-oss/shims/process.js +35 -0
  262. package/dist/node_modules/ali-oss/shims/stream-http/index.js +82 -0
  263. package/dist/node_modules/ali-oss/shims/stream-http/lib/capability.js +72 -0
  264. package/dist/node_modules/ali-oss/shims/stream-http/lib/request.js +320 -0
  265. package/dist/node_modules/ali-oss/shims/stream-http/lib/response.js +217 -0
  266. package/dist/node_modules/ali-oss/shims/url/index.js +696 -0
  267. package/dist/node_modules/ali-oss/shims/url/util.js +16 -0
  268. package/dist/node_modules/ali-oss/shims/utility.js +25 -0
  269. package/dist/node_modules/ali-oss/shims/xhr.js +798 -0
  270. package/dist/node_modules/mime-match/package.json +1 -1
  271. package/dist/node_modules/mime-types/package.json +1 -1
  272. package/dist/node_modules/mkdirp/package.json +1 -1
  273. package/dist/node_modules/multer-cos/package.json +1 -1
  274. package/dist/node_modules/multer-s3/package.json +1 -1
  275. package/dist/node_modules/url-join/package.json +1 -1
  276. package/dist/server/storages/ali-oss.d.ts +15 -1
  277. package/dist/server/storages/ali-oss.js +66 -2
  278. package/package.json +3 -3
  279. package/dist/node_modules/multer-aliyun-oss/package.json +0 -1
@@ -1 +1 @@
1
- {"name":"mime-match","version":"1.0.2","description":"A simple function to check whether a mimetype matches the specified mimetype (with wildcard support)","main":"index.js","scripts":{"test":"node test.js","gendocs":"gendocs > README.md"},"repository":{"type":"git","url":"https://github.com/DamonOehlman/mime-match.git"},"keywords":["mime","wildcard"],"author":"Damon Oehlman <damon.oehlman@gmail.com>","license":"ISC","bugs":{"url":"https://github.com/DamonOehlman/mime-match/issues"},"homepage":"https://github.com/DamonOehlman/mime-match","dependencies":{"wildcard":"^1.1.0"},"devDependencies":{"tape":"^4.5.1"},"_lastModified":"2025-12-12T02:46:37.192Z"}
1
+ {"name":"mime-match","version":"1.0.2","description":"A simple function to check whether a mimetype matches the specified mimetype (with wildcard support)","main":"index.js","scripts":{"test":"node test.js","gendocs":"gendocs > README.md"},"repository":{"type":"git","url":"https://github.com/DamonOehlman/mime-match.git"},"keywords":["mime","wildcard"],"author":"Damon Oehlman <damon.oehlman@gmail.com>","license":"ISC","bugs":{"url":"https://github.com/DamonOehlman/mime-match/issues"},"homepage":"https://github.com/DamonOehlman/mime-match","dependencies":{"wildcard":"^1.1.0"},"devDependencies":{"tape":"^4.5.1"},"_lastModified":"2025-12-16T03:24:53.892Z"}
@@ -1 +1 @@
1
- {"name":"mime-types","description":"The ultimate javascript content-type utility.","version":"3.0.1","contributors":["Douglas Christopher Wilson <doug@somethingdoug.com>","Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)","Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"],"license":"MIT","keywords":["mime","types"],"repository":"jshttp/mime-types","dependencies":{"mime-db":"^1.54.0"},"devDependencies":{"eslint":"8.33.0","eslint-config-standard":"14.1.1","eslint-plugin-import":"2.27.5","eslint-plugin-markdown":"3.0.0","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.1.1","eslint-plugin-standard":"4.1.0","mocha":"10.2.0","nyc":"15.1.0"},"files":["HISTORY.md","LICENSE","index.js","mimeScore.js"],"engines":{"node":">= 0.6"},"scripts":{"lint":"eslint .","test":"mocha --reporter spec test/test.js","test-ci":"nyc --reporter=lcov --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test"},"_lastModified":"2025-12-12T02:46:37.498Z"}
1
+ {"name":"mime-types","description":"The ultimate javascript content-type utility.","version":"3.0.1","contributors":["Douglas Christopher Wilson <doug@somethingdoug.com>","Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)","Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"],"license":"MIT","keywords":["mime","types"],"repository":"jshttp/mime-types","dependencies":{"mime-db":"^1.54.0"},"devDependencies":{"eslint":"8.33.0","eslint-config-standard":"14.1.1","eslint-plugin-import":"2.27.5","eslint-plugin-markdown":"3.0.0","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.1.1","eslint-plugin-standard":"4.1.0","mocha":"10.2.0","nyc":"15.1.0"},"files":["HISTORY.md","LICENSE","index.js","mimeScore.js"],"engines":{"node":">= 0.6"},"scripts":{"lint":"eslint .","test":"mocha --reporter spec test/test.js","test-ci":"nyc --reporter=lcov --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test"},"_lastModified":"2025-12-16T03:24:54.179Z"}
@@ -1 +1 @@
1
- {"name":"mkdirp","description":"Recursively mkdir, like `mkdir -p`","version":"0.5.6","publishConfig":{"tag":"legacy"},"author":"James Halliday <mail@substack.net> (http://substack.net)","main":"index.js","keywords":["mkdir","directory"],"repository":{"type":"git","url":"https://github.com/substack/node-mkdirp.git"},"scripts":{"test":"tap test/*.js"},"dependencies":{"minimist":"^1.2.6"},"devDependencies":{"tap":"^16.0.1"},"bin":"bin/cmd.js","license":"MIT","files":["bin","index.js"],"_lastModified":"2025-12-12T02:46:41.946Z"}
1
+ {"name":"mkdirp","description":"Recursively mkdir, like `mkdir -p`","version":"0.5.6","publishConfig":{"tag":"legacy"},"author":"James Halliday <mail@substack.net> (http://substack.net)","main":"index.js","keywords":["mkdir","directory"],"repository":{"type":"git","url":"https://github.com/substack/node-mkdirp.git"},"scripts":{"test":"tap test/*.js"},"dependencies":{"minimist":"^1.2.6"},"devDependencies":{"tap":"^16.0.1"},"bin":"bin/cmd.js","license":"MIT","files":["bin","index.js"],"_lastModified":"2025-12-16T03:24:58.952Z"}
@@ -1 +1 @@
1
- {"_from":"multer-cos","_id":"multer-cos@1.0.2","_inBundle":false,"_integrity":"sha512-4F8P1VTCSNhiem+BFJFLe3Ixco6cIuAQ6j7U+PBRvdbBJRZgq5Q+vaDMMBWJ1HmPGOOP3AyKS5yk2f0nbFoqqA==","_location":"/multer-cos","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"multer-cos","name":"multer-cos","escapedName":"multer-cos","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"_resolved":"https://registry.npmjs.org/multer-cos/-/multer-cos-1.0.2.tgz","_shasum":"95c7c06cdee1b9311675a895481f9d946de6dcf3","_spec":"multer-cos","_where":"/Users/lanbo/workplace/websocket","author":{"name":"lanbosm"},"bugs":{"url":"https://github.com/lanbosm/multer-COS/issues"},"bundleDependencies":false,"deprecated":false,"description":"Streaming multer storage engine for QCloud COS","devDependencies":{"cos-nodejs-sdk-v5":"^2.2.6","dotenv":"^5.0.1","multer":"^1.3.0"},"engines":{"node":">= 6.10.0"},"homepage":"https://github.com/lanbosm/multer-COS#readme","keywords":["express","multer","COS"],"license":"MIT","main":"index.js","name":"multer-cos","repository":{"type":"git","url":"git+ssh://git@github.com/lanbosm/multer-COS.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"1.0.3","_lastModified":"2025-12-12T02:46:48.240Z"}
1
+ {"_from":"multer-cos","_id":"multer-cos@1.0.2","_inBundle":false,"_integrity":"sha512-4F8P1VTCSNhiem+BFJFLe3Ixco6cIuAQ6j7U+PBRvdbBJRZgq5Q+vaDMMBWJ1HmPGOOP3AyKS5yk2f0nbFoqqA==","_location":"/multer-cos","_phantomChildren":{},"_requested":{"type":"tag","registry":true,"raw":"multer-cos","name":"multer-cos","escapedName":"multer-cos","rawSpec":"","saveSpec":null,"fetchSpec":"latest"},"_requiredBy":["#USER","/"],"_resolved":"https://registry.npmjs.org/multer-cos/-/multer-cos-1.0.2.tgz","_shasum":"95c7c06cdee1b9311675a895481f9d946de6dcf3","_spec":"multer-cos","_where":"/Users/lanbo/workplace/websocket","author":{"name":"lanbosm"},"bugs":{"url":"https://github.com/lanbosm/multer-COS/issues"},"bundleDependencies":false,"deprecated":false,"description":"Streaming multer storage engine for QCloud COS","devDependencies":{"cos-nodejs-sdk-v5":"^2.2.6","dotenv":"^5.0.1","multer":"^1.3.0"},"engines":{"node":">= 6.10.0"},"homepage":"https://github.com/lanbosm/multer-COS#readme","keywords":["express","multer","COS"],"license":"MIT","main":"index.js","name":"multer-cos","repository":{"type":"git","url":"git+ssh://git@github.com/lanbosm/multer-COS.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"1.0.3","_lastModified":"2025-12-16T03:25:05.644Z"}
@@ -1 +1 @@
1
- {"name":"multer-s3","version":"3.0.1","description":"Streaming multer storage engine for AWS S3","main":"index.js","scripts":{"test":"standard && mocha test/basic.js"},"engines":{"node":">= 12.0.0"},"repository":{"type":"git","url":"git+https://github.com/badunk/multer-s3.git"},"keywords":["multer","s3","amazon","aws"],"author":"badunk","license":"MIT","bugs":{"url":"https://github.com/badunk/multer-s3/issues"},"homepage":"https://github.com/badunk/multer-s3#readme","dependencies":{"@aws-sdk/lib-storage":"^3.46.0","file-type":"^3.3.0","html-comment-regex":"^1.1.2","run-parallel":"^1.1.6"},"peerDependencies":{"@aws-sdk/client-s3":"^3.0.0"},"devDependencies":{"express":"^4.13.1","form-data":"^1.0.0-rc3","mocha":"^2.2.5","multer":"^1.1.0","on-finished":"^2.3.0","standard":"^5.4.1","xtend":"^4.0.1"},"_lastModified":"2025-12-12T02:46:44.758Z"}
1
+ {"name":"multer-s3","version":"3.0.1","description":"Streaming multer storage engine for AWS S3","main":"index.js","scripts":{"test":"standard && mocha test/basic.js"},"engines":{"node":">= 12.0.0"},"repository":{"type":"git","url":"git+https://github.com/badunk/multer-s3.git"},"keywords":["multer","s3","amazon","aws"],"author":"badunk","license":"MIT","bugs":{"url":"https://github.com/badunk/multer-s3/issues"},"homepage":"https://github.com/badunk/multer-s3#readme","dependencies":{"@aws-sdk/lib-storage":"^3.46.0","file-type":"^3.3.0","html-comment-regex":"^1.1.2","run-parallel":"^1.1.6"},"peerDependencies":{"@aws-sdk/client-s3":"^3.0.0"},"devDependencies":{"express":"^4.13.1","form-data":"^1.0.0-rc3","mocha":"^2.2.5","multer":"^1.1.0","on-finished":"^2.3.0","standard":"^5.4.1","xtend":"^4.0.1"},"_lastModified":"2025-12-16T03:25:01.958Z"}
@@ -1 +1 @@
1
- {"name":"url-join","version":"4.0.1","description":"Join urls and normalize as in path.join.","main":"lib/url-join.js","scripts":{"test":"mocha --require should"},"repository":{"type":"git","url":"git://github.com/jfromaniello/url-join.git"},"keywords":["url","join"],"author":"José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)","license":"MIT","devDependencies":{"conventional-changelog":"^1.1.10","mocha":"^3.2.0","should":"~1.2.1"},"_lastModified":"2025-12-12T02:46:37.277Z"}
1
+ {"name":"url-join","version":"4.0.1","description":"Join urls and normalize as in path.join.","main":"lib/url-join.js","scripts":{"test":"mocha --require should"},"repository":{"type":"git","url":"git://github.com/jfromaniello/url-join.git"},"keywords":["url","join"],"author":"José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)","license":"MIT","devDependencies":{"conventional-changelog":"^1.1.10","mocha":"^3.2.0","should":"~1.2.1"},"_lastModified":"2025-12-16T03:24:53.971Z"}
@@ -7,6 +7,19 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  import { AttachmentModel, StorageType } from '.';
10
+ declare function getRandomFilename(req: any, file: any, cb: any): void;
11
+ declare class AliYunOssStorage {
12
+ client: any;
13
+ getDestination: Function;
14
+ getFilename: Function;
15
+ constructor({ config, destination, filename }: {
16
+ config: any;
17
+ destination?: string;
18
+ filename?: typeof getRandomFilename;
19
+ });
20
+ _handleFile(req: any, file: any, cb: any): any;
21
+ _removeFile(req: any, file: any, cb: any): any;
22
+ }
10
23
  export default class extends StorageType {
11
24
  static defaults(): {
12
25
  title: string;
@@ -20,6 +33,7 @@ export default class extends StorageType {
20
33
  bucket: string;
21
34
  };
22
35
  };
23
- make(): any;
36
+ make(): AliYunOssStorage;
24
37
  delete(records: AttachmentModel[]): Promise<[number, AttachmentModel[]]>;
25
38
  }
39
+ export {};
@@ -7,9 +7,11 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
+ var __create = Object.create;
10
11
  var __defProp = Object.defineProperty;
11
12
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
13
  var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
13
15
  var __hasOwnProp = Object.prototype.hasOwnProperty;
14
16
  var __export = (target, all) => {
15
17
  for (var name in all)
@@ -23,15 +25,78 @@ var __copyProps = (to, from, except, desc) => {
23
25
  }
24
26
  return to;
25
27
  };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
26
36
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
37
  var ali_oss_exports = {};
28
38
  __export(ali_oss_exports, {
29
39
  default: () => ali_oss_default
30
40
  });
31
41
  module.exports = __toCommonJS(ali_oss_exports);
42
+ var import_util = require("util");
43
+ var import_path = __toESM(require("path"));
44
+ var import_crypto = __toESM(require("crypto"));
32
45
  var import__ = require(".");
33
46
  var import_constants = require("../../constants");
34
47
  var import_utils = require("../utils");
48
+ const ERROR_NO_CLIENT = new Error("oss client undefined");
49
+ function getRandomFilename(req, file, cb) {
50
+ import_crypto.default.pseudoRandomBytes(16, function(err, raw) {
51
+ cb(err, err ? void 0 : `${raw.toString("hex")}${import_path.default.extname(file.originalname)}`);
52
+ });
53
+ }
54
+ class AliYunOssStorage {
55
+ client;
56
+ getDestination;
57
+ getFilename;
58
+ constructor({ config, destination = "", filename = getRandomFilename }) {
59
+ const OSS = require("ali-oss");
60
+ this.client = new OSS(config);
61
+ this.getDestination = typeof destination === "string" ? (req, file, cb) => cb(null, destination) : destination;
62
+ this.getFilename = filename;
63
+ }
64
+ _handleFile(req, file, cb) {
65
+ if (!this.client) {
66
+ return cb(ERROR_NO_CLIENT);
67
+ }
68
+ const getDestination = (0, import_util.promisify)(this.getDestination);
69
+ const getFilename = (0, import_util.promisify)(this.getFilename);
70
+ let size = 0;
71
+ Promise.all([getDestination(req, file), getFilename(req, file)]).then(([destination, filename]) => {
72
+ file.stream.on("data", (chunk) => {
73
+ size += Buffer.byteLength(chunk);
74
+ });
75
+ const options = {};
76
+ if (file.mimetype === "text/plain") {
77
+ options.mime = "text/plain; charset=utf-8";
78
+ }
79
+ return this.client.putStream(`${destination}/${filename}`, file.stream, options);
80
+ }).then((result) => {
81
+ const { url, name } = result;
82
+ const lastSlashIndex = name.lastIndexOf("/");
83
+ const path = name.substr(0, lastSlashIndex);
84
+ cb(null, {
85
+ destination: path,
86
+ filename: name.substr(lastSlashIndex + 1),
87
+ path,
88
+ size,
89
+ url
90
+ });
91
+ }).catch(cb);
92
+ }
93
+ _removeFile(req, file, cb) {
94
+ if (!this.client) {
95
+ return cb(ERROR_NO_CLIENT);
96
+ }
97
+ this.client.delete(file.filename).then((result) => cb(null, result)).catch(cb);
98
+ }
99
+ }
35
100
  class ali_oss_default extends import__.StorageType {
36
101
  static defaults() {
37
102
  return {
@@ -48,8 +113,7 @@ class ali_oss_default extends import__.StorageType {
48
113
  };
49
114
  }
50
115
  make() {
51
- const createAliOssStorage = require("multer-aliyun-oss");
52
- return new createAliOssStorage({
116
+ return new AliYunOssStorage({
53
117
  config: { timeout: 6e5, ...this.storage.options },
54
118
  filename: (0, import_utils.cloudFilenameGetter)(this.storage)
55
119
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-file-manager",
3
- "version": "1.9.25",
3
+ "version": "1.9.26",
4
4
  "displayName": "File manager",
5
5
  "displayName.ru-RU": "Менеджер файлов",
6
6
  "displayName.zh-CN": "文件管理器",
@@ -22,6 +22,7 @@
22
22
  "@types/koa-multer": "^1.0.4",
23
23
  "@types/mime-types": "^3.0.1",
24
24
  "@types/multer": "^1.4.5",
25
+ "ali-oss": "^6.1.0",
25
26
  "antd": "5.x",
26
27
  "axios": "^1.7.0",
27
28
  "cos-nodejs-sdk-v5": "^2.11.14",
@@ -30,7 +31,6 @@
30
31
  "mime-types": "^3.0.1",
31
32
  "mkdirp": "~0.5.4",
32
33
  "multer": "^1.4.5-lts.2",
33
- "multer-aliyun-oss": "2.1.3",
34
34
  "multer-cos": "^1.0.3",
35
35
  "multer-s3": "^3.0.1",
36
36
  "multistream": "^4.1.0",
@@ -54,5 +54,5 @@
54
54
  "Collections",
55
55
  "Collection fields"
56
56
  ],
57
- "gitHead": "263145e2a39b6c3a636168c0bb574c9f44af8398"
57
+ "gitHead": "794e25d4aca20fbc68769ad7b1266860bd45ac5c"
58
58
  }
@@ -1 +0,0 @@
1
- {"name":"multer-aliyun-oss","version":"2.1.3","description":"Multer Storage for AliYun OSS","main":"index.js","scripts":{},"author":"AngusYoung","license":"ISC","repository":{"type":"git","url":"git+https://github.com/ay86/multer-aliyun-oss.git"},"keywords":["multer","storage","aliyun","oss"],"dependencies":{"ali-oss":"^6.1.0"},"_lastModified":"2025-12-12T02:46:41.861Z"}