@fluxerjs/rest 1.0.2 → 1.0.4
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.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -129,7 +129,7 @@ var RequestManager = class {
|
|
|
129
129
|
authPrefix: options.authPrefix ?? "Bot",
|
|
130
130
|
timeout: options.timeout ?? 15e3,
|
|
131
131
|
retries: options.retries ?? 3,
|
|
132
|
-
userAgent: options.userAgent ?? "
|
|
132
|
+
userAgent: options.userAgent ?? "fluxerjs"
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
setToken(token) {
|
|
@@ -238,7 +238,7 @@ var REST = class extends import_events.EventEmitter {
|
|
|
238
238
|
authPrefix: options.authPrefix ?? "Bot",
|
|
239
239
|
timeout: options.timeout ?? 15e3,
|
|
240
240
|
retries: options.retries ?? 3,
|
|
241
|
-
userAgent: options.userAgent ?? "
|
|
241
|
+
userAgent: options.userAgent ?? "fluxerjs"
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
setToken(token) {
|
package/dist/index.mjs
CHANGED
|
@@ -96,7 +96,7 @@ var RequestManager = class {
|
|
|
96
96
|
authPrefix: options.authPrefix ?? "Bot",
|
|
97
97
|
timeout: options.timeout ?? 15e3,
|
|
98
98
|
retries: options.retries ?? 3,
|
|
99
|
-
userAgent: options.userAgent ?? "
|
|
99
|
+
userAgent: options.userAgent ?? "fluxerjs"
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
setToken(token) {
|
|
@@ -205,7 +205,7 @@ var REST = class extends EventEmitter {
|
|
|
205
205
|
authPrefix: options.authPrefix ?? "Bot",
|
|
206
206
|
timeout: options.timeout ?? 15e3,
|
|
207
207
|
retries: options.retries ?? 3,
|
|
208
|
-
userAgent: options.userAgent ?? "
|
|
208
|
+
userAgent: options.userAgent ?? "fluxerjs"
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
setToken(token) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.4",
|
|
7
7
|
"description": "REST client for the Fluxer API",
|
|
8
8
|
"main": "./dist/index.js",
|
|
9
9
|
"module": "./dist/index.mjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluxerjs/types": "1.0.
|
|
22
|
+
"@fluxerjs/types": "1.0.4"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^20.0.0",
|