@skrillex1224/playwright-toolkit 2.1.94 → 2.1.96

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/dist/index.js CHANGED
@@ -1304,7 +1304,7 @@ var Sse = {
1304
1304
  * @param {function(Error, function): void} [options.onTimeout] - (error, reject) => void
1305
1305
  * @param {number} [options.initialTimeout=90000] - 初始数据接收超时 (ms),默认 90s
1306
1306
  * @param {number} [options.timeout=180000] - 整体请求超时时间 (ms),默认 180s
1307
- * @returns {Promise<any>} - 返回 Promise,当流满足条件时 resolve
1307
+ * @returns {[Promise<any>, function(): void]} - 返回 [promise, cancel] 元组,promise 为流数据,cancel 为取消监听的函数
1308
1308
  */
1309
1309
  intercept(page, urlPattern, options = {}) {
1310
1310
  const {