seyfert 2.1.1-dev-11635725680.0 → 2.1.1-dev-11640269273.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/common/it/utils.js
CHANGED
|
@@ -259,10 +259,15 @@ exports.ReplaceRegex = {
|
|
|
259
259
|
};
|
|
260
260
|
async function magicImport(path) {
|
|
261
261
|
try {
|
|
262
|
+
if ('Deno' in globalThis)
|
|
263
|
+
throw new Error('https://github.com/denoland/deno/issues/26136');
|
|
262
264
|
return require(path);
|
|
263
265
|
}
|
|
264
|
-
catch {
|
|
265
|
-
|
|
266
|
+
catch (e) {
|
|
267
|
+
// (bun)dows moment
|
|
268
|
+
if (!('Bun' in globalThis) || e.message.includes('is unsupported. use "await import()" instead.'))
|
|
269
|
+
return new Function('path', 'return import(`file:///${path}?update=${Date.now()}`)')(path.split('\\').join('\\\\'));
|
|
270
|
+
throw new Error(`Cannot import ${path}`, { cause: e });
|
|
266
271
|
}
|
|
267
272
|
}
|
|
268
273
|
function fakePromise(value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApplicationIntegrationType, InteractionContextType } from '..';
|
|
2
|
-
import type { ChannelType, Snowflake } from '../..';
|
|
2
|
+
import type { ChannelType, Permissions, Snowflake } from '../..';
|
|
3
3
|
import type { LocaleString } from '../../rest';
|
|
4
4
|
import type { APIAttachment, APIChannel, APIMessage, APIPartialChannel, APIThreadChannel, ThreadChannelType } from '../channel';
|
|
5
5
|
import type { APIGuildMember } from '../guild';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Types extracted from https://discord.com/developers/docs/resources/application
|
|
3
3
|
*/
|
|
4
4
|
import type { LocalizationMap } from '.';
|
|
5
|
-
import type { Snowflake } from '..';
|
|
5
|
+
import type { Permissions, Snowflake } from '..';
|
|
6
6
|
import type { APIPartialGuild } from './guild';
|
|
7
7
|
import type { ApplicationIntegrationType } from './interactions';
|
|
8
8
|
import type { OAuth2Scopes } from './oauth2';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Snowflake } from '..';
|
|
1
|
+
import type { Permissions, Snowflake } from '..';
|
|
2
2
|
import type { APIBan, APIChannel, APIDMChannel, APIExtendedInvite, APIGroupDMChannel, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildMembershipScreening, APIGuildOnboarding, APIGuildOnboardingPrompt, APIGuildOnboardingPromptOption, APIGuildPreview, APIGuildWelcomeScreen, APIGuildWidget, APIGuildWidgetSettings, APIRole, APIThreadList, APIVoiceRegion, GuildDefaultMessageNotifications, GuildExplicitContentFilter, GuildFeature, GuildMFALevel, GuildSystemChannelFlags, GuildVerificationLevel, GuildWidgetStyle } from '../payloads';
|
|
3
3
|
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, DistributiveOmit, DistributivePick, Nullable, StrictPartial, StrictRequired } from '../utils';
|
|
4
4
|
import type { RESTPutAPIChannelPermissionJSONBody } from './channel';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Snowflake } from '..';
|
|
1
|
+
import type { Permissions, Snowflake } from '..';
|
|
2
2
|
import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from '../payloads';
|
|
3
3
|
/**
|
|
4
4
|
* https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information
|
package/lib/types/rest/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Snowflake } from '..';
|
|
1
|
+
import type { Permissions, Snowflake } from '..';
|
|
2
2
|
import type { APIApplicationRoleConnection, APIChannel, APIConnection, APIGuildMember, APIUser, GuildFeature } from '../payloads';
|
|
3
3
|
/**
|
|
4
4
|
* https://discord.com/developers/docs/resources/user#get-current-user
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seyfert",
|
|
3
|
-
"version": "2.1.1-dev-
|
|
3
|
+
"version": "2.1.1-dev-11640269273.0",
|
|
4
4
|
"description": "The most advanced framework for discord bots",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"@biomejs/biome": "1.9.4",
|
|
25
25
|
"@commitlint/cli": "^19.5.0",
|
|
26
26
|
"@commitlint/config-conventional": "^19.5.0",
|
|
27
|
-
"@types/node": "^22.
|
|
27
|
+
"@types/node": "^22.8.6",
|
|
28
28
|
"husky": "^9.1.6",
|
|
29
29
|
"lint-staged": "^15.2.10",
|
|
30
30
|
"typescript": "^5.6.3",
|
|
31
|
-
"vitest": "^2.1.
|
|
31
|
+
"vitest": "^2.1.4"
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://seyfert.dev",
|
|
34
34
|
"repository": {
|