@aws-sdk/lib-storage 3.168.0 → 3.170.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/lib-storage
9
+
10
+
11
+
12
+
13
+
14
+ # [3.169.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.168.0...v3.169.0) (2022-09-12)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/lib-storage
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
7
23
 
8
24
  **Note:** Version bump only for package @aws-sdk/lib-storage
@@ -1,40 +1,43 @@
1
-
2
- import { AbortMultipartUploadCommandOutput, CompleteMultipartUploadCommandOutput } from "@aws-sdk/client-s3";
3
- import { EventEmitter } from "events";
4
- import { BodyDataTypes, Options, Progress } from "./types";
5
- export interface RawDataPart {
6
- partNumber: number;
7
- data: BodyDataTypes;
8
- lastPart?: boolean;
9
- }
10
- export declare class Upload extends EventEmitter {
11
-
12
- private MAX_PARTS;
13
- private queueSize;
14
- private partSize;
15
- private leavePartsOnError;
16
- private tags;
17
- private client;
18
- private params;
19
- private totalBytes?;
20
- private bytesUploadedSoFar;
21
- private abortController;
22
- private concurrentUploaders;
23
- private createMultiPartPromise?;
24
- private uploadedParts;
25
- private uploadId?;
26
- uploadEvent?: string;
27
- private isMultiPart;
28
- private singleUploadResult?;
29
- constructor(options: Options);
30
- abort(): Promise<void>;
31
- done(): Promise<CompleteMultipartUploadCommandOutput | AbortMultipartUploadCommandOutput>;
32
- on(event: "httpUploadProgress", listener: (progress: Progress) => void): this;
33
- private __uploadUsingPut;
34
- private __createMultipartUpload;
35
- private __doConcurrentUpload;
36
- private __doMultipartUpload;
37
- private __notifyProgress;
38
- private __abortTimeout;
39
- private __validateInput;
40
- }
1
+ import {
2
+ AbortMultipartUploadCommandOutput,
3
+ CompleteMultipartUploadCommandOutput,
4
+ } from "@aws-sdk/client-s3";
5
+ import { EventEmitter } from "events";
6
+ import { BodyDataTypes, Options, Progress } from "./types";
7
+ export interface RawDataPart {
8
+ partNumber: number;
9
+ data: BodyDataTypes;
10
+ lastPart?: boolean;
11
+ }
12
+ export declare class Upload extends EventEmitter {
13
+ private MAX_PARTS;
14
+ private queueSize;
15
+ private partSize;
16
+ private leavePartsOnError;
17
+ private tags;
18
+ private client;
19
+ private params;
20
+ private totalBytes?;
21
+ private bytesUploadedSoFar;
22
+ private abortController;
23
+ private concurrentUploaders;
24
+ private createMultiPartPromise?;
25
+ private uploadedParts;
26
+ private uploadId?;
27
+ uploadEvent?: string;
28
+ private isMultiPart;
29
+ private singleUploadResult?;
30
+ constructor(options: Options);
31
+ abort(): Promise<void>;
32
+ done(): Promise<
33
+ CompleteMultipartUploadCommandOutput | AbortMultipartUploadCommandOutput
34
+ >;
35
+ on(event: "httpUploadProgress", listener: (progress: Progress) => void): this;
36
+ private __uploadUsingPut;
37
+ private __createMultipartUpload;
38
+ private __doConcurrentUpload;
39
+ private __doMultipartUpload;
40
+ private __notifyProgress;
41
+ private __abortTimeout;
42
+ private __validateInput;
43
+ }
@@ -1 +1 @@
1
- export declare const byteLength: (input: any) => any;
1
+ export declare const byteLength: (input: any) => any;
@@ -1,2 +1,5 @@
1
- import { BodyDataTypes } from "./types";
2
- export declare const getChunk: (data: BodyDataTypes, partSize: number) => AsyncGenerator<import("./Upload").RawDataPart, void, undefined>;
1
+ import { BodyDataTypes } from "./types";
2
+ export declare const getChunk: (
3
+ data: BodyDataTypes,
4
+ partSize: number
5
+ ) => AsyncGenerator<import("./Upload").RawDataPart, void, undefined>;
@@ -1,3 +1,5 @@
1
-
2
- import { RawDataPart } from "../Upload";
3
- export declare function getChunkBuffer(data: Buffer, partSize: number): AsyncGenerator<RawDataPart, void, undefined>;
1
+ import { RawDataPart } from "../Upload";
2
+ export declare function getChunkBuffer(
3
+ data: Buffer,
4
+ partSize: number
5
+ ): AsyncGenerator<RawDataPart, void, undefined>;
@@ -1,3 +1,6 @@
1
-
2
- import { RawDataPart } from "../Upload";
3
- export declare function getChunkStream<T>(data: T, partSize: number, getNextData: (data: T) => AsyncGenerator<Buffer>): AsyncGenerator<RawDataPart, void, undefined>;
1
+ import { RawDataPart } from "../Upload";
2
+ export declare function getChunkStream<T>(
3
+ data: T,
4
+ partSize: number,
5
+ getNextData: (data: T) => AsyncGenerator<Buffer>
6
+ ): AsyncGenerator<RawDataPart, void, undefined>;
@@ -1,3 +1,2 @@
1
-
2
- import { Readable } from "stream";
3
- export declare function getDataReadable(data: Readable): AsyncGenerator<Buffer>;
1
+ import { Readable } from "stream";
2
+ export declare function getDataReadable(data: Readable): AsyncGenerator<Buffer>;
@@ -1,2 +1,3 @@
1
-
2
- export declare function getDataReadableStream(data: ReadableStream): AsyncGenerator<Buffer>;
1
+ export declare function getDataReadableStream(
2
+ data: ReadableStream
3
+ ): AsyncGenerator<Buffer>;
@@ -1,2 +1,2 @@
1
- export * from "./Upload";
2
- export * from "./types";
1
+ export * from "./Upload";
2
+ export * from "./types";
@@ -1,5 +1,4 @@
1
-
2
- export declare const ClientDefaultValues: {
3
- runtime: string;
4
- lstatSync: () => void;
5
- };
1
+ export declare const ClientDefaultValues: {
2
+ runtime: string;
3
+ lstatSync: () => void;
4
+ };
@@ -1,7 +1,6 @@
1
-
2
- import { lstatSync } from "fs";
3
-
4
- export declare const ClientDefaultValues: {
5
- runtime: string;
6
- lstatSync: typeof lstatSync;
7
- };
1
+ import { lstatSync } from "fs";
2
+
3
+ export declare const ClientDefaultValues: {
4
+ runtime: string;
5
+ lstatSync: typeof lstatSync;
6
+ };
@@ -1,5 +1,4 @@
1
-
2
- export declare const ClientDefaultValues: {
3
- runtime: string;
4
- lstatSync: () => void;
5
- };
1
+ export declare const ClientDefaultValues: {
2
+ runtime: string;
3
+ lstatSync: () => void;
4
+ };
@@ -1,4 +1,3 @@
1
-
2
- export declare const ClientSharedValues: {
3
- lstatSync: () => void;
4
- };
1
+ export declare const ClientSharedValues: {
2
+ lstatSync: () => void;
3
+ };
@@ -1,27 +1,25 @@
1
- import { PutObjectCommandInput, S3Client, Tag } from "@aws-sdk/client-s3";
2
- export interface Progress {
3
- loaded?: number;
4
- total?: number;
5
- part?: number;
6
- Key?: string;
7
- Bucket?: string;
8
- }
9
- export declare type BodyDataTypes = PutObjectCommandInput["Body"];
10
-
11
- export declare type ServiceClients = S3Client;
12
- export interface Configuration {
13
-
14
- queueSize: number;
15
-
16
- partSize: number;
17
-
18
- leavePartsOnError: boolean;
19
-
20
- tags: Tag[];
21
- }
22
- export interface Options extends Partial<Configuration> {
23
-
24
- params: PutObjectCommandInput;
25
-
26
- client: S3Client;
27
- }
1
+ import { PutObjectCommandInput, S3Client, Tag } from "@aws-sdk/client-s3";
2
+ export interface Progress {
3
+ loaded?: number;
4
+ total?: number;
5
+ part?: number;
6
+ Key?: string;
7
+ Bucket?: string;
8
+ }
9
+ export declare type BodyDataTypes = PutObjectCommandInput["Body"];
10
+
11
+ export declare type ServiceClients = S3Client;
12
+ export interface Configuration {
13
+ queueSize: number;
14
+
15
+ partSize: number;
16
+
17
+ leavePartsOnError: boolean;
18
+
19
+ tags: Tag[];
20
+ }
21
+ export interface Options extends Partial<Configuration> {
22
+ params: PutObjectCommandInput;
23
+
24
+ client: S3Client;
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-storage",
3
- "version": "3.168.0",
3
+ "version": "3.170.0",
4
4
  "description": "Storage higher order operation",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/smithy-client": "3.168.0",
27
+ "@aws-sdk/smithy-client": "3.170.0",
28
28
  "buffer": "5.6.0",
29
29
  "events": "3.3.0",
30
30
  "stream-browserify": "3.0.0",
@@ -35,12 +35,12 @@
35
35
  "@aws-sdk/client-s3": "^3.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@aws-sdk/abort-controller": "3.168.0",
39
- "@aws-sdk/client-s3": "3.168.0",
38
+ "@aws-sdk/abort-controller": "3.170.0",
39
+ "@aws-sdk/client-s3": "3.170.0",
40
40
  "@tsconfig/recommended": "1.0.1",
41
41
  "@types/node": "^14.11.2",
42
42
  "concurrently": "7.0.0",
43
- "downlevel-dts": "0.7.0",
43
+ "downlevel-dts": "0.10.1",
44
44
  "rimraf": "3.0.2",
45
45
  "typedoc": "0.19.2",
46
46
  "typescript": "~4.6.2",