proto.io 0.0.152 → 0.0.153

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/dist/index.mjs CHANGED
@@ -1136,7 +1136,7 @@ const _session = (proto, request) => {
1136
1136
  const session = {
1137
1137
  ...payload,
1138
1138
  sessionId: payload.sessionId ?? randomUUID(),
1139
- createdAt: new Date(payload.createdAt),
1139
+ createdAt: payload.createdAt && _.isSafeInteger(payload.createdAt) ? new Date(payload.createdAt) : new Date,
1140
1140
  };
1141
1141
  sessionMap.set(request, session);
1142
1142
  return session;