triangle-utils 1.4.61 → 1.4.62

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.
@@ -2,7 +2,7 @@ import { Readable } from "stream";
2
2
  export declare class UtilsS3 {
3
3
  private readonly s3;
4
4
  constructor(region: string);
5
- get_headers(s3_id: string): Promise<false | {
5
+ get_headers(s3_id: string): Promise<{
6
6
  DeleteMarker?: boolean | undefined;
7
7
  AcceptRanges?: string | undefined;
8
8
  Expiration?: string | undefined;
@@ -26,7 +26,7 @@ export class UtilsS3 {
26
26
  };
27
27
  }
28
28
  catch (error) {
29
- return false;
29
+ return undefined;
30
30
  }
31
31
  }
32
32
  async get(s3_id, encoding = "utf-8") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.61",
3
+ "version": "1.4.62",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsS3.ts CHANGED
@@ -35,7 +35,7 @@ export class UtilsS3 {
35
35
  ...headers
36
36
  }
37
37
  } catch (error) {
38
- return false
38
+ return undefined
39
39
  }
40
40
  }
41
41