Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Inrixia committed Oct 19, 2024
1 parent 193b613 commit 0fbe38b
Show file tree
Hide file tree
Showing 8 changed files with 440 additions and 200 deletions.
25 changes: 9 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,22 @@
"devDependencies": {
"@types/clean-css": "^4.2.11",
"@types/html-minifier-terser": "^7.0.2",
"@types/node": "^20.14.12",
"@types/node": "^22.7.7",
"clean-css": "^5.3.3",
"concurrently": "^8.2.2",
"electron": "^31.3.0",
"esbuild": "^0.23.0",
"concurrently": "^9.0.1",
"electron": "^33.0.1",
"esbuild": "^0.24.0",
"html-minifier-terser": "^7.2.0",
"neptune-types": "^1.0.1",
"nodemon": "^3.1.4",
"serve": "^14.2.3",
"tsx": "^4.18.0",
"typescript": "^5.5.4"
},
"dependencies": {
"@inrixia/neptune-plugins": "file:",
"dasha": "^3.0.3",
"flac-stream-tagger": "^1.0.9",
"idb": "^8.0.0",
"music-metadata": "^10.0.0"
"nodemon": "^3.1.7",
"serve": "^14.2.4",
"tsx": "^4.19.1",
"typescript": "^5.6.3"
},
"nodemonConfig": {
"watch": "./plugins/**",
"ignore": "**/dist/**",
"ext": "*",
"exec": "npm run build"
}
}
}
6 changes: 3 additions & 3 deletions plugins/SmallWindow/src/size.native.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import electron from "electron";
import { BrowserWindow } from "electron";

let initialLimits: number[] | undefined;

export const removeLimits = () => {
const win = electron.BrowserWindow.getAllWindows()[0];
const win = BrowserWindow.getAllWindows()[0];
if (!initialLimits) initialLimits = win.getMinimumSize();
win.setMinimumSize(0, 0);
};

export const restoreLimits = () => {
const win = electron.BrowserWindow.getAllWindows()[0];
const win = BrowserWindow.getAllWindows()[0];
if (initialLimits) win.setMinimumSize(initialLimits[0], initialLimits[1]);
};
5 changes: 2 additions & 3 deletions plugins/Testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"author": "Inrixia",
"main": "./src/index.js",
"dependencies": {
"@inrixia/lib": "workspace:*",
"electron": "^31.3.0"
"@inrixia/lib": "workspace:*"
}
}
}
3 changes: 1 addition & 2 deletions plugins/Testing/src/clientIpcLogging.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import type { IpcRenderer, IpcRendererEvent } from "electron";
import { trace } from ".";
import { getClientMessageChannelEnum } from "./test.native";

const ClientMessageChannelEnum = getClientMessageChannelEnum();

const ipcRenderer = window.electron.ipcRenderer;
const ipcListeners: Record<string, (_: IpcRendererEvent, ...args: any[]) => void> = {};
const ipcListeners: Record<string, (_: unknown, ...args: any[]) => void> = {};
export const startClientIpcLogging = async () => {
for (const eventName of Object.values(await ClientMessageChannelEnum)) {
if (eventName === "client.playback.playersignal") continue; // This event is too spammy
Expand Down
4 changes: 2 additions & 2 deletions plugins/Themer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { getStorage } from "@inrixia/lib/storage";
import { setStyle } from "@inrixia/lib/css/setStyle";
import { closeEditor, openEditor as openEditorNative } from "./editor.native";

const setCSS = (_, css: string) => {
const setCSS = (_: unknown, css: string) => {
storage.css = css;
style.css = css;
}
};

const storage = getStorage({ css: "" });
export const openEditor = () => openEditorNative(storage.css);
Expand Down
2 changes: 1 addition & 1 deletion plugins/_lib/native/getTrackInfo.native.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @ts-expect-error I think this thinks its in browser?
// @ts-expect-error Types are wrong parseStream exists
import { parseStream } from "music-metadata";
import { AudioQuality, PlaybackContext } from "../AudioQualityTypes";
import { type ExtendedPlayackInfo, ManifestMimeType } from "../Caches/PlaybackInfoTypes";
Expand Down
6 changes: 5 additions & 1 deletion plugins/_lib/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "@inrixia/lib",
"dependencies": {
"@inrixia/helpers": "^2.0.11"
"@inrixia/helpers": "^2.0.11",
"dasha": "^3.0.5",
"flac-stream-tagger": "^1.0.9",
"idb": "^8.0.0",
"music-metadata": "^10.5.1"
},
"devDependencies": {
"musicbrainz-api": "^0.19.1"
Expand Down
Loading

0 comments on commit 0fbe38b

Please sign in to comment.