diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-03 21:57:15 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-03 21:57:15 -0500 |
commit | c544cee715d61570a693e300337da08a21213a0e (patch) | |
tree | ec34a19e4ace357665d7f6580a3018a8024ddb45 | |
parent | 821ed93ccf55e4f32f6f25f502bce1e5b161d356 (diff) | |
download | tanzanite-c544cee715d61570a693e300337da08a21213a0e.tar.gz tanzanite-c544cee715d61570a693e300337da08a21213a0e.tar.bz2 tanzanite-c544cee715d61570a693e300337da08a21213a0e.zip |
refactor guild info command
-rw-r--r-- | src/commands/info/guildInfo.ts | 197 | ||||
-rw-r--r-- | src/lib/extensions/discord.js/BushClientEvents.ts | 2 | ||||
-rw-r--r-- | yarn.lock | 160 |
3 files changed, 191 insertions, 168 deletions
diff --git a/src/commands/info/guildInfo.ts b/src/commands/info/guildInfo.ts index 55fb0b2..a4b7fb9 100644 --- a/src/commands/info/guildInfo.ts +++ b/src/commands/info/guildInfo.ts @@ -51,37 +51,74 @@ export default class GuildInfoCommand extends BushCommand { ); } - const otherEmojis = client.consts.mappings.otherEmojis; - let isPreview = false; - let _guild: ArgType<'guild'> | ArgType<'snowflake'> | GuildPreview = args.guild ?? message.guild!; - if (typeof _guild === 'string') { - const preview = await client.fetchGuildPreview(`${args.guild}` as Snowflake).catch(() => {}); - if (preview) { - _guild = preview; - isPreview = true; - } else { - return await message.util.reply(`${util.emojis.error} That guild is not discoverable or does not exist.`); - } + let guild: ArgType<'guild'> | ArgType<'snowflake'> | GuildPreview = args.guild ?? message.guild!; + if (typeof guild === 'string') { + const preview = await client.fetchGuildPreview(`${args.guild}` as Snowflake).catch(() => undefined); + if (preview) guild = preview; + else return await message.util.reply(`${util.emojis.error} That guild is not discoverable or does not exist.`); } - const guild: Guild | GuildPreview = _guild; assert(guild); - const emojis: string[] = []; - const guildAbout: string[] = []; - const guildStats: string[] = []; - const guildSecurity: string[] = []; - const verifiedGuilds = Object.values(client.consts.mappings.guilds); - if (verifiedGuilds.includes(guild.id as typeof verifiedGuilds[number])) emojis.push(otherEmojis.BushVerified); - if (!isPreview && guild instanceof Guild) { - if (guild.premiumTier !== GuildPremiumTier.None) emojis.push(otherEmojis[`BoostTier${guild.premiumTier}`]); + if (guild instanceof Guild) { await guild.fetch(); - const channels = guild.channels.cache; + } - const channelTypes = (['Text', 'Voice', 'News', 'Stage', 'Store', 'Category', 'Thread'] as const).map( - (type) => `${otherEmojis[`Channel${type}`]} ${channels.filter((channel) => channel[`is${type}`]()).size.toLocaleString()}` - ); + const guildInfoEmbed = new Embed().setTitle(guild.name).setColor(util.colors.default); + if (guild.icon) guildInfoEmbed.setThumbnail(guild.iconURL({ size: 2048, extension: 'png' })); + + await this.generateAboutField(guildInfoEmbed, guild); + + this.generateStatsField(guildInfoEmbed, guild); + + this.generateSecurityField(guildInfoEmbed, guild); + + this.generateDescription(guildInfoEmbed, guild); + + return await message.util.reply({ embeds: [guildInfoEmbed] }); + } + + private generateDescription(embed: Embed, guild: Guild | GuildPreview) { + const description: string[] = []; + const otherEmojis = client.consts.mappings.otherEmojis; + + const verifiedGuilds = Object.values(client.consts.mappings.guilds); + if (verifiedGuilds.includes(guild.id as typeof verifiedGuilds[number])) description.push(otherEmojis.BushVerified); + if (guild instanceof Guild) { + if (guild.premiumTier !== GuildPremiumTier.None) description.push(otherEmojis[`BoostTier${guild.premiumTier}`]); + } + + const features = client.consts.mappings.features; + const guildFeatures = guild.features.sort((a, b): number => { + const aWeight = features[a]?.weight; + const bWeight = features[b]?.weight; + + if (aWeight !== undefined && bWeight !== undefined) return aWeight - bWeight; + else if (aWeight === undefined) return 1; + else if (bWeight === undefined) return -1; + return 0; + }); + + if (guildFeatures.length) { + guildFeatures.forEach((feature) => { + if (features[feature]?.emoji) description.push(`${features[feature].emoji}`); + else if (features[feature]?.name) description.push(`\`${features[feature].name}\``); + else description.push(`\`${feature.charAt(0) + util.akairo.snakeToCamelCase(feature).substring(1)}\``); + }); + } + + if (guild.description) { + description.push(`\n\n${guild.description}`); + } + + embed.setDescription(`\u200B${/*zero width space*/ description.join(' ')}`); + } + + private async generateAboutField(embed: Embed, guild: Guild | GuildPreview) { + const guildAbout = []; + + if (guild instanceof Guild) { const guildRegions = [ ...new Set( guild.channels.cache.filter((c) => c.isVoiceBased()).map((c) => (c as BaseGuildVoiceChannel).rtcRegion ?? 'automatic') @@ -106,34 +143,6 @@ export default class GuildInfoCommand extends BushCommand { if (guild.icon) guildAbout.push(`**Icon:** [link](${guild.iconURL({ size: 4096, extension: 'png' })})`); if (guild.banner) guildAbout.push(`**Banner:** [link](${guild.bannerURL({ size: 4096, extension: 'png' })})`); if (guild.splash) guildAbout.push(`**Splash:** [link](${guild.splashURL({ size: 4096, extension: 'png' })})`); - - const EmojiTierMap = { - [GuildPremiumTier.Tier3]: 500, - [GuildPremiumTier.Tier2]: 300, - [GuildPremiumTier.Tier1]: 100, - [GuildPremiumTier.None]: 50 - } as const; - const StickerTierMap = { - [GuildPremiumTier.Tier3]: 60, - [GuildPremiumTier.Tier2]: 30, - [GuildPremiumTier.Tier1]: 15, - [GuildPremiumTier.None]: 0 - } as const; - - guildStats.push( - `**Channels:** ${guild.channels.cache.size.toLocaleString()} / 500 (${channelTypes.join(', ')})`, - // subtract 1 for @everyone role - `**Roles:** ${((guild.roles.cache.size ?? 0) - 1).toLocaleString()} / 250`, - `**Emojis:** ${guild.emojis.cache.size?.toLocaleString() ?? 0} / ${EmojiTierMap[guild.premiumTier]}`, - `**Stickers:** ${guild.stickers.cache.size?.toLocaleString() ?? 0} / ${StickerTierMap[guild.premiumTier]}` - ); - - guildSecurity.push( - `**Verification Level:** ${BushGuildVerificationLevel[guild.verificationLevel]}`, - `**Explicit Content Filter:** ${BushGuildExplicitContentFilter[guild.explicitContentFilter]}`, - `**Default Message Notifications:** ${BushGuildDefaultMessageNotifications[guild.defaultMessageNotifications]}`, - `**2FA Required:** ${guild.mfaLevel === GuildMFALevel.Elevated ? 'True' : 'False'}` - ); } else { guildAbout.push( `**Members:** ${guild.approximateMemberCount?.toLocaleString() ?? 0} (${util.emojis.onlineCircle} ${ @@ -146,44 +155,58 @@ export default class GuildInfoCommand extends BushCommand { ); } - const features = client.consts.mappings.features; - const guildFeatures = guild.features.sort((a, b): number => { - const aWeight = features[a]?.weight; - const bWeight = features[b]?.weight; + embed.addField({ name: '» About', value: guildAbout.join('\n') }); + } - if (aWeight !== undefined && bWeight !== undefined) return aWeight - bWeight; - else if (aWeight == undefined) return 1; - else if (bWeight == undefined) return -1; - return 0; - }); - if (guildFeatures.length) { - guildFeatures.forEach((feature) => { - if (features[feature]?.emoji) emojis.push(`${features[feature].emoji}`); - else if (features[feature]?.name) emojis.push(`\`${features[feature].name}\``); - else emojis.push(`\`${feature}\``); - }); - } + private generateStatsField(embed: Embed, guild: Guild | GuildPreview) { + if (!(guild instanceof Guild)) return; - if (guild.description) { - emojis.push(`\n\n${guild.description}`); - } + const guildStats: string[] = []; - const guildInfoEmbed = new Embed() - .setTitle(guild.name) - .setColor(util.colors.default) - .addField({ name: '» About', value: guildAbout.join('\n') }); - if (guildStats.length) guildInfoEmbed.addField({ name: '» Stats', value: guildStats.join('\n') }); - const guildIcon = guild.iconURL({ size: 2048, extension: 'png' }); - if (guildIcon) { - guildInfoEmbed.setThumbnail(guildIcon); - } - if (!isPreview) { - guildInfoEmbed.addField({ name: '» Security', value: guildSecurity.join('\n') }); - } - if (emojis) { - guildInfoEmbed.setDescription(`\u200B${/*zero width space*/ emojis.join(' ')}`); - } - return await message.util.reply({ embeds: [guildInfoEmbed] }); + const channelTypes = (['Text', 'Voice', 'News', 'Stage', 'Store', 'Category', 'Thread'] as const).map( + (type) => + `${client.consts.mappings.otherEmojis[`Channel${type}`]} ${guild.channels.cache + .filter((channel) => channel[`is${type}`]()) + .size.toLocaleString()}` + ); + + const EmojiTierMap = { + [GuildPremiumTier.Tier3]: 500, + [GuildPremiumTier.Tier2]: 300, + [GuildPremiumTier.Tier1]: 100, + [GuildPremiumTier.None]: 50 + } as const; + const StickerTierMap = { + [GuildPremiumTier.Tier3]: 60, + [GuildPremiumTier.Tier2]: 30, + [GuildPremiumTier.Tier1]: 15, + [GuildPremiumTier.None]: 0 + } as const; + + guildStats.push( + `**Channels:** ${guild.channels.cache.size.toLocaleString()} / 500 (${channelTypes.join(', ')})`, + // subtract 1 for @everyone role + `**Roles:** ${((guild.roles.cache.size ?? 0) - 1).toLocaleString()} / 250`, + `**Emojis:** ${guild.emojis.cache.size?.toLocaleString() ?? 0} / ${EmojiTierMap[guild.premiumTier]}`, + `**Stickers:** ${guild.stickers.cache.size?.toLocaleString() ?? 0} / ${StickerTierMap[guild.premiumTier]}` + ); + + embed.addField({ name: '» Stats', value: guildStats.join('\n') }); + } + + private generateSecurityField(embed: Embed, guild: Guild | GuildPreview) { + if (!(guild instanceof Guild)) return; + + const guildSecurity: string[] = []; + + guildSecurity.push( + `**Verification Level:** ${BushGuildVerificationLevel[guild.verificationLevel]}`, + `**Explicit Content Filter:** ${BushGuildExplicitContentFilter[guild.explicitContentFilter]}`, + `**Default Message Notifications:** ${BushGuildDefaultMessageNotifications[guild.defaultMessageNotifications]}`, + `**2FA Required:** ${guild.mfaLevel === GuildMFALevel.Elevated ? 'True' : 'False'}` + ); + + embed.addField({ name: '» Security', value: guildSecurity.join('\n') }); } } diff --git a/src/lib/extensions/discord.js/BushClientEvents.ts b/src/lib/extensions/discord.js/BushClientEvents.ts index fe60964..50b198d 100644 --- a/src/lib/extensions/discord.js/BushClientEvents.ts +++ b/src/lib/extensions/discord.js/BushClientEvents.ts @@ -83,7 +83,7 @@ export interface BushClientEvents extends AkairoClientEvents { roleCreate: [role: BushRole]; roleDelete: [role: BushRole]; roleUpdate: [oldRole: BushRole, newRole: BushRole]; - threadCreate: [thread: BushThreadChannel]; + threadCreate: [thread: BushThreadChannel, newlyCreated: boolean]; threadDelete: [thread: BushThreadChannel]; threadListSync: [threads: Collection<Snowflake, BushThreadChannel>]; threadMemberUpdate: [oldMember: BushThreadMember, newMember: BushThreadMember]; @@ -5,12 +5,12 @@ __metadata: version: 5 cacheKey: 8 -"@babel/runtime@npm:^7.16.5": - version: 7.16.7 - resolution: "@babel/runtime@npm:7.16.7" +"@babel/runtime@npm:^7.16.7": + version: 7.17.0 + resolution: "@babel/runtime@npm:7.17.0" dependencies: regenerator-runtime: ^0.13.4 - checksum: 47912f0aaacd1cab2e2552aaf3e6eaffbcaf2d5ac9b07a89a12ac0d42029cb92c070b0d16f825e4277c4a34677c54d8ffe85e1f7c6feb57de58f700eec67ce2f + checksum: 1864ac3c6aa061798c706ce858af311f06f6ad6efafc20cca7029fdaa9786c58ccaf5bdb8bd133cb505f27bed7659b65f1503b8da58adbd1eb88f7333644e6ed languageName: node linkType: hard @@ -215,97 +215,97 @@ __metadata: languageName: node linkType: hard -"@sentry/core@npm:6.17.3": - version: 6.17.3 - resolution: "@sentry/core@npm:6.17.3" +"@sentry/core@npm:6.17.4": + version: 6.17.4 + resolution: "@sentry/core@npm:6.17.4" dependencies: - "@sentry/hub": 6.17.3 - "@sentry/minimal": 6.17.3 - "@sentry/types": 6.17.3 - "@sentry/utils": 6.17.3 + "@sentry/hub": 6.17.4 + "@sentry/minimal": 6.17.4 + "@sentry/types": 6.17.4 + "@sentry/utils": 6.17.4 tslib: ^1.9.3 - checksum: b7c1e60da81c46da8ec5142a2f67179dd3895724320de5fa76193a4ccb356eaab1e084147872c5e25453661f4e0b25da57ea7f0d86a990ef88b5382291f9f8d1 + checksum: daf80e9b2df5acaf8eeafabfddf24d30b2f9ab981843e1b01120f428803dc71c58e761005eec17d9004ffb483c210118bad50d774a4042929f0d55d3fb476104 languageName: node linkType: hard -"@sentry/hub@npm:6.17.3": - version: 6.17.3 - resolution: "@sentry/hub@npm:6.17.3" +"@sentry/hub@npm:6.17.4": + version: 6.17.4 + resolution: "@sentry/hub@npm:6.17.4" dependencies: - "@sentry/types": 6.17.3 - "@sentry/utils": 6.17.3 + "@sentry/types": 6.17.4 + "@sentry/utils": 6.17.4 tslib: ^1.9.3 - checksum: 3f12ef7eb8056a0e850ffcbcbf32cfd973d3604132c7d033bc05e6ebb7bebf7c90dfbc6c009a8504f7837d622e9275b45d0f5ad7dd3f9240e4e0cd0012916d96 + checksum: 61c27230a87c071050730a0d8cbd9ae1f92c5007c9852900d288fed5bf35303bdba8acdcb6cad849540085ce81e072b89ba0e1ede249f6d940e81e06c6452af6 languageName: node linkType: hard "@sentry/integrations@npm:^6.17.3": - version: 6.17.3 - resolution: "@sentry/integrations@npm:6.17.3" + version: 6.17.4 + resolution: "@sentry/integrations@npm:6.17.4" dependencies: - "@sentry/types": 6.17.3 - "@sentry/utils": 6.17.3 + "@sentry/types": 6.17.4 + "@sentry/utils": 6.17.4 localforage: ^1.8.1 tslib: ^1.9.3 - checksum: 37c23ad79cff3d47631de8fec19f426df96f522af1af20475122df9c1e2c81e518e937c95d64a16a32451f0386e385c72dbd2a8ac683d475228965f9a116aeaf + checksum: 25587c4b1aa54b35cfba16eb3423f82a2a533a35cdec06a7a3aedf354d74e9ed32bdf5021a6589a3b94c69430a971322db4c380a52942f49be6f9ee9193bf141 languageName: node linkType: hard -"@sentry/minimal@npm:6.17.3": - version: 6.17.3 - resolution: "@sentry/minimal@npm:6.17.3" +"@sentry/minimal@npm:6.17.4": + version: 6.17.4 + resolution: "@sentry/minimal@npm:6.17.4" dependencies: - "@sentry/hub": 6.17.3 - "@sentry/types": 6.17.3 + "@sentry/hub": 6.17.4 + "@sentry/types": 6.17.4 tslib: ^1.9.3 - checksum: af7866cc2a75f5914d11fbd4f3528fd32ce669756d042fafbb26df314d3b20e127780d7c30485737ff4b50930b774afdb2f7fc0b86345b43b551d36db54eefca + checksum: e67efeaf1be5eda8afc1a9254f485fdf861361cc007cf2da18aad09fd7bae98600c94f013e673e907551dda80bc2925353ace2c7709cac42ba2e1924b6da6f04 languageName: node linkType: hard "@sentry/node@npm:^6.17.3": - version: 6.17.3 - resolution: "@sentry/node@npm:6.17.3" - dependencies: - "@sentry/core": 6.17.3 - "@sentry/hub": 6.17.3 - "@sentry/tracing": 6.17.3 - "@sentry/types": 6.17.3 - "@sentry/utils": 6.17.3 + version: 6.17.4 + resolution: "@sentry/node@npm:6.17.4" + dependencies: + "@sentry/core": 6.17.4 + "@sentry/hub": 6.17.4 + "@sentry/tracing": 6.17.4 + "@sentry/types": 6.17.4 + "@sentry/utils": 6.17.4 cookie: ^0.4.1 https-proxy-agent: ^5.0.0 lru_map: ^0.3.3 tslib: ^1.9.3 - checksum: 3e5bd4cbce0d0ff6aa2fc813dcee675182564c93ddf25bb387d9a491c09f4199f463c7f35fe825b92ec0d841ac2dcda32bbab137648f6c05f1638b884673a354 + checksum: 2d1f7844b14b145cf8233b8363fb43240805407d1ee89354184d91fa98ece7d6285453a2d56a8d2c0b6800e28c50a271ce26e7c668995c43dde3f472887958cc languageName: node linkType: hard -"@sentry/tracing@npm:6.17.3, @sentry/tracing@npm:^6.17.3": - version: 6.17.3 - resolution: "@sentry/tracing@npm:6.17.3" +"@sentry/tracing@npm:6.17.4, @sentry/tracing@npm:^6.17.3": + version: 6.17.4 + resolution: "@sentry/tracing@npm:6.17.4" dependencies: - "@sentry/hub": 6.17.3 - "@sentry/minimal": 6.17.3 - "@sentry/types": 6.17.3 - "@sentry/utils": 6.17.3 + "@sentry/hub": 6.17.4 + "@sentry/minimal": 6.17.4 + "@sentry/types": 6.17.4 + "@sentry/utils": 6.17.4 tslib: ^1.9.3 - checksum: b8755c408a7083151b39c939cfff48cffbe5d93eeba8a6c0ba87795766d5437822330dd65e52a2a2d5ce668955c17574508d65e9ca3915cf8f9cb48afbad19cc + checksum: 4f630fece6ff9dd2d9d281ec9d70b30bb2c61ae4673c3780595fbbbc45d855478f4e8d26f1155769ea59fb476e1e9c70a252922992e7a55f935cbfc2696fe9c4 languageName: node linkType: hard -"@sentry/types@npm:6.17.3": - version: 6.17.3 - resolution: "@sentry/types@npm:6.17.3" - checksum: b3b38e725c113bc88fb546e67d9224179a920cdd7c8a9ea1bbf086f65e55f8cdafc720219d191a86b7a2057fc2d1d44beae1849675acd81a2b9278cd37892d41 +"@sentry/types@npm:6.17.4": + version: 6.17.4 + resolution: "@sentry/types@npm:6.17.4" + checksum: e2c514b42cb27143150bcbea3438e65b96deebf5804ffbe6d889c5997cd448ec61ed486a4b903fd57d7297cfcc9cb33d2dd0b3a394830a66fe3b99c0fee05aab languageName: node linkType: hard -"@sentry/utils@npm:6.17.3": - version: 6.17.3 - resolution: "@sentry/utils@npm:6.17.3" +"@sentry/utils@npm:6.17.4": + version: 6.17.4 + resolution: "@sentry/utils@npm:6.17.4" dependencies: - "@sentry/types": 6.17.3 + "@sentry/types": 6.17.4 tslib: ^1.9.3 - checksum: 7da5e7de04448de2d1443a3285b9217da8cd9fda71a945dcef1255cec6df92c8f8e4fcc7927131ae4df717648a7ef6b2a71a234b592b56e540c8ab4d19ccfc4d + checksum: 9c82b947d20a5324573963517fbde006f4b2b9568a788bd24889451eb922e4c726ff239793380d5af1a255c915f86d0c22d118e83eeedb5e0ec61c1b742127e9 languageName: node linkType: hard @@ -481,9 +481,9 @@ __metadata: linkType: hard "@types/node@npm:*, @types/node@npm:^17.0.13": - version: 17.0.13 - resolution: "@types/node@npm:17.0.13" - checksum: 8b87c850c1604c65e3474bd03d122914464b7970caed20f65f4a7706ab429353b896a3916be4d2581164eccda9e3dd95c338fbccf686ff85a824c40d15e8f3fa + version: 17.0.14 + resolution: "@types/node@npm:17.0.14" + checksum: cc059ce29686bad5890685f45741826a1a7d1d27382464f6d5fa00b72ba239f6f5b8245a7fa5a56c23ce928030dc76b165a4ab0b86dc078f05b44597d8fe1a46 languageName: node linkType: hard @@ -1097,9 +1097,9 @@ __metadata: linkType: hard "cookie@npm:^0.4.1": - version: 0.4.1 - resolution: "cookie@npm:0.4.1" - checksum: bd7c47f5d94ab70ccdfe8210cde7d725880d2fcda06d8e375afbdd82de0c8d3b73541996e9ce57d35f67f672c4ee6d60208adec06b3c5fc94cebb85196084cf8 + version: 0.4.2 + resolution: "cookie@npm:0.4.2" + checksum: a00833c998bedf8e787b4c342defe5fa419abd96b32f4464f718b91022586b8f1bafbddd499288e75c037642493c83083da426c6a9080d309e3bd90fd11baa9b languageName: node linkType: hard @@ -1235,8 +1235,8 @@ __metadata: linkType: hard "discord.js@npm:@notenoughupdates/discord.js@dev": - version: 14.0.0-dev.1643657997.31a624d - resolution: "@notenoughupdates/discord.js@npm:14.0.0-dev.1643657997.31a624d" + version: 14.0.0-dev.1643935118.d5ed9fc + resolution: "@notenoughupdates/discord.js@npm:14.0.0-dev.1643935118.d5ed9fc" dependencies: "@discordjs/builders": ^0.12.0 "@discordjs/collection": ^0.5.0 @@ -1246,7 +1246,7 @@ __metadata: discord-api-types: ^0.26.1 node-fetch: ^2.6.7 ws: ^8.4.2 - checksum: 89f20615356d9ca2c0eade1630c2c80eb1f606bf22cdbd51832b2777159fff47954bfca3e2c244be0a739b66eb540e861088404ed7710ae87c90f2a1e633efb0 + checksum: 44f24f2f18eca6a87b778a4948b7749ebfd14152e927c4721da5b1c2044656ad4c80da054cbbdde5d41a46443d31218e9c9a10d5ecf0e8bbf738d2a241465c11 languageName: node linkType: hard @@ -1719,11 +1719,11 @@ __metadata: linkType: hard "globals@npm:^13.6.0, globals@npm:^13.9.0": - version: 13.12.0 - resolution: "globals@npm:13.12.0" + version: 13.12.1 + resolution: "globals@npm:13.12.1" dependencies: type-fest: ^0.20.2 - checksum: 1f959abb11117916468a1afcba527eead152900cad652c8383c4e8976daea7ec55e1ee30c086f48d1b8655719f214e9d92eca083c3a43b5543bc4056e7e5fccf + checksum: cf7877629c8f2a293b0a7d09d1dcce7f2d426ec2528600c481c5b3f3d070b0a120eb2499439ac0404990fb8a5742c0165b1bf1f52603364001ddc89bea3dda24 languageName: node linkType: hard @@ -2006,11 +2006,11 @@ __metadata: linkType: hard "keyv@npm:^4.0.0": - version: 4.0.5 - resolution: "keyv@npm:4.0.5" + version: 4.1.0 + resolution: "keyv@npm:4.1.0" dependencies: json-buffer: 3.0.1 - checksum: 968ec062e66a660bd1c403b2932f602948ea76b17f8419bb04166491c1f186da1c3b39db4ccd1fdb6a19a4dcb374334455dd3ac31e13a70000c81e2daa866117 + checksum: 3f2f15b3e47fb2ac4bcf0323c814db18f92596d0cd7ec938dbe89947e54ce64ab4fac87ec87404213a410b50493648613c30afcf313acf98bcd47f052b8ea831 languageName: node linkType: hard @@ -2120,10 +2120,10 @@ __metadata: linkType: hard "mathjs@npm:^10.1.0": - version: 10.1.0 - resolution: "mathjs@npm:10.1.0" + version: 10.1.1 + resolution: "mathjs@npm:10.1.1" dependencies: - "@babel/runtime": ^7.16.5 + "@babel/runtime": ^7.16.7 complex.js: ^2.0.15 decimal.js: ^10.3.1 escape-latex: ^1.2.0 @@ -2134,7 +2134,7 @@ __metadata: typed-function: ^2.0.0 bin: mathjs: bin/cli.js - checksum: 4a59ccf5ad1c9a536d71287c1f967086644baab83748c7151ad650e0e11fc0778ff132e4269f70c49921867903c020e35be2e9af2e839fd27363843468ec6861 + checksum: 048544208a1e7054314a0ba83fcfd359dcead7875d58799b01f0d39d822fae95aed65d98c2c7b2dc0ca47c15ed2d3171bcae79036ab6b4e4d76ee6ca5b927b4d languageName: node linkType: hard @@ -2923,9 +2923,9 @@ __metadata: linkType: hard "signal-exit@npm:^3.0.0": - version: 3.0.6 - resolution: "signal-exit@npm:3.0.6" - checksum: b819ac81ba757af559dad0804233ae31bf6f054591cd8a671e9cbcf09f21c72ec3076fe87d1e04861f5b33b47d63f0694b568de99c99cd733ee2060515beb6d5 + version: 3.0.7 + resolution: "signal-exit@npm:3.0.7" + checksum: a2f098f247adc367dffc27845853e9959b9e88b01cb301658cfe4194352d8d2bb32e18467c786a7fe15f1d44b233ea35633d076d5e737870b7139949d1ab6318 languageName: node linkType: hard @@ -2937,13 +2937,13 @@ __metadata: linkType: hard "simple-get@npm:^3.0.3": - version: 3.1.0 - resolution: "simple-get@npm:3.1.0" + version: 3.1.1 + resolution: "simple-get@npm:3.1.1" dependencies: decompress-response: ^4.2.0 once: ^1.3.1 simple-concat: ^1.0.0 - checksum: cca91a9ab2b532fa8d367757c196b54e2dfe3325aab0298d66a3e2a45a29a9d335d1a3fb41f036dad14000f78baddd4170fbf9621d72869791d2912baf9469aa + checksum: 80195e70bf171486e75c31e28e5485468195cc42f85940f8b45c4a68472160144d223eb4d07bc82ef80cb974b7c401db021a540deb2d34ac4b3b8883da2d6401 languageName: node linkType: hard |