northbase 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "northbase",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Local-first CLI for reading and writing text files stored in Supabase",
5
5
  "type": "module",
6
6
  "bin": {
package/src/northbase.mjs CHANGED
@@ -236,7 +236,7 @@ async function putFile(rel, content) {
236
236
 
237
237
  const { error } = await supabase
238
238
  .from("files")
239
- .upsert({ path: relSafe, content }, { onConflict: "path" });
239
+ .upsert({ path: relSafe, content }, { onConflict: "owner_id,path" });
240
240
  if (error) throw error;
241
241
 
242
242
  const updated_at = await fetchRemoteUpdatedAt(supabase, relSafe);