mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
Upgrade dependencies
- mpris-service: migrate to @jellybrick/mpris-service, which has upgraded dependencies and uses class - i18next-parser: 6 -> 8. This requires a small change to i18next-parser.config.js
This commit is contained in:
parent
5259f2401b
commit
89688455e0
2122
package-lock.json
generated
2122
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -253,7 +253,7 @@
|
|||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"husky": "^7.0.4",
|
"husky": "^7.0.4",
|
||||||
"i18next-parser": "^6.6.0",
|
"i18next-parser": "^8.13.0",
|
||||||
"identity-obj-proxy": "^3.0.0",
|
"identity-obj-proxy": "^3.0.0",
|
||||||
"jest": "^27.5.1",
|
"jest": "^27.5.1",
|
||||||
"lint-staged": "^12.3.7",
|
"lint-staged": "^12.3.7",
|
||||||
@ -357,7 +357,7 @@
|
|||||||
"styled-components": "^6"
|
"styled-components": "^6"
|
||||||
},
|
},
|
||||||
"devEngines": {
|
"devEngines": {
|
||||||
"node": ">=14.x",
|
"node": ">=16.x",
|
||||||
"npm": ">=7.x"
|
"npm": ">=7.x"
|
||||||
},
|
},
|
||||||
"browserslist": [],
|
"browserslist": [],
|
||||||
|
2856
release/app/package-lock.json
generated
2856
release/app/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -13,8 +13,8 @@
|
|||||||
"postinstall": "npm run electron-rebuild && npm run link-modules"
|
"postinstall": "npm run electron-rebuild && npm run link-modules"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@jellybrick/mpris-service": "2.1.4",
|
||||||
"cheerio": "^1.0.0-rc.12",
|
"cheerio": "^1.0.0-rc.12",
|
||||||
"mpris-service": "^2.1.2",
|
|
||||||
"ws": "^8.13.0"
|
"ws": "^8.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -37,7 +37,11 @@ module.exports = {
|
|||||||
output: 'src/renderer/i18n/locales/$LOCALE.json',
|
output: 'src/renderer/i18n/locales/$LOCALE.json',
|
||||||
pluralSeparator: '_',
|
pluralSeparator: '_',
|
||||||
resetDefaultValueLocale: 'en',
|
resetDefaultValueLocale: 'en',
|
||||||
skipDefaultValues: false,
|
// Per migration guide, replacement for skipDefaultValues
|
||||||
|
// https://github.com/i18next/i18next-parser/blob/master/docs/migration.md
|
||||||
|
defaultValue: function (locale, namespace, key, value) {
|
||||||
|
return '';
|
||||||
|
},
|
||||||
sort: true,
|
sort: true,
|
||||||
useKeysAsDefaultValue: true,
|
useKeysAsDefaultValue: true,
|
||||||
verbose: false,
|
verbose: false,
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { ipcMain } from 'electron';
|
import { ipcMain } from 'electron';
|
||||||
import Player from 'mpris-service';
|
import Player from '@jellybrick/mpris-service';
|
||||||
import { PlayerRepeat, PlayerStatus, SongUpdate } from '../../../renderer/types';
|
import { PlayerRepeat, PlayerStatus, SongUpdate } from '../../../renderer/types';
|
||||||
import { getMainWindow } from '../../main';
|
import { getMainWindow } from '../../main';
|
||||||
|
|
||||||
const mprisPlayer = Player({
|
const mprisPlayer = new Player({
|
||||||
identity: 'Feishin',
|
identity: 'Feishin',
|
||||||
maximumRate: 1.0,
|
maximumRate: 1.0,
|
||||||
minimumRate: 1.0,
|
minimumRate: 1.0,
|
||||||
|
2
src/types/mpris-service.d.ts
vendored
2
src/types/mpris-service.d.ts
vendored
@ -1 +1 @@
|
|||||||
declare module 'mpris-service';
|
declare module '@jellybrick/mpris-service';
|
||||||
|
Loading…
Reference in New Issue
Block a user