@sentio/runtime 2.36.0-rc.14 → 2.36.0-rc.16
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.
- package/lib/gen/google/protobuf/struct.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.js +4 -4
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/gen/service/common/protos/common.js +4 -4
- package/lib/gen/service/common/protos/common.js.map +1 -1
- package/package.json +6 -9
@@ -10708,13 +10708,13 @@ export const Notification_AttributesEntry = {
|
|
10708
10708
|
},
|
10709
10709
|
};
|
10710
10710
|
function toTimestamp(date) {
|
10711
|
-
const seconds = BigInt(Math.trunc(date.getTime() /
|
10712
|
-
const nanos = (date.getTime() %
|
10711
|
+
const seconds = BigInt(Math.trunc(date.getTime() / 1_000));
|
10712
|
+
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
10713
10713
|
return { seconds, nanos };
|
10714
10714
|
}
|
10715
10715
|
function fromTimestamp(t) {
|
10716
|
-
let millis = (globalThis.Number(t.seconds.toString()) || 0) *
|
10717
|
-
millis += (t.nanos || 0) /
|
10716
|
+
let millis = (globalThis.Number(t.seconds.toString()) || 0) * 1_000;
|
10717
|
+
millis += (t.nanos || 0) / 1_000_000;
|
10718
10718
|
return new globalThis.Date(millis);
|
10719
10719
|
}
|
10720
10720
|
function fromJsonTimestamp(o) {
|