unprint 0.17.5 → 0.17.6
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/README.md +1 -1
- package/package.json +1 -1
- package/src/app.js +13 -1
package/README.md
CHANGED
|
@@ -139,7 +139,7 @@ Returns the `src` from an image element (or any other specified target) as a str
|
|
|
139
139
|
Return the contents of a `data-` attribute.
|
|
140
140
|
|
|
141
141
|
#### Query a source set
|
|
142
|
-
`query.sourceSet([
|
|
142
|
+
`query.sourceSet(selector, [property], [options])` or `query.srcSet()`
|
|
143
143
|
|
|
144
144
|
Options:
|
|
145
145
|
* `includeDescriptor`: Produce an array of `{ descriptor, url }` instead of URL strings.
|
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -1197,7 +1197,19 @@ async function browserRequest(url, customOptions = {}) {
|
|
|
1197
1197
|
let control = null;
|
|
1198
1198
|
|
|
1199
1199
|
if (customOptions.control) {
|
|
1200
|
-
|
|
1200
|
+
try {
|
|
1201
|
+
control = await customOptions.control(page, { context, browser });
|
|
1202
|
+
} catch (error) {
|
|
1203
|
+
return {
|
|
1204
|
+
ok: false,
|
|
1205
|
+
controlError: error.message,
|
|
1206
|
+
status,
|
|
1207
|
+
statusText,
|
|
1208
|
+
headers,
|
|
1209
|
+
response: res,
|
|
1210
|
+
res,
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1201
1213
|
}
|
|
1202
1214
|
|
|
1203
1215
|
events.emit('controlSuccess', feedbackBase);
|