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.js CHANGED
@@ -1139,7 +1139,7 @@ const _session = (proto, request) => {
1139
1139
  const session = {
1140
1140
  ...payload,
1141
1141
  sessionId: payload.sessionId ?? cryptoJs.randomUUID(),
1142
- createdAt: new Date(payload.createdAt),
1142
+ createdAt: payload.createdAt && _.isSafeInteger(payload.createdAt) ? new Date(payload.createdAt) : new Date,
1143
1143
  };
1144
1144
  sessionMap.set(request, session);
1145
1145
  return session;