triangle-utils 1.4.38 → 1.4.40

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.
@@ -5,7 +5,7 @@ export declare class UtilsS3 {
5
5
  file_exists(s3_filename: string): Promise<boolean | undefined>;
6
6
  get_s3_filenames(s3_filename_prefix: string, options?: {
7
7
  compile?: boolean;
8
- }): Promise<string[] | undefined>;
8
+ }): Promise<string[]>;
9
9
  get_file(s3_filename: string, encoding?: string): Promise<string | undefined>;
10
10
  get_file_buffer(s3_filename: string): Promise<Buffer | undefined>;
11
11
  get_file_stream(s3_filename: string): Promise<Readable | undefined>;
@@ -32,7 +32,7 @@ export class UtilsS3 {
32
32
  const compile = options.compile !== undefined ? options.compile : false;
33
33
  const s3_key = parse_s3_filename(s3_filename_prefix);
34
34
  if (s3_key === undefined) {
35
- return undefined;
35
+ return [];
36
36
  }
37
37
  const s3_filenames = [];
38
38
  let last_token = undefined;
@@ -52,10 +52,10 @@ export class UtilsS3 {
52
52
  .filter(key => key.substring(key.length - 1) !== "/")
53
53
  .map(key => "s3://" + s3_key.Bucket + "/" + key);
54
54
  s3_filenames.push(...new_s3_filenames);
55
- if (response.ContinuationToken === undefined || !compile) {
55
+ if (response.NextContinuationToken === undefined || !compile) {
56
56
  return s3_filenames;
57
57
  }
58
- last_token = response.ContinuationToken;
58
+ last_token = response.NextContinuationToken;
59
59
  }
60
60
  }
61
61
  async get_file(s3_filename, encoding = "utf-8") {
package/dist/src/f.js CHANGED
@@ -13,5 +13,5 @@ const config = {
13
13
  ...api_keys
14
14
  };
15
15
  const utils = new TriangleUtils(config);
16
- const foods = await utils.dynamodb.query("triage_docket_documents:register_document_id", { register_document_id: "E6-17065" });
17
- console.log(foods);
16
+ // const foods = await utils.dynamodb.query("triage_docket_documents:register_document_id", { register_document_id : "E6-17065" })
17
+ // console.log(foods)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.38",
3
+ "version": "1.4.40",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsS3.ts CHANGED
@@ -42,7 +42,7 @@ export class UtilsS3 {
42
42
  const compile = options.compile !== undefined ? options.compile : false
43
43
  const s3_key = parse_s3_filename(s3_filename_prefix)
44
44
  if (s3_key === undefined) {
45
- return undefined
45
+ return []
46
46
  }
47
47
  const s3_filenames = []
48
48
  let last_token : string | undefined = undefined
@@ -62,10 +62,10 @@ export class UtilsS3 {
62
62
  .filter(key => key.substring(key.length - 1) !== "/")
63
63
  .map(key => "s3://" + s3_key.Bucket + "/" + key)
64
64
  s3_filenames.push(...new_s3_filenames)
65
- if (response.ContinuationToken === undefined || !compile) {
65
+ if (response.NextContinuationToken === undefined || !compile) {
66
66
  return s3_filenames
67
67
  }
68
- last_token = response.ContinuationToken
68
+ last_token = response.NextContinuationToken
69
69
  }
70
70
  }
71
71
 
package/src/f.ts CHANGED
@@ -20,6 +20,6 @@ const config = {
20
20
 
21
21
  const utils = new TriangleUtils(config)
22
22
 
23
- const foods = await utils.dynamodb.query("triage_docket_documents:register_document_id", { register_document_id : "E6-17065" })
23
+ // const foods = await utils.dynamodb.query("triage_docket_documents:register_document_id", { register_document_id : "E6-17065" })
24
24
 
25
- console.log(foods)
25
+ // console.log(foods)