@dbx-tools/shared-genie 0.3.28 → 0.3.29
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 +3 -3
- package/src/event.ts +4 -3
package/package.json
CHANGED
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"zod": "^4.3.6",
|
|
15
|
-
"@dbx-tools/shared-core": "0.3.
|
|
16
|
-
"@dbx-tools/shared-sdk-model": "0.3.
|
|
15
|
+
"@dbx-tools/shared-core": "0.3.29",
|
|
16
|
+
"@dbx-tools/shared-sdk-model": "0.3.29"
|
|
17
17
|
},
|
|
18
18
|
"main": "index.ts",
|
|
19
19
|
"license": "UNLICENSED",
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
|
-
"version": "0.3.
|
|
23
|
+
"version": "0.3.29",
|
|
24
24
|
"types": "index.ts",
|
|
25
25
|
"type": "module",
|
|
26
26
|
"exports": {
|
package/src/event.ts
CHANGED
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
* @module
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
|
+
import { object } from "@dbx-tools/shared-core";
|
|
29
|
+
|
|
28
30
|
import {
|
|
29
31
|
detectAttachmentType,
|
|
30
32
|
type GenieAttachment,
|
|
@@ -235,8 +237,7 @@ export const detectRows = eventDetector("rows", (current, previous, location) =>
|
|
|
235
237
|
|
|
236
238
|
/**
|
|
237
239
|
* Follow-up suggested-questions array appeared or changed.
|
|
238
|
-
* Compares
|
|
239
|
-
* rewrite still fires.
|
|
240
|
+
* Compares structurally so a length-preserving content rewrite still fires.
|
|
240
241
|
*/
|
|
241
242
|
export const detectSuggestedQuestions = eventDetector(
|
|
242
243
|
"suggested_questions",
|
|
@@ -244,7 +245,7 @@ export const detectSuggestedQuestions = eventDetector(
|
|
|
244
245
|
const curr = current.suggested_questions?.questions;
|
|
245
246
|
const prev = previous?.suggested_questions?.questions;
|
|
246
247
|
if (!curr || curr.length === 0) return;
|
|
247
|
-
if (
|
|
248
|
+
if (object.deepEqual(curr, prev)) return;
|
|
248
249
|
return { ...location, questions: curr };
|
|
249
250
|
},
|
|
250
251
|
);
|