Sign In

@mearl/native-host

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mearl/native-host - npm Package Compare versions

Comparing version
2.3.0
to
2.4.0
+39
dist/host-updater.d.ts
import { type CommandRunner } from '@mearl/setup/process';
export declare const NATIVE_HOST_UPDATE_TIMEOUT_MS: number;
export type NativeHostUpdateError = 'lock-timeout' | 'network' | 'package-unavailable' | 'setup-failed' | 'timeout' | 'verification-failed' | 'unknown';
export interface NativeHostUpdateCommand {
args: string[];
}
type UpdateLockRunner = <T>(targetVersion: string, operation: () => Promise<T>) => Promise<T>;
export interface RunNativeHostUpdateOptions {
areTargetsInstalled?: (targetReleaseLine: string, environment: NodeJS.ProcessEnv) => Promise<boolean>;
environment?: NodeJS.ProcessEnv;
nodePath?: string;
packageBinDirectory?: string | null;
packageManagerCommand?: string | null;
packageRunner?: string;
platform?: NodeJS.Platform;
runner?: CommandRunner;
timeoutMs?: number;
updateLockPath?: string;
withUpdateLock?: UpdateLockRunner;
}
export interface NativeHostUpdateCoordinatorOptions {
hostVersion: string;
log: (...args: unknown[]) => void;
requestRestart: () => void | Promise<void>;
runUpdate: (targetVersion: string) => Promise<void>;
}
export declare class NativeHostUpdateFailure extends Error {
readonly updateError: NativeHostUpdateError;
constructor(updateError: NativeHostUpdateError, message: string);
}
export declare function nativeHostUpdateCommand(targetVersion: string): NativeHostUpdateCommand;
export declare function runNativeHostUpdate(targetVersion: string, options?: RunNativeHostUpdateOptions): Promise<void>;
export declare class NativeHostUpdateCoordinator {
#private;
private readonly options;
constructor(options: NativeHostUpdateCoordinatorOptions);
evaluate(extensionVersion: unknown, checkForUpdates: unknown): void;
}
export {};
+4
-4
{
"name": "@mearl/native-host",
"version": "2.3.0",
"version": "2.4.0",
"description": "Native Messaging Host for Mearl — bridges Chrome Extension and local socket server",

@@ -35,5 +35,5 @@ "type": "module",

"typescript": "^5.8.3",
"@mearl/daemon-core": "2.3.0",
"@mearl/browser-core": "2.3.0",
"@mearl/setup": "2.3.0"
"@mearl/browser-core": "2.4.0",
"@mearl/daemon-core": "2.4.0",
"@mearl/setup": "2.4.0"
},

@@ -40,0 +40,0 @@ "scripts": {

Sorry, the diff of this file is too big to display