From 7b3ee09824f14a7777d60b4df93307a42d69e4a1 Mon Sep 17 00:00:00 2001 From: dmc Date: Fri, 23 Feb 2024 18:01:44 +0100 Subject: [PATCH] Pear.updates align --- reference/api.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/api.md b/reference/api.md index 4ce936f..c11a150 100644 --- a/reference/api.md +++ b/reference/api.md @@ -375,7 +375,9 @@ The `listener` function is called for every incoming update with an `update` obj * `version` is a Pear version object holding incoming version information * `app` indicates whether the update represents an application (`true`) or platform (`false`) update -* `diff` is an array of file paths from the application root (drive keys) that were updated +* `diff` requires `--update-diffs` flag (else `null`). An array of objects of form `{ type, key}`. + * `type` `` - Operation type `update` or `delete` + * `key` `` - Drive key for a given updated file e.g. `/path/to/file.txt` ### `const win = new Pear.Window(entry , options )`