@skrillex1224/playwright-toolkit 2.1.95 → 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.cjs CHANGED
@@ -1331,7 +1331,7 @@ var Sse = {
1331
1331
  * @param {function(Error, function): void} [options.onTimeout] - (error, reject) => void
1332
1332
  * @param {number} [options.initialTimeout=90000] - 初始数据接收超时 (ms),默认 90s
1333
1333
  * @param {number} [options.timeout=180000] - 整体请求超时时间 (ms),默认 180s
1334
- * @returns {Promise<any>} - 返回 Promise,当流满足条件时 resolve
1334
+ * @returns {[Promise<any>, function(): void]} - 返回 [promise, cancel] 元组,promise 为流数据,cancel 为取消监听的函数
1335
1335
  */
1336
1336
  intercept(page, urlPattern, options = {}) {
1337
1337
  const {