@stubber/virtual-worker 1.0.3 → 1.0.5
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.
|
@@ -20,7 +20,7 @@ export const browser_extract_data = async (params, stubber_context) => {
|
|
|
20
20
|
|
|
21
21
|
const payload = await get_payload_from_dom(page, payload_locators);
|
|
22
22
|
|
|
23
|
-
return create_success(`DOM content retrieved successfully`, payload);
|
|
23
|
+
return create_success({ message: `DOM content retrieved successfully`, payload });
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
/** * Recursively retrieves data from the DOM based on the provided locators.
|
|
@@ -8,7 +8,7 @@ const command_schema = z.looseObject({
|
|
|
8
8
|
params: z.record(z.string(), z.any()).optional(),
|
|
9
9
|
continue_on_error: z.boolean().optional(),
|
|
10
10
|
__order: z.number().optional(),
|
|
11
|
-
conditions: z.array(z.string()).optional(),
|
|
11
|
+
conditions: z.array(z.string().or(z.boolean())).optional(),
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
const params_schema = z.looseObject({
|