importer-storage 1.0.3 → 1.0.4
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/index.cjs +2 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.global.js +2 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -97,7 +97,8 @@ var S3Storage = class {
|
|
|
97
97
|
let buffer = void 0;
|
|
98
98
|
if (isHttp(filePath)) {
|
|
99
99
|
const axiosResponse = yield import_axios.default.get(filePath, {
|
|
100
|
-
responseType: "arraybuffer"
|
|
100
|
+
responseType: "arraybuffer",
|
|
101
|
+
headers: options.headers
|
|
101
102
|
});
|
|
102
103
|
buffer = Buffer.from(axiosResponse.data);
|
|
103
104
|
} else {
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.global.js
CHANGED
|
@@ -36679,7 +36679,8 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona
|
|
|
36679
36679
|
let buffer = void 0;
|
|
36680
36680
|
if (isHttp(filePath)) {
|
|
36681
36681
|
const axiosResponse = yield axios_default.get(filePath, {
|
|
36682
|
-
responseType: "arraybuffer"
|
|
36682
|
+
responseType: "arraybuffer",
|
|
36683
|
+
headers: options.headers
|
|
36683
36684
|
});
|
|
36684
36685
|
buffer = Buffer.from(axiosResponse.data);
|
|
36685
36686
|
} else {
|
package/dist/index.js
CHANGED
|
@@ -68,7 +68,8 @@ var S3Storage = class {
|
|
|
68
68
|
let buffer = void 0;
|
|
69
69
|
if (isHttp(filePath)) {
|
|
70
70
|
const axiosResponse = yield axios.get(filePath, {
|
|
71
|
-
responseType: "arraybuffer"
|
|
71
|
+
responseType: "arraybuffer",
|
|
72
|
+
headers: options.headers
|
|
72
73
|
});
|
|
73
74
|
buffer = Buffer.from(axiosResponse.data);
|
|
74
75
|
} else {
|