triangle-utils 1.4.61 → 1.4.63

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.
@@ -15,7 +15,6 @@ export class UtilsBee {
15
15
  url: url,
16
16
  params: params
17
17
  });
18
- console.log(response.data);
19
18
  if (response.data instanceof Buffer) {
20
19
  return response.data;
21
20
  }
@@ -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.63",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsBee.ts CHANGED
@@ -19,7 +19,6 @@ export class UtilsBee {
19
19
  url : url,
20
20
  params : params
21
21
  })
22
- console.log(response.data)
23
22
  if (response.data instanceof Buffer) {
24
23
  return response.data
25
24
  }
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