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 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
@@ -20,6 +20,7 @@ declare class S3Storage implements IStorage {
20
20
  }>, options: {
21
21
  tags: Array<StorageTag>;
22
22
  savePath: string;
23
+ headers?: Record<string, string>;
23
24
  }): Promise<{
24
25
  urls: string;
25
26
  }>;
package/dist/index.d.ts CHANGED
@@ -20,6 +20,7 @@ declare class S3Storage implements IStorage {
20
20
  }>, options: {
21
21
  tags: Array<StorageTag>;
22
22
  savePath: string;
23
+ headers?: Record<string, string>;
23
24
  }): Promise<{
24
25
  urls: string;
25
26
  }>;
@@ -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 {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "importer-storage",
3
3
  "private": false,
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",