All files / src/UUID makeVersionFourOrNilUUIDValues.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15              6x           2x  
import {
  IUUIDComponentValues,
} from './IUUIDComponentValues';
import {
  IUUIDOptions,
} from './UUIDOptions/IUUIDOptions';
 
export const makeVersionFourOrNilUUIDValues = (options: IUUIDOptions): IUUIDComponentValues => ({
  clockSequence: options.clockSequenceGetter(options.version),
  nodeIdentifier: options.nodeIdentifierGetter(options.version),
  timestamp: options.timestampGetter(options.version),
});
 
export default makeVersionFourOrNilUUIDValues;