tthr 0.0.28 → 0.0.30

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -828,7 +828,7 @@ export const create = mutation({
828
828
  id,
829
829
  title: args.title,
830
830
  content: args.content ?? '',
831
- authorId: ctx.userId,
831
+ authorId: ctx.userId ?? 'anonymous',
832
832
  createdAt: now,
833
833
  updatedAt: now,
834
834
  },
@@ -868,6 +868,15 @@ export const remove = mutation({
868
868
  });
869
869
  },
870
870
  });
871
+ `
872
+ );
873
+ await fs4.writeFile(
874
+ path4.join(projectPath, "tether", "functions", "index.ts"),
875
+ `// Re-export all function modules
876
+ // The Tether SDK uses this file to discover custom functions
877
+
878
+ export * as posts from './posts';
879
+ export * as comments from './comments';
871
880
  `
872
881
  );
873
882
  await fs4.writeFile(
@@ -917,7 +926,7 @@ export const create = mutation({
917
926
  id,
918
927
  postId: args.postId,
919
928
  content: args.content,
920
- authorId: ctx.userId,
929
+ authorId: ctx.userId ?? 'anonymous',
921
930
  createdAt: now,
922
931
  },
923
932
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tthr",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "Tether CLI - project scaffolding, migrations, and deployment",
5
5
  "type": "module",
6
6
  "bin": {