thinkncollab-cli 0.0.19 → 0.0.20

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/bin/index.js +12 -5
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -265,12 +265,19 @@ async function push(roomId, targetPath) {
265
265
  console.log("🚀 Uploading to Cloudinary...");
266
266
  const uploadedTree = await uploadTree(contentWithChanges, folderHex, roomId, token, email);
267
267
 
268
- console.log("🗂️ Sending metadata to backend...");
268
+ console.log("🗂️ Sending metadata:", {
269
+ folderId: folderHex,
270
+ content: uploadedTree,
271
+ uploadedBy: email,
272
+ projectId
273
+ });
274
+
269
275
  await axios.post(
270
- `${BASE_URL}/${roomId}/upload`,
271
- { folderId: folderHex, content: uploadedTree, uploadedBy: email, projectId },
272
- { headers: { authorization: `Bearer ${token}`, email } }
273
- );
276
+ `${BASE_URL}/${roomId}/upload`,
277
+ { folderId: folderHex, content: uploadedTree, uploadedBy: email, projectId },
278
+ { headers: { authorization: `Bearer ${token}`, email } }
279
+ );
280
+
274
281
 
275
282
  console.log("✅ Upload complete! Metadata stored successfully.");
276
283
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thinkncollab-cli",
3
3
  "author": "Raman Singh",
4
- "version": "0.0.19",
4
+ "version": "0.0.20",
5
5
  "description": "CLI tool for ThinkNCollab",
6
6
  "main": "index.js",
7
7
  "bin": {