Compare commits

..

No commits in common. "d328d4785929c325bd15b0057a34c064a5cea46a" and "726100b6a55ecf055ba69f96fa6b502a51ed2723" have entirely different histories.

3 changed files with 1 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@teacinema/common",
"version": "1.3.0",
"version": "1.2.0",
"description": "Common library for TeaCinema microservices",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@ -1,2 +1 @@
export * from './convert-enum.util'
export * from './timestamp-to-iso.util'

View File

@ -1,5 +0,0 @@
import { Timestamp } from '@teacinema/contracts/gen/ts/google/protobuf/timestamp'
export function timestampToISO(ts: Timestamp) {
new Date(ts.seconds * 1000 + ts.nanos / 1_000_000).toISOString()
}