@mearl/native-host
Advanced tools
| import { type SendRequestParams } from '@mearl/browser-core'; | ||
| export declare function executeNodeSendRequest(data: SendRequestParams, cookieMap?: Map<string, string>): Promise<any>; |
| import { type RunActionsParams, type SendRequestParams } from '@mearl/browser-core'; | ||
| type SendExtensionTransferAction = (action: string, data: any, timeoutMs: number) => Promise<any>; | ||
| export declare function hasSendRequestFiles(data: unknown): boolean; | ||
| export declare function hasRunActionsSendRequestFiles(data: unknown): boolean; | ||
| export declare function sendRequestWithTransferredFiles(data: SendRequestParams, send: SendExtensionTransferAction): Promise<any>; | ||
| export declare function sendRunActionsWithTransferredFiles(data: RunActionsParams, send: SendExtensionTransferAction, resolveTimeoutMs: (data: RunActionsParams) => number): Promise<any>; | ||
| export {}; |
| import { type SendRequestFile } from '@mearl/browser-core'; | ||
| interface SendRequestFileDescriptor { | ||
| fieldName: string; | ||
| filename: string; | ||
| contentType: string; | ||
| byteLength: number; | ||
| } | ||
| export interface ResolvedSendRequestFile { | ||
| descriptor: SendRequestFileDescriptor; | ||
| filePath?: string; | ||
| content?: Buffer; | ||
| } | ||
| export declare function resolveSendRequestFiles(files: SendRequestFile[]): Promise<ResolvedSendRequestFile[]>; | ||
| export {}; |
@@ -35,3 +35,3 @@ /** | ||
| headers?: Record<string, string>; | ||
| body?: string; | ||
| body?: string | Uint8Array; | ||
| timeoutMs?: number; | ||
@@ -43,2 +43,3 @@ }): Promise<{ | ||
| body: string; | ||
| bodyBuffer: Buffer; | ||
| }>; | ||
@@ -45,0 +46,0 @@ export declare function getCookiesForUrl(session: PageSession, targetUrl: string): Promise<Map<string, string>>; |
| import { type PageActNavigationObserver } from '@mearl/browser-core'; | ||
| import type { PageSession } from './cdp-session.js'; | ||
| export declare function startCdpNavigationObserver(session: PageSession, urlBefore: string, options?: { | ||
| import type { CdpSession, PageSession } from './cdp-session.js'; | ||
| export declare function startCdpNavigationObserver(cdpSession: CdpSession, pageSession: PageSession, urlBefore: string, options?: { | ||
| trackNetwork?: boolean; | ||
| networkIdleMs?: number; | ||
| contentReadyAfterMs?: number; | ||
| trackOpenedTabs?: boolean; | ||
| sourceTabId?: number; | ||
| }): Promise<PageActNavigationObserver>; |
+3
-3
| { | ||
| "name": "@mearl/native-host", | ||
| "version": "2.2.0", | ||
| "version": "2.2.1", | ||
| "description": "Native Messaging Host for Mearl — bridges Chrome Extension and local socket server", | ||
@@ -35,4 +35,4 @@ "type": "module", | ||
| "typescript": "^5.8.3", | ||
| "@mearl/browser-core": "2.2.0", | ||
| "@mearl/daemon-core": "2.2.0" | ||
| "@mearl/browser-core": "2.2.1", | ||
| "@mearl/daemon-core": "2.2.1" | ||
| }, | ||
@@ -39,0 +39,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1108666
2.06%51
6.25%31247
1.75%43
4.88%