From d32c522144d911e0b28c15b406c2f5754992d336 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Thu, 3 Mar 2016 15:00:10 -0800 Subject: [PATCH] index: also send `file` upon `/create` to fix re-syncs --- lib/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index eeab6ef..dd32376 100644 --- a/lib/index.js +++ b/lib/index.js @@ -52,10 +52,11 @@ export default class Now extends EventEmitter { method: 'POST', body: { forceNew, - files: Array.from(this._files).map(([sha, { data }]) => { + files: Array.from(this._files).map(([sha, { data, name }]) => { return { sha, - size: Buffer.byteLength(data) + size: Buffer.byteLength(data), + file: toRelative(name, this._path), }; }) }