@discordjs/rest 2.6.0 → 2.6.1
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/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/strategies/undiciRequest.mjs +3 -3
- package/dist/web.d.mts +5 -5
- package/dist/web.d.ts +5 -5
- package/dist/web.js +2 -2
- package/dist/web.js.map +1 -1
- package/dist/web.mjs +2 -2
- package/dist/web.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
export { ImageSize } from 'discord-api-types/v10';
|
|
1
|
+
import * as undici from 'undici';
|
|
2
|
+
import { RequestInit, BodyInit, Agent, Response, Dispatcher } from 'undici';
|
|
4
3
|
import { Readable } from 'node:stream';
|
|
5
4
|
import { ReadableStream } from 'node:stream/web';
|
|
6
5
|
import { Collection } from '@discordjs/collection';
|
|
7
6
|
import { Awaitable } from '@discordjs/util';
|
|
8
|
-
import
|
|
9
|
-
|
|
7
|
+
import { ImageSize, Snowflake } from 'discord-api-types/v10';
|
|
8
|
+
export { ImageSize } from 'discord-api-types/v10';
|
|
10
9
|
import { AsyncEventEmitter } from '@vladfrangu/async_event_emitter';
|
|
10
|
+
import * as url from 'url';
|
|
11
11
|
|
|
12
12
|
interface IHandler {
|
|
13
13
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
export { ImageSize } from 'discord-api-types/v10';
|
|
1
|
+
import * as undici from 'undici';
|
|
2
|
+
import { RequestInit, BodyInit, Agent, Response, Dispatcher } from 'undici';
|
|
4
3
|
import { Readable } from 'node:stream';
|
|
5
4
|
import { ReadableStream } from 'node:stream/web';
|
|
6
5
|
import { Collection } from '@discordjs/collection';
|
|
7
6
|
import { Awaitable } from '@discordjs/util';
|
|
8
|
-
import
|
|
9
|
-
|
|
7
|
+
import { ImageSize, Snowflake } from 'discord-api-types/v10';
|
|
8
|
+
export { ImageSize } from 'discord-api-types/v10';
|
|
10
9
|
import { AsyncEventEmitter } from '@vladfrangu/async_event_emitter';
|
|
10
|
+
import * as url from 'url';
|
|
11
11
|
|
|
12
12
|
interface IHandler {
|
|
13
13
|
/**
|
package/dist/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
ALLOWED_EXTENSIONS: () => ALLOWED_EXTENSIONS,
|
|
25
25
|
ALLOWED_SIZES: () => ALLOWED_SIZES,
|
|
26
26
|
ALLOWED_STICKER_EXTENSIONS: () => ALLOWED_STICKER_EXTENSIONS,
|
|
@@ -42,7 +42,7 @@ __export(src_exports, {
|
|
|
42
42
|
parseResponse: () => parseResponse,
|
|
43
43
|
version: () => version
|
|
44
44
|
});
|
|
45
|
-
module.exports = __toCommonJS(
|
|
45
|
+
module.exports = __toCommonJS(index_exports);
|
|
46
46
|
var import_node_buffer = require("buffer");
|
|
47
47
|
var import_util2 = require("@discordjs/util");
|
|
48
48
|
var import_undici2 = require("undici");
|
|
@@ -127,7 +127,7 @@ var import_v102 = require("discord-api-types/v10");
|
|
|
127
127
|
// src/lib/utils/constants.ts
|
|
128
128
|
var import_util = require("@discordjs/util");
|
|
129
129
|
var import_v10 = require("discord-api-types/v10");
|
|
130
|
-
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.6.
|
|
130
|
+
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.6.1)`;
|
|
131
131
|
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
|
|
132
132
|
var DefaultRestOptions = {
|
|
133
133
|
agent: null,
|
|
@@ -1483,7 +1483,7 @@ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
1483
1483
|
};
|
|
1484
1484
|
|
|
1485
1485
|
// src/shared.ts
|
|
1486
|
-
var version = "2.6.
|
|
1486
|
+
var version = "2.6.1";
|
|
1487
1487
|
|
|
1488
1488
|
// src/index.ts
|
|
1489
1489
|
globalThis.FormData ??= import_undici2.FormData;
|