@wecode-team/cms-supabase-api 0.1.30 → 0.1.32

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.
@@ -2,6 +2,11 @@ import { JsonSchema, PaginatedResponse, SchemaField, RelationOption, GetRelation
2
2
  export declare class DynamicTableService {
3
3
  private supabase;
4
4
  constructor();
5
+ /**
6
+ * 默认按 created_at 倒序(新数据在前)。
7
+ * 兼容:如果表不存在 created_at 字段,则回退按 id 倒序。
8
+ */
9
+ private orderByCreatedAtOrFallback;
5
10
  private applySupabaseFilters;
6
11
  /**
7
12
  * 从完整表名中提取前缀
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wecode-team/cms-supabase-api",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "description": "A CMS API package using Hono framework with Supabase and dynamic table management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",