playwright-core 1.58.0-alpha-2025-12-11 → 1.58.0-alpha-2025-12-12

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.
@@ -4,7 +4,7 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
4
4
 
5
5
  This project incorporates components from the projects listed below. The original copyright notices and the licenses under which Microsoft received such components are set forth below. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.
6
6
 
7
- - @lowire/loop@0.0.7 (https://github.com/pavelfeldman/lowire)
7
+ - @lowire/loop@0.0.8 (https://github.com/pavelfeldman/lowire)
8
8
  - @modelcontextprotocol/sdk@1.24.2 (https://github.com/modelcontextprotocol/typescript-sdk)
9
9
  - accepts@2.0.0 (https://github.com/jshttp/accepts)
10
10
  - agent-base@7.1.4 (https://github.com/TooTallNate/proxy-agents)
@@ -135,7 +135,7 @@ This project incorporates components from the projects listed below. The origina
135
135
  - zod-to-json-schema@3.25.0 (https://github.com/StefanTerdell/zod-to-json-schema)
136
136
  - zod@3.25.76 (https://github.com/colinhacks/zod)
137
137
 
138
- %% @lowire/loop@0.0.7 NOTICES AND INFORMATION BEGIN HERE
138
+ %% @lowire/loop@0.0.8 NOTICES AND INFORMATION BEGIN HERE
139
139
  =========================================
140
140
  Apache License
141
141
  Version 2.0, January 2004
@@ -339,7 +339,7 @@ Apache License
339
339
  See the License for the specific language governing permissions and
340
340
  limitations under the License.
341
341
  =========================================
342
- END OF @lowire/loop@0.0.7 AND INFORMATION
342
+ END OF @lowire/loop@0.0.8 AND INFORMATION
343
343
 
344
344
  %% @modelcontextprotocol/sdk@1.24.2 NOTICES AND INFORMATION BEGIN HERE
345
345
  =========================================
@@ -675,11 +675,12 @@ class Page extends import_channelOwner.ChannelOwner {
675
675
  return result.pdf;
676
676
  }
677
677
  async perform(task, options = {}) {
678
- await this._channel.perform({ task, ...options });
678
+ const result = await this._channel.perform({ task, ...options });
679
+ return { usage: { ...result } };
679
680
  }
680
681
  async extract(query, schema, options = {}) {
681
- const { result } = await this._channel.extract({ query, schema: this._platform.zodToJsonSchema(schema), ...options });
682
- return result;
682
+ const { result, ...usage } = await this._channel.extract({ query, schema: this._platform.zodToJsonSchema(schema), ...options });
683
+ return { result, usage };
683
684
  }
684
685
  async _snapshotForAI(options = {}) {
685
686
  return await this._channel.snapshotForAI({ timeout: this._timeoutSettings.timeout(options), track: options.track });