nucleus-core-ts 0.9.736 → 0.9.737
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 +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -473,7 +473,7 @@ ${strMDSAlgs}`)}if(attestationStatementAlg!==void 0&&authenticatorGetInfo?.algor
|
|
|
473
473
|
<div style="font-size:48px;margin-bottom:16px;">${currentStatus==="approved"?"\u2705":"\uD83D\uDEAB"}</div>
|
|
474
474
|
<h2 style="margin:0 0 8px;color:#111827;font-size:20px;">Already Processed</h2>
|
|
475
475
|
<p style="color:#6b7280;font-size:14px;">This device has ${currentStatus==="approved"?"already been approved":"already been rejected"}. No further action needed.</p>
|
|
476
|
-
</div>`}else{let deviceName=session.deviceName||session.device_name||"Unknown",browserName=session.browserName||session.browser_name||"Unknown",browserVersion=session.browserVersion||session.browser_version||"",osName=session.osName||session.os_name||"Unknown",osVersion=session.osVersion||session.os_version||"",ipAddress=session.ipAddress||session.ip_address||"Unknown",createdAt=session.createdAt||session.created_at,timeStr=createdAt?new Date(createdAt).toLocaleString("en-US",{dateStyle:"medium",timeStyle:"short"}):"Unknown";bodyContent=`
|
|
476
|
+
</div>`}else{let deviceName=session.deviceName||session.device_name||"Unknown",browserName=session.browserName||session.browser_name||"Unknown",browserVersion=session.browserVersion||session.browser_version||"",osName=session.osName||session.os_name||"Unknown",osVersion=session.osVersion||session.os_version||"",ipAddress=session.ipAddress||session.ip_address||"Unknown",locationCity=session.locationCity||session.location_city||"",locationCountry=session.locationCountry||session.location_country||"",locationStr=[locationCity,locationCountry].filter(Boolean).join(", ")||"Unknown",createdAt=session.createdAt||session.created_at,timeStr=createdAt?new Date(createdAt).toLocaleString("en-US",{dateStyle:"medium",timeStyle:"short"}):"Unknown";bodyContent=`
|
|
477
477
|
<h2 style="margin:0 0 8px;color:#111827;font-size:20px;font-weight:700;">
|
|
478
478
|
${isApprove?"Approve this device?":"Reject this device?"}
|
|
479
479
|
</h2>
|
|
@@ -484,8 +484,12 @@ ${strMDSAlgs}`)}if(attestationStatementAlg!==void 0&&authenticatorGetInfo?.algor
|
|
|
484
484
|
<tr><td style="padding:12px 16px;border-bottom:1px solid #e5e7eb;width:100px;"><span style="color:#6b7280;font-size:12px;">Device</span></td><td style="padding:12px 16px;border-bottom:1px solid #e5e7eb;"><strong style="color:#111827;font-size:13px;">${deviceName}</strong></td></tr>
|
|
485
485
|
<tr><td style="padding:12px 16px;border-bottom:1px solid #e5e7eb;"><span style="color:#6b7280;font-size:12px;">Browser</span></td><td style="padding:12px 16px;border-bottom:1px solid #e5e7eb;"><span style="color:#111827;font-size:13px;">${browserName} ${browserVersion} on ${osName} ${osVersion}</span></td></tr>
|
|
486
486
|
<tr><td style="padding:12px 16px;border-bottom:1px solid #e5e7eb;"><span style="color:#6b7280;font-size:12px;">IP Address</span></td><td style="padding:12px 16px;border-bottom:1px solid #e5e7eb;"><span style="color:#111827;font-size:13px;">${ipAddress}</span></td></tr>
|
|
487
|
+
<tr><td style="padding:12px 16px;border-bottom:1px solid #e5e7eb;"><span style="color:#6b7280;font-size:12px;">Location</span></td><td style="padding:12px 16px;border-bottom:1px solid #e5e7eb;"><span style="color:#111827;font-size:13px;">${locationStr}</span></td></tr>
|
|
487
488
|
<tr><td style="padding:12px 16px;"><span style="color:#6b7280;font-size:12px;">Time</span></td><td style="padding:12px 16px;"><span style="color:#111827;font-size:13px;">${timeStr}</span></td></tr>
|
|
488
489
|
</table>
|
|
490
|
+
${isApprove?`<div style="margin:16px 0;padding:14px 16px;background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px;">
|
|
491
|
+
<p style="margin:0;color:#991b1b;font-size:13px;line-height:1.5;"><strong>\u26A0\uFE0F If you did NOT just try to sign in, do NOT approve.</strong> Someone may be trying to access your account. Click <strong>Reject</strong> below and change your password immediately.</p>
|
|
492
|
+
</div>`:""}
|
|
489
493
|
<form method="POST" action="${baseRoute}/${action}?token=${encodeURIComponent(token)}" style="margin:24px 0 0;">
|
|
490
494
|
<input type="hidden" name="token" value="${token}" />
|
|
491
495
|
<button type="submit" style="width:100%;padding:14px 24px;background-color:${accentColor};color:#ffffff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nucleus-core-ts",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.737",
|
|
4
4
|
"description": "Production-ready, enterprise-grade TypeScript framework for building multi-tenant APIs",
|
|
5
5
|
"author": "Hidayet Can Özcan <hidayetcan@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|