triangle-utils 1.4.186 → 1.4.187

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.
@@ -30,7 +30,7 @@ export declare class UtilsRDS {
30
30
  attribute_names?: string[];
31
31
  is_verbose?: boolean;
32
32
  is_read?: boolean;
33
- }): Promise<any[][]>;
33
+ }): Promise<any[]>;
34
34
  create(table_id: string, item: Record<string, any>, options?: {
35
35
  is_verbose?: boolean;
36
36
  is_read?: boolean;
@@ -146,7 +146,7 @@ export class UtilsRDS {
146
146
  return batch_new_items;
147
147
  }, { num_iterators: options.num_iterators, batch_num_items: batch_num_items })
148
148
  .then(new_items => new_items.filter(new_item => new_item !== undefined));
149
- return new_items;
149
+ return new_items.flat();
150
150
  }
151
151
  async create(table_id, item, options = {}) {
152
152
  const attribute_names = Object.keys(item).sort();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.186",
3
+ "version": "1.4.187",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/UtilsRDS.ts CHANGED
@@ -194,7 +194,7 @@ export class UtilsRDS {
194
194
  return batch_new_items
195
195
  }, { num_iterators : options.num_iterators, batch_num_items : batch_num_items })
196
196
  .then(new_items => new_items.filter(new_item => new_item !== undefined))
197
- return new_items
197
+ return new_items.flat()
198
198
  }
199
199
 
200
200
  async create(