@wecode-team/cms-supabase-api 0.1.31 → 0.1.33
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.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4224,7 +4224,9 @@ var AuthUtils = /*#__PURE__*/function () {
|
|
|
4224
4224
|
var ADMIN_REGISTRY_TABLE = "_cms_admin_registry";
|
|
4225
4225
|
var ensured = false;
|
|
4226
4226
|
function normalizeSessionId(sessionId) {
|
|
4227
|
-
|
|
4227
|
+
// 统一将连字符转换为下划线,确保 UUID 格式一致性
|
|
4228
|
+
// 例如:1047aab4-eecb-4538-ad8d-b5847e762f30 和 1047aab4_eecb_4538_ad8d_b5847e762f30 被视为相同
|
|
4229
|
+
return (sessionId || "").trim().replace(/-/g, "_");
|
|
4228
4230
|
}
|
|
4229
4231
|
/**
|
|
4230
4232
|
* 从前端传来的 auth tableName 中提取 session_id
|