3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-18 15:00:00 +00:00

fix: remove old references to per-method lodash packages

See https://lodash.com/per-method-packages
This commit is contained in:
Dragory 2024-08-11 22:48:45 +03:00
parent 43b8017985
commit 4ac7ff0843
No known key found for this signature in database
6 changed files with 12 additions and 21 deletions

View file

@ -83,7 +83,7 @@
"@types/express": "^4.16.1", "@types/express": "^4.16.1",
"@types/jest": "^24.0.15", "@types/jest": "^24.0.15",
"@types/js-yaml": "^3.12.1", "@types/js-yaml": "^3.12.1",
"@types/lodash.at": "^4.6.3", "@types/lodash": "^4.17.7",
"@types/moment-timezone": "^0.5.6", "@types/moment-timezone": "^0.5.6",
"@types/multer": "^1.4.7", "@types/multer": "^1.4.7",
"@types/passport": "^1.0.0", "@types/passport": "^1.0.0",

View file

@ -1,6 +1,6 @@
import { guildPluginEventListener } from "knub"; import { guildPluginEventListener } from "knub";
import diff from "lodash.difference"; import { difference } from "lodash";
import isEqual from "lodash.isequal"; import { isEqual } from "lodash";
import { runAutomod } from "../functions/runAutomod.js"; import { runAutomod } from "../functions/runAutomod.js";
import { AutomodContext, AutomodPluginType } from "../types.js"; import { AutomodContext, AutomodPluginType } from "../types.js";
@ -15,8 +15,8 @@ export const RunAutomodOnMemberUpdate = guildPluginEventListener<AutomodPluginTy
if (isEqual(oldRoles, newRoles)) return; if (isEqual(oldRoles, newRoles)) return;
const addedRoles = diff(newRoles, oldRoles); const addedRoles = difference(newRoles, oldRoles);
const removedRoles = diff(oldRoles, newRoles); const removedRoles = difference(oldRoles, newRoles);
if (addedRoles.length || removedRoles.length) { if (addedRoles.length || removedRoles.length) {
const context: AutomodContext = { const context: AutomodContext = {

View file

@ -1,7 +1,7 @@
import { Invite } from "discord.js"; import { Invite } from "discord.js";
import escapeStringRegexp from "escape-string-regexp"; import escapeStringRegexp from "escape-string-regexp";
import { GuildPluginData } from "knub"; import { GuildPluginData } from "knub";
import cloneDeep from "lodash.clonedeep"; import { cloneDeep } from "lodash";
import { allowTimeout } from "../../../RegExpRunner.js"; import { allowTimeout } from "../../../RegExpRunner.js";
import { ZalgoRegex } from "../../../data/Zalgo.js"; import { ZalgoRegex } from "../../../data/Zalgo.js";
import { ISavedMessageEmbedData, SavedMessage } from "../../../data/entities/SavedMessage.js"; import { ISavedMessageEmbedData, SavedMessage } from "../../../data/entities/SavedMessage.js";

View file

@ -1,6 +1,6 @@
import { EmbedData, GuildTextBasedChannel, Snowflake } from "discord.js"; import { EmbedData, GuildTextBasedChannel, Snowflake } from "discord.js";
import { GuildPluginData } from "knub"; import { GuildPluginData } from "knub";
import cloneDeep from "lodash.clonedeep"; import { cloneDeep } from "lodash";
import { SavedMessage } from "../../../data/entities/SavedMessage.js"; import { SavedMessage } from "../../../data/entities/SavedMessage.js";
import { resolveUser } from "../../../utils.js"; import { resolveUser } from "../../../utils.js";
import { logMessageEdit } from "../logFunctions/logMessageEdit.js"; import { logMessageEdit } from "../logFunctions/logMessageEdit.js";

View file

@ -1,6 +1,6 @@
import { GuildMember, PermissionFlagsBits } from "discord.js"; import { GuildMember, PermissionFlagsBits } from "discord.js";
import { GuildPluginData } from "knub"; import { GuildPluginData } from "knub";
import intersection from "lodash.intersection"; import { intersection } from "lodash";
import { PersistedData } from "../../../data/entities/PersistedData.js"; import { PersistedData } from "../../../data/entities/PersistedData.js";
import { SECONDS } from "../../../utils.js"; import { SECONDS } from "../../../utils.js";
import { canAssignRole } from "../../../utils/canAssignRole.js"; import { canAssignRole } from "../../../utils/canAssignRole.js";

17
package-lock.json generated
View file

@ -77,7 +77,7 @@
"@types/express": "^4.16.1", "@types/express": "^4.16.1",
"@types/jest": "^24.0.15", "@types/jest": "^24.0.15",
"@types/js-yaml": "^3.12.1", "@types/js-yaml": "^3.12.1",
"@types/lodash.at": "^4.6.3", "@types/lodash": "^4.17.7",
"@types/moment-timezone": "^0.5.6", "@types/moment-timezone": "^0.5.6",
"@types/multer": "^1.4.7", "@types/multer": "^1.4.7",
"@types/passport": "^1.0.0", "@types/passport": "^1.0.0",
@ -4077,20 +4077,11 @@
"integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ=="
}, },
"node_modules/@types/lodash": { "node_modules/@types/lodash": {
"version": "4.14.202", "version": "4.17.7",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.7.tgz",
"integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", "integrity": "sha512-8wTvZawATi/lsmNu10/j2hk1KEP0IvjubqPE3cu1Xz7xfXXt5oCq3SNUz4fMIP4XGF9Ky+Ue2tBA3hcS7LSBlA==",
"dev": true "dev": true
}, },
"node_modules/@types/lodash.at": {
"version": "4.6.9",
"resolved": "https://registry.npmjs.org/@types/lodash.at/-/lodash.at-4.6.9.tgz",
"integrity": "sha512-y+2AY+tRPkleNTXP9Q6HgUDL3e4Bq+IVxBT39INd9YdB0++hXUENlS6UPdBUQMEuZYAsAfpvdXbab78Qgf/V3g==",
"dev": true,
"dependencies": {
"@types/lodash": "*"
}
},
"node_modules/@types/long": { "node_modules/@types/long": {
"version": "4.0.2", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz",