import { j as json } from './exports-D1quPX8S.js';
import './utils-BSRjJDrZ.js';

//#region src/routes/api/electron/update-status/+server.ts
var GET = () => {
	const inElectron = process.env.OP_INSIDE_ELECTRON === "1";
	const currentVersion = process.env.OP_ELECTRON_VERSION ?? null;
	const latestVersion = process.env.OP_ELECTRON_LATEST_VERSION ?? null;
	return json({
		inElectron,
		currentVersion,
		latestVersion,
		latestUrl: process.env.OP_ELECTRON_LATEST_URL ?? null,
		updateAvailable: !!latestVersion
	});
};

export { GET };
//# sourceMappingURL=_server.ts-33LuQvHu.js.map
