From feaeaec12d07f5edc2ca201f3f52e128e95e4672 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 23 Aug 2024 00:20:58 +0200 Subject: [PATCH] move lodash to devDeps --- package.json | 4 +++- src/main/index.ts | 2 +- src/main/updateChecker.ts | 1 - yarn.lock | 18 ++++++++++++++++++ 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1a4812ce..ebd0c9cf 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "@types/express": "^4.17.21", "@types/leaflet": "^1", "@types/lodash": "^4.14.202", + "@types/lodash.debounce": "^4", "@types/luxon": "^3.4.2", "@types/morgan": "^1.9.9", "@types/node": "18", @@ -88,6 +89,7 @@ "immer": "^10.0.2", "ky": "^0.33.1", "leaflet": "^1.9.4", + "lodash": "^4.17.19", "luxon": "^3.3.0", "mkdirp": "^1.0.3", "mousetrap": "^1.6.5", @@ -137,7 +139,7 @@ "i18next": "^23.12.2", "i18next-fs-backend": "^2.3.2", "json5": "^2.2.2", - "lodash": "^4.17.19", + "lodash.debounce": "^4.0.8", "mime-types": "^2.1.14", "morgan": "^1.10.0", "semver": "^7.6.0", diff --git a/src/main/index.ts b/src/main/index.ts index f51f0208..c3b85fa5 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -5,7 +5,7 @@ process.traceProcessWarnings = true; // eslint-disable-next-line import/no-extraneous-dependencies import electron, { AboutPanelOptionsOptions, BrowserWindow, BrowserWindowConstructorOptions, nativeTheme, shell, app, ipcMain, Notification, NotificationConstructorOptions } from 'electron'; import i18n from 'i18next'; -import debounce from 'lodash/debounce'; +import debounce from 'lodash.debounce'; import yargsParser from 'yargs-parser'; import JSON5 from 'json5'; import remote from '@electron/remote/main'; diff --git a/src/main/updateChecker.ts b/src/main/updateChecker.ts index a761e734..f8c298ad 100644 --- a/src/main/updateChecker.ts +++ b/src/main/updateChecker.ts @@ -1,7 +1,6 @@ // eslint-disable-next-line import/no-extraneous-dependencies import electron from 'electron'; import semver from 'semver'; -// eslint-disable-next-line import/no-extraneous-dependencies import { Octokit } from '@octokit/core'; import logger from './logger.js'; diff --git a/yarn.lock b/yarn.lock index dd466aef..a97e8159 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2066,6 +2066,22 @@ __metadata: languageName: node linkType: hard +"@types/lodash.debounce@npm:^4": + version: 4.0.9 + resolution: "@types/lodash.debounce@npm:4.0.9" + dependencies: + "@types/lodash": "npm:*" + checksum: 10/8183a152e01928e3b97ca773f6ae6038b8695e76493ba8bf6b743ec143948a62294fbc9d49fa4a78b52265b3ba4892ef57534e0c13d04aa0f111671b5a944feb + languageName: node + linkType: hard + +"@types/lodash@npm:*": + version: 4.17.7 + resolution: "@types/lodash@npm:4.17.7" + checksum: 10/b8177f19cf962414a66989837481b13f546afc2e98e8d465bec59e6ac03a59c584eb7053ce511cde3a09c5f3096d22a5ae22cfb56b23f3b0da75b0743b6b1a44 + languageName: node + linkType: hard + "@types/lodash@npm:^4.14.202": version: 4.14.202 resolution: "@types/lodash@npm:4.14.202" @@ -7472,6 +7488,7 @@ __metadata: "@types/express": "npm:^4.17.21" "@types/leaflet": "npm:^1" "@types/lodash": "npm:^4.14.202" + "@types/lodash.debounce": "npm:^4" "@types/luxon": "npm:^3.4.2" "@types/morgan": "npm:^1.9.9" "@types/node": "npm:18" @@ -7519,6 +7536,7 @@ __metadata: ky: "npm:^0.33.1" leaflet: "npm:^1.9.4" lodash: "npm:^4.17.19" + lodash.debounce: "npm:^4.0.8" luxon: "npm:^3.3.0" mime-types: "npm:^2.1.14" mkdirp: "npm:^1.0.3"