@aws-sdk/lib-storage 3.1074.0 → 3.1076.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/dist-cjs/index.js CHANGED
@@ -3,9 +3,25 @@ const { toEndpointV1, getEndpointFromInstructions } = require("@smithy/core/endp
3
3
  const { extendedEncodeURIComponent } = require("@smithy/core/protocols");
4
4
  const { EventEmitter } = require("events");
5
5
  const { Buffer } = require("buffer");
6
- const { runtimeConfig } = require("./runtimeConfig");
6
+ const { lstatSync, ReadStream } = require("node:fs");
7
7
  const { Readable } = require("stream");
8
8
 
9
+ const runtimeConfigShared = {
10
+ lstatSync: () => { },
11
+ isFileReadStream(f) {
12
+ return false;
13
+ },
14
+ };
15
+
16
+ const runtimeConfig = {
17
+ ...runtimeConfigShared,
18
+ runtime: "node",
19
+ lstatSync,
20
+ isFileReadStream(f) {
21
+ return f instanceof ReadStream;
22
+ },
23
+ };
24
+
9
25
  const byteLength = (input) => {
10
26
  if (input == null) {
11
27
  return 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-storage",
3
- "version": "3.1074.0",
3
+ "version": "3.1076.0",
4
4
  "description": "Storage higher order operation",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -30,18 +30,18 @@
30
30
  },
31
31
  "license": "Apache-2.0",
32
32
  "dependencies": {
33
- "@smithy/core": "^3.24.6",
34
- "@smithy/types": "^4.14.3",
33
+ "@smithy/core": "^3.27.0",
34
+ "@smithy/types": "^4.15.0",
35
35
  "buffer": "5.6.0",
36
36
  "events": "3.3.0",
37
37
  "stream-browserify": "3.0.0",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "peerDependencies": {
41
- "@aws-sdk/client-s3": "^3.1074.0"
41
+ "@aws-sdk/client-s3": "^3.1076.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@aws-sdk/client-s3": "3.1074.0",
44
+ "@aws-sdk/client-s3": "3.1076.0",
45
45
  "@tsconfig/recommended": "1.0.1",
46
46
  "@types/node": "^20.14.8",
47
47
  "concurrently": "7.0.0",
@@ -63,8 +63,7 @@
63
63
  "stream": "stream-browserify"
64
64
  },
65
65
  "react-native": {
66
- "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native",
67
- "./dist-cjs/runtimeConfig": "./dist-cjs/runtimeConfig.native"
66
+ "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
68
67
  },
69
68
  "files": [
70
69
  "dist-*/**"
@@ -1,5 +0,0 @@
1
- const { runtimeConfigShared: shared } = require("./runtimeConfig.shared");
2
- exports.runtimeConfig = {
3
- ...shared,
4
- runtime: "browser",
5
- };
@@ -1,10 +0,0 @@
1
- const { lstatSync, ReadStream } = require("node:fs");
2
- const { runtimeConfigShared: shared } = require("./runtimeConfig.shared");
3
- exports.runtimeConfig = {
4
- ...shared,
5
- runtime: "node",
6
- lstatSync,
7
- isFileReadStream(f) {
8
- return f instanceof ReadStream;
9
- },
10
- };
@@ -1,6 +0,0 @@
1
- const { runtimeConfig: browserConfig } = require("./runtimeConfig.browser");
2
- const runtimeConfig = {
3
- ...browserConfig,
4
- runtime: "react-native",
5
- };
6
- exports.runtimeConfig = runtimeConfig;
@@ -1,6 +0,0 @@
1
- exports.runtimeConfigShared = {
2
- lstatSync: () => { },
3
- isFileReadStream(f) {
4
- return false;
5
- },
6
- };