@nocobase/plugin-file-manager 2.3.0-alpha.1 → 2.3.0-beta.3
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.
- package/dist/client/UseOriginalUrlRadio.d.ts +12 -0
- package/dist/client/index.js +1 -1
- package/dist/client/schemas/storageTypes/ali-oss.d.ts +12 -0
- package/dist/client/schemas/storageTypes/common.d.ts +12 -0
- package/dist/client/schemas/storageTypes/index.d.ts +48 -0
- package/dist/client/schemas/storageTypes/local.d.ts +12 -0
- package/dist/client/schemas/storageTypes/s3.d.ts +12 -0
- package/dist/client/schemas/storageTypes/tx-cos.d.ts +12 -0
- package/dist/client-v2/{229.bd72c2d7aa088310.js → 229.297c431f63a29cb2.js} +1 -1
- package/dist/client-v2/{336.1dd1b32466d0c778.js → 336.04d06f2cdcc3d0b5.js} +1 -1
- package/dist/client-v2/{43.eb45d53ba3e9828b.js → 43.1ec3e5bf1118d239.js} +1 -1
- package/dist/client-v2/{929.d7e783304cc1f236.js → 929.3744119eff70b3a3.js} +1 -1
- package/dist/client-v2/components/PublicAccessField.d.ts +19 -0
- package/dist/client-v2/components/UseOriginalUrlField.d.ts +25 -0
- package/dist/client-v2/components/index.d.ts +2 -0
- package/dist/client-v2/index.d.ts +2 -1
- package/dist/client-v2/index.js +1 -1
- package/dist/externalVersion.js +12 -12
- package/dist/locale/de-DE.json +7 -0
- package/dist/locale/en-US.json +7 -0
- package/dist/locale/es-ES.json +7 -0
- package/dist/locale/fr-FR.json +7 -0
- package/dist/locale/hu-HU.json +7 -0
- package/dist/locale/id-ID.json +7 -0
- package/dist/locale/it-IT.json +7 -0
- package/dist/locale/ja-JP.json +7 -0
- package/dist/locale/ko-KR.json +7 -0
- package/dist/locale/nl-NL.json +7 -0
- package/dist/locale/pt-BR.json +7 -0
- package/dist/locale/ru-RU.json +7 -0
- package/dist/locale/tr-TR.json +7 -0
- package/dist/locale/uk-UA.json +7 -0
- package/dist/locale/vi-VN.json +7 -0
- package/dist/locale/zh-CN.json +7 -0
- package/dist/locale/zh-TW.json +7 -0
- package/dist/node_modules/@aws-sdk/client-s3/package.json +1 -1
- package/dist/node_modules/@aws-sdk/lib-storage/package.json +1 -1
- package/dist/node_modules/@aws-sdk/s3-request-presigner/package.json +1 -1
- package/dist/node_modules/ali-oss/package.json +1 -1
- package/dist/node_modules/cos-nodejs-sdk-v5/package.json +1 -1
- package/dist/node_modules/mime-match/package.json +1 -1
- package/dist/node_modules/mime-types/package.json +1 -1
- package/dist/node_modules/mkdirp/package.json +1 -1
- package/dist/node_modules/url-join/package.json +1 -1
- package/dist/server/actions/attachments.js +9 -1
- package/dist/server/actions/get-file.js +30 -11
- package/dist/server/server.js +8 -7
- package/dist/server/temporary-access.js +2 -1
- package/package.json +2 -2
package/dist/locale/ko-KR.json
CHANGED
|
@@ -34,6 +34,13 @@
|
|
|
34
34
|
"Minimum from 1 byte.": "Minimum from 1 byte.",
|
|
35
35
|
"Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.",
|
|
36
36
|
"Path": "경로",
|
|
37
|
+
"File URL": "파일 URL",
|
|
38
|
+
"NocoBase URL": "NocoBase URL",
|
|
39
|
+
"Original URL": "원본 URL",
|
|
40
|
+
"Allow public access": "공개 액세스 허용",
|
|
41
|
+
"Uses a NocoBase file URL and follows the view permissions configured for the file record.": "NocoBase 파일 URL을 사용하며 파일 레코드에 설정된 보기 권한을 따릅니다.",
|
|
42
|
+
"The URL points directly to the storage service and does not pass through NocoBase.": "URL은 스토리지 서비스를 직접 가리키며 NocoBase를 거치지 않습니다.",
|
|
43
|
+
"When checked, anyone with the file URL can access the file without NocoBase permission checks.": "선택하면 파일 URL을 가진 누구나 NocoBase 권한 검사 없이 파일에 접근할 수 있습니다.",
|
|
37
44
|
"PDF preview failed. Please download the file to preview it.": "PDF 미리보기에 실패했습니다. 파일을 다운로드하여 확인하세요.",
|
|
38
45
|
"PDF preview failed to load the file. If the file is stored on another domain, configure CORS for the external storage to allow this site to read the file.": "PDF 미리보기가 파일을 불러오지 못했습니다. 파일이 다른 도메인에 저장되어 있다면 이 사이트가 파일을 읽을 수 있도록 외부 저장소의 CORS를 설정하세요.",
|
|
39
46
|
"PDF preview resources failed to load. Please refresh the page and check whether plugin static files are deployed correctly.": "PDF 미리보기 리소스를 불러오지 못했습니다. 페이지를 새로고침하고 플러그인 정적 파일이 올바르게 배포되었는지 확인하세요.",
|
package/dist/locale/nl-NL.json
CHANGED
|
@@ -33,6 +33,13 @@
|
|
|
33
33
|
"Minimum from 1 byte.": "Minimum from 1 byte.",
|
|
34
34
|
"Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Meerdere typen gescheiden door een komma, bijvoorbeeld: \"image/*\", \"image/png\", \"image/*, application/pdf\" enz.",
|
|
35
35
|
"Path": "Pad",
|
|
36
|
+
"File URL": "Bestands-URL",
|
|
37
|
+
"NocoBase URL": "NocoBase-URL",
|
|
38
|
+
"Original URL": "Oorspronkelijke URL",
|
|
39
|
+
"Allow public access": "Openbare toegang toestaan",
|
|
40
|
+
"Uses a NocoBase file URL and follows the view permissions configured for the file record.": "Gebruikt een NocoBase-bestands-URL en volgt de weergavemachtigingen die voor het bestandsrecord zijn ingesteld.",
|
|
41
|
+
"The URL points directly to the storage service and does not pass through NocoBase.": "De URL verwijst rechtstreeks naar de opslagservice en loopt niet via NocoBase.",
|
|
42
|
+
"When checked, anyone with the file URL can access the file without NocoBase permission checks.": "Wanneer dit is aangevinkt, kan iedereen met de bestands-URL het bestand openen zonder NocoBase-machtigingscontrole.",
|
|
36
43
|
"PDF preview failed. Please download the file to preview it.": "PDF-voorbeeld mislukt. Download het bestand om het te bekijken.",
|
|
37
44
|
"PDF preview failed to load the file. If the file is stored on another domain, configure CORS for the external storage to allow this site to read the file.": "Het PDF-voorbeeld kon het bestand niet laden. Als het bestand op een ander domein is opgeslagen, configureer dan CORS voor de externe opslag zodat deze site het bestand kan lezen.",
|
|
38
45
|
"PDF preview resources failed to load. Please refresh the page and check whether plugin static files are deployed correctly.": "De PDF-voorbeeldbronnen konden niet worden geladen. Vernieuw de pagina en controleer of de statische pluginbestanden correct zijn geïmplementeerd.",
|
package/dist/locale/pt-BR.json
CHANGED
|
@@ -33,6 +33,13 @@
|
|
|
33
33
|
"Minimum from 1 byte.": "Minimum from 1 byte.",
|
|
34
34
|
"Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.",
|
|
35
35
|
"Path": "Path",
|
|
36
|
+
"File URL": "URL do arquivo",
|
|
37
|
+
"NocoBase URL": "URL do NocoBase",
|
|
38
|
+
"Original URL": "URL original",
|
|
39
|
+
"Allow public access": "Permitir acesso público",
|
|
40
|
+
"Uses a NocoBase file URL and follows the view permissions configured for the file record.": "Usa uma URL de arquivo do NocoBase e segue as permissões de visualização configuradas para o registro do arquivo.",
|
|
41
|
+
"The URL points directly to the storage service and does not pass through NocoBase.": "A URL aponta diretamente para o serviço de armazenamento e não passa pelo NocoBase.",
|
|
42
|
+
"When checked, anyone with the file URL can access the file without NocoBase permission checks.": "Quando marcado, qualquer pessoa com a URL do arquivo pode acessá-lo sem verificações de permissão do NocoBase.",
|
|
36
43
|
"PDF preview failed. Please download the file to preview it.": "A pré-visualização do PDF falhou. Baixe o arquivo para visualizá-lo.",
|
|
37
44
|
"PDF preview failed to load the file. If the file is stored on another domain, configure CORS for the external storage to allow this site to read the file.": "A pré-visualização do PDF não conseguiu carregar o arquivo. Se o arquivo estiver armazenado em outro domínio, configure CORS no armazenamento externo para permitir que este site leia o arquivo.",
|
|
38
45
|
"PDF preview resources failed to load. Please refresh the page and check whether plugin static files are deployed correctly.": "Os recursos de pré-visualização do PDF não foram carregados. Atualize a página e verifique se os arquivos estáticos do plugin foram implantados corretamente.",
|
package/dist/locale/ru-RU.json
CHANGED
|
@@ -33,6 +33,13 @@
|
|
|
33
33
|
"Minimum from 1 byte.": "Minimum from 1 byte.",
|
|
34
34
|
"Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Несколько типов, разделенных запятой, например: \"image/*\", \"image/png\", \"image/*, application/pdf\" и т. д.",
|
|
35
35
|
"Path": "Путь",
|
|
36
|
+
"File URL": "URL файла",
|
|
37
|
+
"NocoBase URL": "URL NocoBase",
|
|
38
|
+
"Original URL": "Исходный URL",
|
|
39
|
+
"Allow public access": "Разрешить публичный доступ",
|
|
40
|
+
"Uses a NocoBase file URL and follows the view permissions configured for the file record.": "Использует URL файла NocoBase и учитывает разрешения на просмотр, настроенные для записи файла.",
|
|
41
|
+
"The URL points directly to the storage service and does not pass through NocoBase.": "URL указывает непосредственно на службу хранения и не проходит через NocoBase.",
|
|
42
|
+
"When checked, anyone with the file URL can access the file without NocoBase permission checks.": "Если флажок установлен, любой, у кого есть URL файла, может получить к нему доступ без проверки разрешений NocoBase.",
|
|
36
43
|
"PDF preview failed. Please download the file to preview it.": "Не удалось выполнить предварительный просмотр PDF. Скачайте файл, чтобы просмотреть его.",
|
|
37
44
|
"PDF preview failed to load the file. If the file is stored on another domain, configure CORS for the external storage to allow this site to read the file.": "Предварительный просмотр PDF не смог загрузить файл. Если файл хранится на другом домене, настройте CORS для внешнего хранилища, чтобы разрешить этому сайту читать файл.",
|
|
38
45
|
"PDF preview resources failed to load. Please refresh the page and check whether plugin static files are deployed correctly.": "Не удалось загрузить ресурсы предварительного просмотра PDF. Обновите страницу и проверьте, правильно ли развернуты статические файлы плагина.",
|
package/dist/locale/tr-TR.json
CHANGED
|
@@ -33,6 +33,13 @@
|
|
|
33
33
|
"Minimum from 1 byte.": "Minimum from 1 byte.",
|
|
34
34
|
"Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.",
|
|
35
35
|
"Path": "Path",
|
|
36
|
+
"File URL": "Dosya URL'si",
|
|
37
|
+
"NocoBase URL": "NocoBase URL",
|
|
38
|
+
"Original URL": "Orijinal URL",
|
|
39
|
+
"Allow public access": "Herkese açık erişime izin ver",
|
|
40
|
+
"Uses a NocoBase file URL and follows the view permissions configured for the file record.": "Bir NocoBase dosya URL'si kullanır ve dosya kaydı için yapılandırılan görüntüleme izinlerini izler.",
|
|
41
|
+
"The URL points directly to the storage service and does not pass through NocoBase.": "URL doğrudan depolama hizmetini gösterir ve NocoBase üzerinden geçmez.",
|
|
42
|
+
"When checked, anyone with the file URL can access the file without NocoBase permission checks.": "İşaretlendiğinde, dosya URL'sine sahip herkes NocoBase izin kontrolleri olmadan dosyaya erişebilir.",
|
|
36
43
|
"PDF preview failed. Please download the file to preview it.": "PDF önizlemesi başarısız oldu. Görüntülemek için lütfen dosyayı indirin.",
|
|
37
44
|
"PDF preview failed to load the file. If the file is stored on another domain, configure CORS for the external storage to allow this site to read the file.": "PDF önizlemesi dosyayı yükleyemedi. Dosya başka bir alan adında saklanıyorsa, bu sitenin dosyayı okuyabilmesi için harici depolamada CORS yapılandırın.",
|
|
38
45
|
"PDF preview resources failed to load. Please refresh the page and check whether plugin static files are deployed correctly.": "PDF önizleme kaynakları yüklenemedi. Lütfen sayfayı yenileyin ve eklenti statik dosyalarının doğru dağıtıldığını kontrol edin.",
|
package/dist/locale/uk-UA.json
CHANGED
|
@@ -33,6 +33,13 @@
|
|
|
33
33
|
"Minimum from 1 byte.": "Minimum from 1 byte.",
|
|
34
34
|
"Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.",
|
|
35
35
|
"Path": "Path",
|
|
36
|
+
"File URL": "URL-адреса файлу",
|
|
37
|
+
"NocoBase URL": "URL NocoBase",
|
|
38
|
+
"Original URL": "Оригінальна URL-адреса",
|
|
39
|
+
"Allow public access": "Дозволити публічний доступ",
|
|
40
|
+
"Uses a NocoBase file URL and follows the view permissions configured for the file record.": "Використовує URL-адресу файлу NocoBase та враховує дозволи на перегляд, налаштовані для запису файлу.",
|
|
41
|
+
"The URL points directly to the storage service and does not pass through NocoBase.": "URL-адреса вказує безпосередньо на службу зберігання й не проходить через NocoBase.",
|
|
42
|
+
"When checked, anyone with the file URL can access the file without NocoBase permission checks.": "Якщо позначено, будь-хто, хто має URL-адресу файлу, може отримати до нього доступ без перевірки дозволів NocoBase.",
|
|
36
43
|
"PDF preview failed. Please download the file to preview it.": "Не вдалося попередньо переглянути PDF. Завантажте файл, щоб переглянути його.",
|
|
37
44
|
"PDF preview failed to load the file. If the file is stored on another domain, configure CORS for the external storage to allow this site to read the file.": "Попередній перегляд PDF не зміг завантажити файл. Якщо файл зберігається в іншому домені, налаштуйте CORS для зовнішнього сховища, щоб дозволити цьому сайту читати файл.",
|
|
38
45
|
"PDF preview resources failed to load. Please refresh the page and check whether plugin static files are deployed correctly.": "Не вдалося завантажити ресурси попереднього перегляду PDF. Оновіть сторінку та перевірте, чи правильно розгорнуто статичні файли плагіна.",
|
package/dist/locale/vi-VN.json
CHANGED
|
@@ -28,6 +28,13 @@
|
|
|
28
28
|
"Minimum from 1 byte.": "Minimum from 1 byte.",
|
|
29
29
|
"Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.",
|
|
30
30
|
"Path": "Path",
|
|
31
|
+
"File URL": "URL tệp",
|
|
32
|
+
"NocoBase URL": "URL NocoBase",
|
|
33
|
+
"Original URL": "URL gốc",
|
|
34
|
+
"Allow public access": "Cho phép truy cập công khai",
|
|
35
|
+
"Uses a NocoBase file URL and follows the view permissions configured for the file record.": "Sử dụng URL tệp NocoBase và tuân theo quyền xem được cấu hình cho bản ghi tệp.",
|
|
36
|
+
"The URL points directly to the storage service and does not pass through NocoBase.": "URL trỏ trực tiếp đến dịch vụ lưu trữ và không đi qua NocoBase.",
|
|
37
|
+
"When checked, anyone with the file URL can access the file without NocoBase permission checks.": "Khi được chọn, bất kỳ ai có URL tệp đều có thể truy cập tệp mà không cần NocoBase kiểm tra quyền.",
|
|
31
38
|
"PDF preview failed. Please download the file to preview it.": "Xem trước PDF thất bại. Vui lòng tải tệp xuống để xem.",
|
|
32
39
|
"PDF preview failed to load the file. If the file is stored on another domain, configure CORS for the external storage to allow this site to read the file.": "Xem trước PDF không tải được tệp. Nếu tệp được lưu trữ trên tên miền khác, hãy cấu hình CORS cho bộ nhớ ngoài để cho phép trang này đọc tệp.",
|
|
33
40
|
"PDF preview resources failed to load. Please refresh the page and check whether plugin static files are deployed correctly.": "Không tải được tài nguyên xem trước PDF. Vui lòng làm mới trang và kiểm tra xem các tệp tĩnh của plugin đã được triển khai đúng chưa.",
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -34,6 +34,13 @@
|
|
|
34
34
|
"Minimum from 1 byte.": "最小为 1 字节。",
|
|
35
35
|
"Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "多个类型用逗号分隔,例如:\"image/*\", \"image/png\", \"image/*, application/pdf\" 等。",
|
|
36
36
|
"Path": "路径",
|
|
37
|
+
"File URL": "文件 URL",
|
|
38
|
+
"NocoBase URL": "NocoBase URL",
|
|
39
|
+
"Original URL": "原始 URL",
|
|
40
|
+
"Allow public access": "允许公开访问",
|
|
41
|
+
"Uses a NocoBase file URL and follows the view permissions configured for the file record.": "使用 NocoBase 文件 URL,并遵循文件记录配置的查看权限。",
|
|
42
|
+
"The URL points directly to the storage service and does not pass through NocoBase.": "该 URL 直接指向存储服务,不会经过 NocoBase。",
|
|
43
|
+
"When checked, anyone with the file URL can access the file without NocoBase permission checks.": "勾选后,任何获取到文件 URL 的用户都可以访问文件,不会经过 NocoBase 权限检查。",
|
|
37
44
|
"PDF preview failed. Please download the file to preview it.": "PDF 预览失败,请下载文件后查看。",
|
|
38
45
|
"PDF preview failed to load the file. If the file is stored on another domain, configure CORS for the external storage to allow this site to read the file.": "PDF 预览加载文件失败。如果文件存储在其他域名,请为外部存储配置 CORS,允许当前站点读取文件。",
|
|
39
46
|
"PDF preview resources failed to load. Please refresh the page and check whether plugin static files are deployed correctly.": "PDF 预览资源加载失败,请刷新页面并检查插件静态文件是否已正确部署。",
|
package/dist/locale/zh-TW.json
CHANGED
|
@@ -33,6 +33,13 @@
|
|
|
33
33
|
"Minimum from 1 byte.": "Minimum from 1 byte.",
|
|
34
34
|
"Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.": "Multi-types separated with comma, for example: \"image/*\", \"image/png\", \"image/*, application/pdf\" etc.",
|
|
35
35
|
"Path": "Path",
|
|
36
|
+
"File URL": "檔案 URL",
|
|
37
|
+
"NocoBase URL": "NocoBase URL",
|
|
38
|
+
"Original URL": "原始 URL",
|
|
39
|
+
"Allow public access": "允許公開存取",
|
|
40
|
+
"Uses a NocoBase file URL and follows the view permissions configured for the file record.": "使用 NocoBase 檔案 URL,並遵循檔案記錄所設定的檢視權限。",
|
|
41
|
+
"The URL points directly to the storage service and does not pass through NocoBase.": "該 URL 直接指向儲存服務,不會經過 NocoBase。",
|
|
42
|
+
"When checked, anyone with the file URL can access the file without NocoBase permission checks.": "勾選後,任何取得檔案 URL 的使用者都可以存取檔案,不會經過 NocoBase 權限檢查。",
|
|
36
43
|
"PDF preview failed. Please download the file to preview it.": "PDF 預覽失敗,請下載檔案後查看。",
|
|
37
44
|
"PDF preview failed to load the file. If the file is stored on another domain, configure CORS for the external storage to allow this site to read the file.": "PDF 預覽載入檔案失敗。如果檔案儲存在其他網域,請為外部儲存設定 CORS,允許目前網站讀取檔案。",
|
|
38
45
|
"PDF preview resources failed to load. Please refresh the page and check whether plugin static files are deployed correctly.": "PDF 預覽資源載入失敗,請重新整理頁面並檢查外掛靜態檔案是否已正確部署。",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.750.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3","test":"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.750.0","@aws-sdk/credential-provider-node":"3.750.0","@aws-sdk/middleware-bucket-endpoint":"3.734.0","@aws-sdk/middleware-expect-continue":"3.734.0","@aws-sdk/middleware-flexible-checksums":"3.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-location-constraint":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-sdk-s3":"3.750.0","@aws-sdk/middleware-ssec":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/signature-v4-multi-region":"3.750.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@aws-sdk/xml-builder":"3.734.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/eventstream-serde-browser":"^4.0.1","@smithy/eventstream-serde-config-resolver":"^4.0.1","@smithy/eventstream-serde-node":"^4.0.1","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-blob-browser":"^4.0.1","@smithy/hash-node":"^4.0.1","@smithy/hash-stream-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/md5-js":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-stream":"^4.1.1","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.2","tslib":"^2.6.2"},"devDependencies":{"@aws-sdk/signature-v4-crt":"3.750.0","@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.2.2"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"},"_lastModified":"2026-
|
|
1
|
+
{"name":"@aws-sdk/client-s3","description":"AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native","version":"3.750.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-s3","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo s3","test":"yarn g:vitest run","test:browser":"node ./test/browser-build/esbuild && yarn g:vitest run -c vitest.config.browser.ts","test:browser:watch":"node ./test/browser-build/esbuild && yarn g:vitest watch -c vitest.config.browser.ts","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts && yarn test:browser","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha1-browser":"5.2.0","@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.750.0","@aws-sdk/credential-provider-node":"3.750.0","@aws-sdk/middleware-bucket-endpoint":"3.734.0","@aws-sdk/middleware-expect-continue":"3.734.0","@aws-sdk/middleware-flexible-checksums":"3.750.0","@aws-sdk/middleware-host-header":"3.734.0","@aws-sdk/middleware-location-constraint":"3.734.0","@aws-sdk/middleware-logger":"3.734.0","@aws-sdk/middleware-recursion-detection":"3.734.0","@aws-sdk/middleware-sdk-s3":"3.750.0","@aws-sdk/middleware-ssec":"3.734.0","@aws-sdk/middleware-user-agent":"3.750.0","@aws-sdk/region-config-resolver":"3.734.0","@aws-sdk/signature-v4-multi-region":"3.750.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-endpoints":"3.743.0","@aws-sdk/util-user-agent-browser":"3.734.0","@aws-sdk/util-user-agent-node":"3.750.0","@aws-sdk/xml-builder":"3.734.0","@smithy/config-resolver":"^4.0.1","@smithy/core":"^3.1.4","@smithy/eventstream-serde-browser":"^4.0.1","@smithy/eventstream-serde-config-resolver":"^4.0.1","@smithy/eventstream-serde-node":"^4.0.1","@smithy/fetch-http-handler":"^5.0.1","@smithy/hash-blob-browser":"^4.0.1","@smithy/hash-node":"^4.0.1","@smithy/hash-stream-node":"^4.0.1","@smithy/invalid-dependency":"^4.0.1","@smithy/md5-js":"^4.0.1","@smithy/middleware-content-length":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/middleware-retry":"^4.0.6","@smithy/middleware-serde":"^4.0.2","@smithy/middleware-stack":"^4.0.1","@smithy/node-config-provider":"^4.0.1","@smithy/node-http-handler":"^4.0.2","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","@smithy/url-parser":"^4.0.1","@smithy/util-base64":"^4.0.0","@smithy/util-body-length-browser":"^4.0.0","@smithy/util-body-length-node":"^4.0.0","@smithy/util-defaults-mode-browser":"^4.0.6","@smithy/util-defaults-mode-node":"^4.0.6","@smithy/util-endpoints":"^3.0.1","@smithy/util-middleware":"^4.0.1","@smithy/util-retry":"^4.0.1","@smithy/util-stream":"^4.1.1","@smithy/util-utf8":"^4.0.0","@smithy/util-waiter":"^4.0.2","tslib":"^2.6.2"},"devDependencies":{"@aws-sdk/signature-v4-crt":"3.750.0","@tsconfig/node18":"18.2.4","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.2.2"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-s3","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-s3"},"_lastModified":"2026-08-22T03:11:36.488Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@aws-sdk/lib-storage","version":"3.750.0","description":"Storage higher order operation","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline lib-storage","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","test":"yarn g:vitest run","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts --mode development","test:watch":"yarn g:vitest watch","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts"},"engines":{"node":">=18.0.0"},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@smithy/abort-controller":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/smithy-client":"^4.1.5","buffer":"5.6.0","events":"3.3.0","stream-browserify":"3.0.0","tslib":"^2.6.2"},"peerDependencies":{"@aws-sdk/client-s3":"^3.750.0"},"devDependencies":{"@aws-sdk/client-s3":"3.750.0","@smithy/types":"^4.1.0","@tsconfig/recommended":"1.0.1","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.2.2","web-streams-polyfill":"3.2.1"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser","fs":false,"stream":"stream-browserify"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"files":["dist-*/**"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/lib/lib-storage","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"lib/lib-storage"},"_lastModified":"2026-
|
|
1
|
+
{"name":"@aws-sdk/lib-storage","version":"3.750.0","description":"Storage higher order operation","main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline lib-storage","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","test":"yarn g:vitest run","test:e2e":"yarn g:vitest run -c vitest.config.e2e.ts --mode development","test:watch":"yarn g:vitest watch","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.ts"},"engines":{"node":">=18.0.0"},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@smithy/abort-controller":"^4.0.1","@smithy/middleware-endpoint":"^4.0.5","@smithy/smithy-client":"^4.1.5","buffer":"5.6.0","events":"3.3.0","stream-browserify":"3.0.0","tslib":"^2.6.2"},"peerDependencies":{"@aws-sdk/client-s3":"^3.750.0"},"devDependencies":{"@aws-sdk/client-s3":"3.750.0","@smithy/types":"^4.1.0","@tsconfig/recommended":"1.0.1","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.2.2","web-streams-polyfill":"3.2.1"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser","fs":false,"stream":"stream-browserify"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"files":["dist-*/**"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/lib/lib-storage","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"lib/lib-storage"},"_lastModified":"2026-08-22T03:11:37.640Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@aws-sdk/s3-request-presigner","version":"3.750.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline s3-request-presigner","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-sdk/signature-v4-multi-region":"3.750.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-format-url":"3.734.0","@smithy/middleware-endpoint":"^4.0.5","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","tslib":"^2.6.2"},"devDependencies":{"@aws-sdk/client-s3":"3.750.0","@smithy/hash-node":"^4.0.1","@tsconfig/recommended":"1.0.1","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.2.2"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/s3-request-presigner","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/s3-request-presigner"},"_lastModified":"2026-
|
|
1
|
+
{"name":"@aws-sdk/s3-request-presigner","version":"3.750.0","scripts":{"build":"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline s3-request-presigner","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","test":"yarn g:vitest run","test:watch":"yarn g:vitest watch"},"main":"./dist-cjs/index.js","module":"./dist-es/index.js","types":"./dist-types/index.d.ts","author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","dependencies":{"@aws-sdk/signature-v4-multi-region":"3.750.0","@aws-sdk/types":"3.734.0","@aws-sdk/util-format-url":"3.734.0","@smithy/middleware-endpoint":"^4.0.5","@smithy/protocol-http":"^5.0.1","@smithy/smithy-client":"^4.1.5","@smithy/types":"^4.1.0","tslib":"^2.6.2"},"devDependencies":{"@aws-sdk/client-s3":"3.750.0","@smithy/hash-node":"^4.0.1","@tsconfig/recommended":"1.0.1","@types/node":"^18.19.69","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typescript":"~5.2.2"},"engines":{"node":">=18.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/s3-request-presigner","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"packages/s3-request-presigner"},"_lastModified":"2026-08-22T03:11:38.085Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"ali-oss","version":"6.20.0","description":"aliyun oss(object storage service) node client","main":"./lib/client.js","files":["lib","shims","dist"],"browser":{"./lib/client.js":"./dist/aliyun-oss-sdk.js","mime":"mime/lite","urllib":"./shims/xhr.js","utility":"./shims/utility.js","crypto":"./shims/crypto/crypto.js","debug":"./shims/debug","fs":false,"child_process":false,"is-type-of":"./shims/is-type-of.js"},"scripts":{"build-change-log":"standard-version","test":"npm run tsc && mocha -t 120000 -r should -r dotenv/config test/node/*.test.js test/node/**/*.test.js","test-cov":"npm run tsc && nyc --reporter=lcov node_modules/.bin/_mocha -t 120000 -r should test/node/*.test.js test/node/**/*.test.js","jshint":"jshint .","build-test":"MINIFY=1 node browser-build.js > test/browser/build/aliyun-oss-sdk.min.js && node -r dotenv/config task/browser-test-build.js > test/browser/build/tests.js","browser-test":"npm run build-test && karma start","build-dist":"npm run tsc && node browser-build.js > dist/aliyun-oss-sdk.js && MINIFY=1 node browser-build.js > dist/aliyun-oss-sdk.min.js","publish-to-npm":"node publish-npm-check.js && npm publish","publish-to-cdn":"node publish.js","snyk-protect":"snyk-protect","lint-staged":"lint-staged","detect-secrets":"node task/detect-secrets","tsc":"npm run tsc:clean && npm run tsc:build","tsc:build":"tsc -b tsconfig.json tsconfig-cjs.json","tsc:watch":"tsc -b tsconfig.json tsconfig-cjs.json --watch","tsc:clean":"tsc -b tsconfig.json tsconfig-cjs.json --clean ","prepare":"husky install"},"git-pre-hooks":{"pre-release":"npm run build-dist","post-release":["npm run publish-to-npm","npm run publish-to-cdn"]},"homepage":"https://github.com/ali-sdk/ali-oss","bugs":{"url":"https://github.com/ali-sdk/ali-oss/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"repository":{"type":"git","url":"https://github.com/ali-sdk/ali-oss.git"},"keywords":["oss","client","file","aliyun"],"author":"dead_horse","license":"MIT","engines":{"node":">=8"},"devDependencies":{"@babel/core":"^7.11.6","@babel/plugin-transform-regenerator":"^7.10.4","@babel/plugin-transform-runtime":"^7.11.5","@babel/preset-env":"^7.11.5","@babel/runtime":"^7.11.2","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^16.2.4","@octokit/core":"^5.0.0","@semantic-release/exec":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^10.0.5","@snyk/protect":"^1.1196.0","@types/node":"^14.0.12","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","aliasify":"^2.0.0","axios":"0.27.2","babelify":"^10.0.0","beautify-benchmark":"^0.2.4","benchmark":"^2.1.1","bluebird":"^3.1.5","browserify":"^17.0.0","core-js":"^3.6.5","crypto-js":"^3.1.9-1","dotenv":"^8.2.0","eslint":"^8.44.0","eslint-config-airbnb":"^19.0.4","eslint-config-ali":"^13.0.0","eslint-config-prettier":"^8.8.0","eslint-plugin-import":"^2.21.1","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-prettier":"^4.2.1","filereader":"^0.10.3","form-data":"^4.0.0","git-pre-hooks":"^1.2.0","husky":"^7.0.4","immediate":"^3.3.0","karma":"^6.3.4","karma-browserify":"^8.1.0","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-ie-launcher":"^1.0.0","karma-mocha":"^2.0.1","karma-safari-launcher":"^1.0.0","lint-staged":"^12.4.1","mm":"^2.0.0","mocha":"^9.1.2","nyc":"^15.1.0","prettier":"^3.0.0","promise-polyfill":"^6.0.2","puppeteer":"19.0.0","semantic-release":"^21.1.1","should":"^11.0.0","sinon":"^15.2.0","standard-version":"^9.3.1","stream-equal":"^1.1.0","timemachine":"^0.3.0","typescript":"^3.9.5","uglify-js":"^3.14.2","watchify":"^4.0.0"},"dependencies":{"address":"^1.2.2","agentkeepalive":"^3.4.1","bowser":"^1.6.0","copy-to":"^2.0.1","dateformat":"^2.0.0","debug":"^4.3.4","destroy":"^1.0.4","end-or-error":"^1.0.1","get-ready":"^1.0.0","humanize-ms":"^1.2.0","is-type-of":"^1.4.0","js-base64":"^2.5.2","jstoxml":"^2.0.0","lodash":"^4.17.21","merge-descriptors":"^1.0.1","mime":"^2.4.5","platform":"^1.3.1","pump":"^3.0.0","qs":"^6.4.0","sdk-base":"^2.0.1","stream-http":"2.8.2","stream-wormhole":"^1.0.4","urllib":"2.41.0","utility":"^1.18.0","xml2js":"^0.6.2"},"snyk":true,"lint-staged":{"**/!(dist)/*":["npm run detect-secrets --"],"**/*.{js,ts}":["eslint --cache --fix --ext .js,.ts","prettier --write","git add"]},"_lastModified":"2026-
|
|
1
|
+
{"name":"ali-oss","version":"6.20.0","description":"aliyun oss(object storage service) node client","main":"./lib/client.js","files":["lib","shims","dist"],"browser":{"./lib/client.js":"./dist/aliyun-oss-sdk.js","mime":"mime/lite","urllib":"./shims/xhr.js","utility":"./shims/utility.js","crypto":"./shims/crypto/crypto.js","debug":"./shims/debug","fs":false,"child_process":false,"is-type-of":"./shims/is-type-of.js"},"scripts":{"build-change-log":"standard-version","test":"npm run tsc && mocha -t 120000 -r should -r dotenv/config test/node/*.test.js test/node/**/*.test.js","test-cov":"npm run tsc && nyc --reporter=lcov node_modules/.bin/_mocha -t 120000 -r should test/node/*.test.js test/node/**/*.test.js","jshint":"jshint .","build-test":"MINIFY=1 node browser-build.js > test/browser/build/aliyun-oss-sdk.min.js && node -r dotenv/config task/browser-test-build.js > test/browser/build/tests.js","browser-test":"npm run build-test && karma start","build-dist":"npm run tsc && node browser-build.js > dist/aliyun-oss-sdk.js && MINIFY=1 node browser-build.js > dist/aliyun-oss-sdk.min.js","publish-to-npm":"node publish-npm-check.js && npm publish","publish-to-cdn":"node publish.js","snyk-protect":"snyk-protect","lint-staged":"lint-staged","detect-secrets":"node task/detect-secrets","tsc":"npm run tsc:clean && npm run tsc:build","tsc:build":"tsc -b tsconfig.json tsconfig-cjs.json","tsc:watch":"tsc -b tsconfig.json tsconfig-cjs.json --watch","tsc:clean":"tsc -b tsconfig.json tsconfig-cjs.json --clean ","prepare":"husky install"},"git-pre-hooks":{"pre-release":"npm run build-dist","post-release":["npm run publish-to-npm","npm run publish-to-cdn"]},"homepage":"https://github.com/ali-sdk/ali-oss","bugs":{"url":"https://github.com/ali-sdk/ali-oss/issues"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"repository":{"type":"git","url":"https://github.com/ali-sdk/ali-oss.git"},"keywords":["oss","client","file","aliyun"],"author":"dead_horse","license":"MIT","engines":{"node":">=8"},"devDependencies":{"@babel/core":"^7.11.6","@babel/plugin-transform-regenerator":"^7.10.4","@babel/plugin-transform-runtime":"^7.11.5","@babel/preset-env":"^7.11.5","@babel/runtime":"^7.11.2","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^16.2.4","@octokit/core":"^5.0.0","@semantic-release/exec":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^10.0.5","@snyk/protect":"^1.1196.0","@types/node":"^14.0.12","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","aliasify":"^2.0.0","axios":"0.27.2","babelify":"^10.0.0","beautify-benchmark":"^0.2.4","benchmark":"^2.1.1","bluebird":"^3.1.5","browserify":"^17.0.0","core-js":"^3.6.5","crypto-js":"^3.1.9-1","dotenv":"^8.2.0","eslint":"^8.44.0","eslint-config-airbnb":"^19.0.4","eslint-config-ali":"^13.0.0","eslint-config-prettier":"^8.8.0","eslint-plugin-import":"^2.21.1","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-prettier":"^4.2.1","filereader":"^0.10.3","form-data":"^4.0.0","git-pre-hooks":"^1.2.0","husky":"^7.0.4","immediate":"^3.3.0","karma":"^6.3.4","karma-browserify":"^8.1.0","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-ie-launcher":"^1.0.0","karma-mocha":"^2.0.1","karma-safari-launcher":"^1.0.0","lint-staged":"^12.4.1","mm":"^2.0.0","mocha":"^9.1.2","nyc":"^15.1.0","prettier":"^3.0.0","promise-polyfill":"^6.0.2","puppeteer":"19.0.0","semantic-release":"^21.1.1","should":"^11.0.0","sinon":"^15.2.0","standard-version":"^9.3.1","stream-equal":"^1.1.0","timemachine":"^0.3.0","typescript":"^3.9.5","uglify-js":"^3.14.2","watchify":"^4.0.0"},"dependencies":{"address":"^1.2.2","agentkeepalive":"^3.4.1","bowser":"^1.6.0","copy-to":"^2.0.1","dateformat":"^2.0.0","debug":"^4.3.4","destroy":"^1.0.4","end-or-error":"^1.0.1","get-ready":"^1.0.0","humanize-ms":"^1.2.0","is-type-of":"^1.4.0","js-base64":"^2.5.2","jstoxml":"^2.0.0","lodash":"^4.17.21","merge-descriptors":"^1.0.1","mime":"^2.4.5","platform":"^1.3.1","pump":"^3.0.0","qs":"^6.4.0","sdk-base":"^2.0.1","stream-http":"2.8.2","stream-wormhole":"^1.0.4","urllib":"2.41.0","utility":"^1.18.0","xml2js":"^0.6.2"},"snyk":true,"lint-staged":{"**/!(dist)/*":["npm run detect-secrets --"],"**/*.{js,ts}":["eslint --cache --fix --ext .js,.ts","prettier --write","git add"]},"_lastModified":"2026-08-22T03:11:34.723Z"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cos-nodejs-sdk-v5","version":"2.12.6","description":"cos nodejs sdk v5","main":"index.js","types":"index.d.ts","scripts":{"prettier":"prettier --write sdk demo/demo.js test/test.js index.d.ts","demo":"node demo/demo.js","demo-sts":"node demo/demo-sts.js","demo-sts-scope":"node demo/demo-sts-scope.js","test":"mocha test/test.js","cov":"istanbul cover _mocha -- -u exports 'test/test.js'","nyc":"nyc --reporter=clover --reporter=cobertura mocha --reporter xunit --reporter-options output=mocha.xml test/test.js","csp":"mocha test/csp.js"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-nodejs-sdk-v5.git"},"keywords":["tencent","tencent cloud","qcloud","cos","cos-sdk"],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-nodejs-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-nodejs-sdk-v5#readme","dependencies":{"conf":"^9.0.0","fast-xml-parser":"4.2.5","mime-types":"^2.1.24","request":"^2.88.2"},"devDependencies":{"@types/node":"^14.14.20","batch":"^0.6.1","crc64-ecma182.js":"^1.0.0","mocha":"^4.0.1","nyc":"^15.1.0","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.0"},"engines":{"node":">= 6"},"_lastModified":"2026-
|
|
1
|
+
{"name":"cos-nodejs-sdk-v5","version":"2.12.6","description":"cos nodejs sdk v5","main":"index.js","types":"index.d.ts","scripts":{"prettier":"prettier --write sdk demo/demo.js test/test.js index.d.ts","demo":"node demo/demo.js","demo-sts":"node demo/demo-sts.js","demo-sts-scope":"node demo/demo-sts-scope.js","test":"mocha test/test.js","cov":"istanbul cover _mocha -- -u exports 'test/test.js'","nyc":"nyc --reporter=clover --reporter=cobertura mocha --reporter xunit --reporter-options output=mocha.xml test/test.js","csp":"mocha test/csp.js"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-nodejs-sdk-v5.git"},"keywords":["tencent","tencent cloud","qcloud","cos","cos-sdk"],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-nodejs-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-nodejs-sdk-v5#readme","dependencies":{"conf":"^9.0.0","fast-xml-parser":"4.2.5","mime-types":"^2.1.24","request":"^2.88.2"},"devDependencies":{"@types/node":"^14.14.20","batch":"^0.6.1","crc64-ecma182.js":"^1.0.0","mocha":"^4.0.1","nyc":"^15.1.0","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.0"},"engines":{"node":">= 6"},"_lastModified":"2026-08-22T03:11:41.722Z"}
|
|
@@ -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":"2026-
|
|
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":"2026-08-22T03:11:29.750Z"}
|
|
@@ -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":"2026-
|
|
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":"2026-08-22T03:11:30.063Z"}
|
|
@@ -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":"2026-
|
|
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":"2026-08-22T03:11:35.153Z"}
|
|
@@ -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":"2026-
|
|
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":"2026-08-22T03:11:29.853Z"}
|
|
@@ -46,7 +46,15 @@ var import_utils = require("@nocobase/utils");
|
|
|
46
46
|
var import__ = __toESM(require(".."));
|
|
47
47
|
var import_constants = require("../../constants");
|
|
48
48
|
var import_local = require("../storages/local");
|
|
49
|
-
const ACTIVE_CONTENT_MIMETYPES = /* @__PURE__ */ new Set([
|
|
49
|
+
const ACTIVE_CONTENT_MIMETYPES = /* @__PURE__ */ new Set([
|
|
50
|
+
"application/pdf",
|
|
51
|
+
"application/xhtml+xml",
|
|
52
|
+
"application/xml",
|
|
53
|
+
"application/xslt+xml",
|
|
54
|
+
"image/svg+xml",
|
|
55
|
+
"text/html",
|
|
56
|
+
"text/xml"
|
|
57
|
+
]);
|
|
50
58
|
function matchesMimePattern(mimetype, pattern = "*") {
|
|
51
59
|
const normalizedPattern = pattern.toString().trim();
|
|
52
60
|
if (!normalizedPattern || normalizedPattern === "*") {
|
|
@@ -35,8 +35,16 @@ var import_temporary_access = require("../temporary-access");
|
|
|
35
35
|
var import_utils = require("../utils");
|
|
36
36
|
var import_resolve_file_access_filter = require("../resolve-file-access-filter");
|
|
37
37
|
const GET_FILE_ACTION = "getFile";
|
|
38
|
+
function preserveSubAppInLocalURL(url, appName) {
|
|
39
|
+
if (!appName || appName === "main" || !url.startsWith("/") || url.startsWith("//")) {
|
|
40
|
+
return url;
|
|
41
|
+
}
|
|
42
|
+
const [urlWithoutHash, hash] = url.split("#", 2);
|
|
43
|
+
const separator = urlWithoutHash.includes("?") ? "&" : "?";
|
|
44
|
+
return `${urlWithoutHash}${separator}__appName=${encodeURIComponent(appName)}${hash ? `#${hash}` : ""}`;
|
|
45
|
+
}
|
|
38
46
|
async function getFile(ctx, next) {
|
|
39
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
47
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
40
48
|
const collection = ctx.dataSource.collectionManager.getCollection(ctx.action.resourceName);
|
|
41
49
|
if (!collection || collection.name !== "attachments" && ((_a = collection.options) == null ? void 0 : _a.template) !== "file") {
|
|
42
50
|
return ctx.throw(404);
|
|
@@ -82,13 +90,10 @@ async function getFile(ctx, next) {
|
|
|
82
90
|
preview: Boolean(ctx.state.fileAccess.preview)
|
|
83
91
|
} : null;
|
|
84
92
|
const authorizedByExtension = fileAccessParams && !temporaryAccess ? await plugin.authorizeFileAccess(ctx, fileAccessParams) : false;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
filter
|
|
88
|
-
|
|
89
|
-
const file = await ctx.getCurrentRepository().findOne({
|
|
90
|
-
filter,
|
|
91
|
-
fields: ["id", "storageId", "path", "filename", "extname", "mimetype", "url", "meta"],
|
|
93
|
+
const fields = ["id", "storageId", "path", "filename", "extname", "mimetype", "url", "meta"];
|
|
94
|
+
let file = await ctx.getCurrentRepository().findOne({
|
|
95
|
+
filter: { id },
|
|
96
|
+
fields,
|
|
92
97
|
context: ctx
|
|
93
98
|
});
|
|
94
99
|
const storageId = (0, import_utils.getFileRecordValue)(file, "storageId");
|
|
@@ -98,18 +103,32 @@ async function getFile(ctx, next) {
|
|
|
98
103
|
if (temporaryAccessPayload && String(temporaryAccessPayload.storageId) !== String(storageId)) {
|
|
99
104
|
return ctx.throw(403);
|
|
100
105
|
}
|
|
101
|
-
if (((
|
|
106
|
+
if (((_e = ctx.state.fileAccess) == null ? void 0 : _e.extname) && ctx.state.fileAccess.extname !== (0, import_utils.getFileRecordValue)(file, "extname")) {
|
|
102
107
|
return ctx.throw(404);
|
|
103
108
|
}
|
|
109
|
+
const publicAccess = Boolean((_g = (_f = plugin.storagesCache.get(storageId)) == null ? void 0 : _f.options) == null ? void 0 : _g.public);
|
|
110
|
+
const loggedInAttachmentAccess = collection.name === "attachments" && Boolean(ctx.state.currentUser);
|
|
111
|
+
if (!temporaryAccess && !publicAccess && !loggedInAttachmentAccess && !authorizedByExtension && ctx.app.options.acl !== false && ((_h = ctx.dataSource.options) == null ? void 0 : _h.useACL) !== false && ((_i = ctx.dataSource.options) == null ? void 0 : _i.acl) !== false) {
|
|
112
|
+
const filter = await (0, import_resolve_file_access_filter.resolveFileAccessFilter)(ctx, collection, { id });
|
|
113
|
+
file = await ctx.getCurrentRepository().findOne({
|
|
114
|
+
filter,
|
|
115
|
+
fields,
|
|
116
|
+
context: ctx
|
|
117
|
+
});
|
|
118
|
+
if (!file) {
|
|
119
|
+
return ctx.throw(404);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
104
122
|
const download = !temporaryAccess && ctx.method === "GET" && ctx.query.download === "1";
|
|
105
|
-
const preview = download ? false : temporaryAccess ? false : Boolean((
|
|
123
|
+
const preview = download ? false : temporaryAccess ? false : Boolean((_j = ctx.state.fileAccess) == null ? void 0 : _j.preview);
|
|
106
124
|
const dataSource = ctx.dataSource;
|
|
107
|
-
const
|
|
125
|
+
const storageUrl = await ((_k = dataSource.resolveStorageFileURL) == null ? void 0 : _k.call(dataSource, {
|
|
108
126
|
collectionName: collection.name,
|
|
109
127
|
file: (0, import_utils.getFilePlainObject)(file),
|
|
110
128
|
preview,
|
|
111
129
|
download
|
|
112
130
|
})) || await plugin.getFileURL(file, preview, { download });
|
|
131
|
+
const finalUrl = preserveSubAppInLocalURL(storageUrl, (_l = ctx.state.fileAccess) == null ? void 0 : _l.appName);
|
|
113
132
|
ctx.status = 302;
|
|
114
133
|
ctx.redirect(finalUrl);
|
|
115
134
|
await next();
|
package/dist/server/server.js
CHANGED
|
@@ -358,9 +358,13 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
360
|
async setFileResponseURLs(record, collectionName) {
|
|
361
|
-
|
|
362
|
-
const previewUrl = this.getPermanentFileURL(record, true, { collectionName });
|
|
361
|
+
var _a;
|
|
363
362
|
const storage = this.storagesCache.get(record.get("storageId"));
|
|
363
|
+
const useOriginalUrl = Boolean((_a = storage == null ? void 0 : storage.options) == null ? void 0 : _a.useOriginalUrl);
|
|
364
|
+
const [url, previewUrl] = useOriginalUrl ? await Promise.all([this.getFileURL(record), this.getFileURL(record, true)]) : [
|
|
365
|
+
this.getPermanentFileURL(record, false, { collectionName }),
|
|
366
|
+
this.getPermanentFileURL(record, true, { collectionName })
|
|
367
|
+
];
|
|
364
368
|
record.set("url", url);
|
|
365
369
|
record.set("preview", previewUrl);
|
|
366
370
|
record.dataValues.preview = previewUrl;
|
|
@@ -407,7 +411,7 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
407
411
|
);
|
|
408
412
|
}
|
|
409
413
|
async isPublicAccessStorage(storageName) {
|
|
410
|
-
var _a;
|
|
414
|
+
var _a, _b;
|
|
411
415
|
const storageRepository = this.db.getRepository("storages");
|
|
412
416
|
const storages = await storageRepository.findOne({
|
|
413
417
|
filter: { default: true }
|
|
@@ -423,10 +427,7 @@ class PluginFileManagerServer extends import_server.Plugin {
|
|
|
423
427
|
});
|
|
424
428
|
}
|
|
425
429
|
storage = this.parseStorage(storage);
|
|
426
|
-
|
|
427
|
-
return true;
|
|
428
|
-
}
|
|
429
|
-
return !!((_a = storage.options) == null ? void 0 : _a.public);
|
|
430
|
+
return Boolean(((_a = storage.options) == null ? void 0 : _a.public) || ((_b = storage.options) == null ? void 0 : _b.useOriginalUrl));
|
|
430
431
|
}
|
|
431
432
|
async getFileStream(file, options) {
|
|
432
433
|
var _a;
|
|
@@ -119,7 +119,8 @@ async function createTemporaryURLAction(ctx, next) {
|
|
|
119
119
|
}
|
|
120
120
|
const id = ctx.action.params.filterByTk;
|
|
121
121
|
let filter = { id };
|
|
122
|
-
|
|
122
|
+
const loggedInAttachmentAccess = collection.name === "attachments" && Boolean(ctx.state.currentUser);
|
|
123
|
+
if (!loggedInAttachmentAccess && ctx.app.options.acl !== false && ((_a = ctx.dataSource.options) == null ? void 0 : _a.useACL) !== false && ((_b = ctx.dataSource.options) == null ? void 0 : _b.acl) !== false) {
|
|
123
124
|
filter = await (0, import_resolve_file_access_filter.resolveFileAccessFilter)(ctx, collection, filter);
|
|
124
125
|
}
|
|
125
126
|
const file = await ctx.getCurrentRepository().findOne({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-file-manager",
|
|
3
|
-
"version": "2.3.0-
|
|
3
|
+
"version": "2.3.0-beta.3",
|
|
4
4
|
"displayName": "File manager",
|
|
5
5
|
"displayName.ru-RU": "Менеджер файлов",
|
|
6
6
|
"displayName.zh-CN": "文件管理器",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"Collections",
|
|
63
63
|
"Collection fields"
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "f8cb6ec699b9aaffcf500fe68a55f1271b8a331c"
|
|
66
66
|
}
|