@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.esm.js
CHANGED
|
@@ -4202,7 +4202,9 @@ var AuthUtils = /*#__PURE__*/function () {
|
|
|
4202
4202
|
var ADMIN_REGISTRY_TABLE = "_cms_admin_registry";
|
|
4203
4203
|
var ensured = false;
|
|
4204
4204
|
function normalizeSessionId(sessionId) {
|
|
4205
|
-
|
|
4205
|
+
// 统一将连字符转换为下划线,确保 UUID 格式一致性
|
|
4206
|
+
// 例如:1047aab4-eecb-4538-ad8d-b5847e762f30 和 1047aab4_eecb_4538_ad8d_b5847e762f30 被视为相同
|
|
4207
|
+
return (sessionId || "").trim().replace(/-/g, "_");
|
|
4206
4208
|
}
|
|
4207
4209
|
/**
|
|
4208
4210
|
* 从前端传来的 auth tableName 中提取 session_id
|