forked from olcxjas-softworks/LarpixClient
update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
31
electron/node_modules/electron-publish/out/s3/s3UploadHelper.d.ts
generated
vendored
Normal file
31
electron/node_modules/electron-publish/out/s3/s3UploadHelper.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import * as http from "http";
|
||||
import type { AwsCredentials } from "./awsCredentials";
|
||||
export interface S3PutObjectParams {
|
||||
bucket: string;
|
||||
key: string;
|
||||
file: string;
|
||||
region: string;
|
||||
endpoint?: string;
|
||||
forcePathStyle?: boolean;
|
||||
contentType: string;
|
||||
acl?: string;
|
||||
storageClass?: string;
|
||||
serverSideEncryption?: string;
|
||||
credentials?: AwsCredentials;
|
||||
}
|
||||
/**
|
||||
* Uploads a file to S3 (or S3-compatible storage) using a single PutObject request.
|
||||
* Suitable for files up to 5 GB — the S3 single-part upload limit.
|
||||
* Returns the underlying ClientRequest so callers can abort mid-flight.
|
||||
* Mirrors the behaviour of the `publish-s3` app-builder subcommand.
|
||||
*/
|
||||
export declare function startS3PutObject(params: S3PutObjectParams): {
|
||||
req: http.ClientRequest;
|
||||
done: Promise<void>;
|
||||
};
|
||||
/**
|
||||
* Returns the MIME content-type for an S3 upload key, using explicit overrides
|
||||
* for formats that mime databases commonly misidentify. Mirrors the Go binary's
|
||||
* getContentType() function in pkg/publisher/s3.go.
|
||||
*/
|
||||
export declare function getS3ContentType(file: string): string;
|
||||
Loading…
Add table
Add a link
Reference in a new issue