🔱: [client] sync upgrade with 3 commits [trident-sync]

build: publish success
Merge remote-tracking branch 'origin/main'
This commit is contained in:
GitHub Actions Bot
2024-07-15 19:23:57 +00:00
parent f230a2a94d
commit f97827ec76
4 changed files with 15 additions and 9 deletions
@@ -1,7 +1,7 @@
// @ts-ignore
import { S3Client, GetObjectCommand, PutObjectCommand, CreateBucketCommand } from "@aws-sdk/client-s3";
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
import {utils} from "@fast-crud/fast-crud";
import { utils } from "@fast-crud/fast-crud";
// TODO 模拟server 你应该将此代码搬到你的server端
let bucketCreated = false;
export async function generateSignedUrl(bucket: string, key: string, type: "put" | "get" = "get") {