File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { ScanOptions } from './dynamo-scanner.js';
44import { UpdateItemOptions } from './dynamo-updater.js' ;
55import { TableDefinition } from './table-builder/table-definition.js' ;
66import { TableClient } from './table-client.js' ;
7- import { v4 as uuid } from 'uuid ' ;
7+ import { randomUUID } from 'node:crypto ' ;
88import { JsonPath } from './types/index.js' ;
99
1010export type ProjectionOrTypeArray < PROJECTION , TableType > =
@@ -42,7 +42,7 @@ export class Crud<TableConfig extends TableDefinition> {
4242 async create (
4343 item : Omit < TableConfig [ 'type' ] , TableConfig [ 'keyNames' ] [ 'partitionKey' ] > ,
4444 ) : Promise < TableConfig [ 'type' ] > {
45- const identifier = uuid ( ) ;
45+ const identifier = randomUUID ( ) ;
4646 const actualItem = {
4747 [ this . tableClient . tableConfig . keyNames . partitionKey ] : identifier ,
4848 ...item ,
You can’t perform that action at this time.
0 commit comments