@aws-sdk/lib-storage 3.998.0 → 3.999.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.
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.runtimeConfig = void 0;
4
- const fs_1 = require("fs");
4
+ const node_fs_1 = require("node:fs");
5
5
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
6
6
  exports.runtimeConfig = {
7
7
  ...runtimeConfig_shared_1.runtimeConfigShared,
8
8
  runtime: "node",
9
- lstatSync: fs_1.lstatSync,
9
+ lstatSync: node_fs_1.lstatSync,
10
10
  isFileReadStream(f) {
11
- return f instanceof fs_1.ReadStream;
11
+ return f instanceof node_fs_1.ReadStream;
12
12
  },
13
13
  };
package/dist-es/Upload.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AbortMultipartUploadCommand, ChecksumAlgorithm, CompleteMultipartUploadCommand, CreateMultipartUploadCommand, PutObjectCommand, PutObjectTaggingCommand, UploadPartCommand, } from "@aws-sdk/client-s3";
2
2
  import { AbortController } from "@smithy/abort-controller";
3
- import { getEndpointFromInstructions, toEndpointV1, } from "@smithy/middleware-endpoint";
3
+ import { getEndpointFromInstructions, toEndpointV1 } from "@smithy/middleware-endpoint";
4
4
  import { extendedEncodeURIComponent } from "@smithy/smithy-client";
5
5
  import { EventEmitter } from "events";
6
6
  import { byteLength } from "./byteLength";
@@ -1,4 +1,4 @@
1
- import { lstatSync, ReadStream } from "fs";
1
+ import { lstatSync, ReadStream } from "node:fs";
2
2
  import { runtimeConfigShared as shared } from "./runtimeConfig.shared";
3
3
  export const runtimeConfig = {
4
4
  ...shared,
@@ -1,6 +1,6 @@
1
- import { CompleteMultipartUploadCommandOutput } from "@aws-sdk/client-s3";
1
+ import type { CompleteMultipartUploadCommandOutput } from "@aws-sdk/client-s3";
2
2
  import { EventEmitter } from "events";
3
- import { BodyDataTypes, Options, Progress } from "./types";
3
+ import type { BodyDataTypes, Options, Progress } from "./types";
4
4
  export interface RawDataPart {
5
5
  partNumber: number;
6
6
  data: BodyDataTypes;
@@ -1,3 +1,3 @@
1
- import { BodyDataTypes } from "./types";
1
+ import type { BodyDataTypes } from "./types";
2
2
  import type { RawDataPart } from "./Upload";
3
3
  export declare const getChunk: (data: BodyDataTypes, partSize: number) => AsyncGenerator<RawDataPart, void, undefined>;
@@ -1,2 +1,2 @@
1
- import { RawDataPart } from "../Upload";
1
+ import type { RawDataPart } from "../Upload";
2
2
  export declare function getChunkStream<T>(data: T, partSize: number, getNextData: (data: T) => AsyncGenerator<Uint8Array>): AsyncGenerator<RawDataPart, void, undefined>;
@@ -1,2 +1,2 @@
1
- import { RawDataPart } from "../Upload";
1
+ import type { RawDataPart } from "../Upload";
2
2
  export declare function getChunkUint8Array(data: Uint8Array, partSize: number): AsyncGenerator<RawDataPart, void, undefined>;
@@ -1,2 +1,2 @@
1
- import { Readable } from "stream";
1
+ import type { Readable } from "stream";
2
2
  export declare function getDataReadable(data: Readable): AsyncGenerator<Uint8Array>;
@@ -1,4 +1,4 @@
1
- import { ReadStream } from "fs";
1
+ import { ReadStream } from "node:fs";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { ReadStream } from "fs";
1
+ import { ReadStream } from "node:fs";
2
2
  export declare const runtimeConfig: {
3
3
  runtime: string;
4
4
  lstatSync: import("fs").StatSyncFn;
@@ -1,4 +1,4 @@
1
- import { CompleteMultipartUploadCommandInput, CreateMultipartUploadCommandInput, PutObjectCommandInput, S3Client, Tag, UploadPartCommandInput } from "@aws-sdk/client-s3";
1
+ import type { CompleteMultipartUploadCommandInput, CreateMultipartUploadCommandInput, PutObjectCommandInput, S3Client, Tag, UploadPartCommandInput } from "@aws-sdk/client-s3";
2
2
  import type { AbortController } from "@smithy/types";
3
3
  export interface Progress {
4
4
  loaded?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-storage",
3
- "version": "3.998.0",
3
+ "version": "3.999.0",
4
4
  "description": "Storage higher order operation",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -39,10 +39,10 @@
39
39
  "tslib": "^2.6.2"
40
40
  },
41
41
  "peerDependencies": {
42
- "@aws-sdk/client-s3": "^3.998.0"
42
+ "@aws-sdk/client-s3": "^3.999.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@aws-sdk/client-s3": "3.998.0",
45
+ "@aws-sdk/client-s3": "3.999.0",
46
46
  "@smithy/types": "^4.13.0",
47
47
  "@tsconfig/recommended": "1.0.1",
48
48
  "@types/node": "^20.14.8",