Skip to content

Commit 0d25d3f

Browse files
authored
fix: autoupdater import (#221)
* fix: update autoUpdater import * chore: updated npm dependencies * Build plugin
1 parent d7b7b29 commit 0d25d3f

File tree

4 files changed

+2010
-2003
lines changed

4 files changed

+2010
-2003
lines changed

resources/js/electron-plugin/dist/server/api/autoUpdater.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import express from "express";
2-
import { autoUpdater } from "electron-updater";
2+
import electronUpdater from 'electron-updater';
3+
const { autoUpdater } = electronUpdater;
34
import { notifyLaravel } from "../utils.js";
45
const router = express.Router();
56
router.post("/check-for-updates", (req, res) => {

resources/js/electron-plugin/src/server/api/autoUpdater.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import express from "express";
2-
import { autoUpdater } from "electron-updater";
2+
import electronUpdater from 'electron-updater';
3+
const { autoUpdater } = electronUpdater;
34
import type { ProgressInfo, UpdateDownloadedEvent } from "electron-updater";
45
import { notifyLaravel } from "../utils.js";
56

0 commit comments

Comments
 (0)