feat: add element.updated (#4070)

This commit is contained in:
David Luzar
2021-11-24 18:38:33 +01:00
committed by GitHub
parent dac970c640
commit f9d2d537a2
14 changed files with 500 additions and 4 deletions

View File

@ -470,3 +470,6 @@ export const bytesToHexString = (bytes: Uint8Array) => {
.map((byte) => `0${byte.toString(16)}`.slice(-2))
.join("");
};
export const getUpdatedTimestamp = () =>
process.env.NODE_ENV === "test" ? 1 : Date.now();