@logto/connector-discord 1.0.0-beta.11 → 1.0.0-beta.12
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/index.js +237 -12
- package/lib/src/constant.d.ts +1 -1
- package/lib/src/index.d.ts +2 -2
- package/logo.svg +4 -1
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 375:
|
|
5
5
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
@@ -22,22 +22,22 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
24
24
|
exports.parseJson = exports.validateConfig = void 0;
|
|
25
|
-
const
|
|
26
|
-
__exportStar(__nccwpck_require__(
|
|
25
|
+
const types_js_1 = __nccwpck_require__(6309);
|
|
26
|
+
__exportStar(__nccwpck_require__(6309), exports);
|
|
27
27
|
function validateConfig(config, guard) {
|
|
28
28
|
const result = guard.safeParse(config);
|
|
29
29
|
if (!result.success) {
|
|
30
|
-
throw new
|
|
30
|
+
throw new types_js_1.ConnectorError(types_js_1.ConnectorErrorCodes.InvalidConfig, result.error);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.validateConfig = validateConfig;
|
|
34
|
-
const parseJson = (jsonString, errorCode =
|
|
34
|
+
const parseJson = (jsonString, errorCode = types_js_1.ConnectorErrorCodes.InvalidResponse, errorPayload) => {
|
|
35
35
|
try {
|
|
36
36
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
37
37
|
return JSON.parse(jsonString);
|
|
38
38
|
}
|
|
39
39
|
catch {
|
|
40
|
-
throw new
|
|
40
|
+
throw new types_js_1.ConnectorError(errorCode, errorPayload ?? jsonString);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
exports.parseJson = parseJson;
|
|
@@ -45,13 +45,14 @@ exports.parseJson = parseJson;
|
|
|
45
45
|
|
|
46
46
|
/***/ }),
|
|
47
47
|
|
|
48
|
-
/***/
|
|
48
|
+
/***/ 6309:
|
|
49
49
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
50
50
|
|
|
51
51
|
"use strict";
|
|
52
52
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
54
|
-
exports.messageTypesGuard = exports.MessageTypes = exports.ConnectorError = exports.ConnectorErrorCodes = exports.ConnectorPlatform = exports.ConnectorType = void 0;
|
|
54
|
+
exports.configurableConnectorMetadataGuard = exports.messageTypesGuard = exports.MessageTypes = exports.ConnectorError = exports.ConnectorErrorCodes = exports.i18nPhrasesGuard = exports.ConnectorPlatform = exports.ConnectorType = void 0;
|
|
55
|
+
const language_kit_1 = __nccwpck_require__(7266);
|
|
55
56
|
const zod_1 = __nccwpck_require__(8062);
|
|
56
57
|
// MARK: Foundation
|
|
57
58
|
var ConnectorType;
|
|
@@ -66,6 +67,21 @@ var ConnectorPlatform;
|
|
|
66
67
|
ConnectorPlatform["Universal"] = "Universal";
|
|
67
68
|
ConnectorPlatform["Web"] = "Web";
|
|
68
69
|
})(ConnectorPlatform = exports.ConnectorPlatform || (exports.ConnectorPlatform = {}));
|
|
70
|
+
exports.i18nPhrasesGuard = zod_1.z
|
|
71
|
+
.object({ en: zod_1.z.string() })
|
|
72
|
+
.and(zod_1.z.record(zod_1.z.string()))
|
|
73
|
+
.refine((i18nObject) => {
|
|
74
|
+
const keys = Object.keys(i18nObject);
|
|
75
|
+
if (!keys.includes('en')) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
for (const value of keys) {
|
|
79
|
+
if (!(0, language_kit_1.isLanguageTag)(value)) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return true;
|
|
84
|
+
});
|
|
69
85
|
var ConnectorErrorCodes;
|
|
70
86
|
(function (ConnectorErrorCodes) {
|
|
71
87
|
ConnectorErrorCodes["General"] = "general";
|
|
@@ -100,6 +116,217 @@ var MessageTypes;
|
|
|
100
116
|
MessageTypes["Test"] = "Test";
|
|
101
117
|
})(MessageTypes = exports.MessageTypes || (exports.MessageTypes = {}));
|
|
102
118
|
exports.messageTypesGuard = zod_1.z.nativeEnum(MessageTypes);
|
|
119
|
+
const connectorMetadataGuard = zod_1.z.object({
|
|
120
|
+
id: zod_1.z.string(),
|
|
121
|
+
target: zod_1.z.string(),
|
|
122
|
+
platform: zod_1.z.nativeEnum(ConnectorPlatform).nullable(),
|
|
123
|
+
name: exports.i18nPhrasesGuard,
|
|
124
|
+
logo: zod_1.z.string(),
|
|
125
|
+
logoDark: zod_1.z.string().nullable(),
|
|
126
|
+
description: exports.i18nPhrasesGuard,
|
|
127
|
+
isStandard: zod_1.z.boolean().optional(),
|
|
128
|
+
readme: zod_1.z.string(),
|
|
129
|
+
configTemplate: zod_1.z.string(),
|
|
130
|
+
});
|
|
131
|
+
exports.configurableConnectorMetadataGuard = connectorMetadataGuard
|
|
132
|
+
.pick({
|
|
133
|
+
target: true,
|
|
134
|
+
name: true,
|
|
135
|
+
logo: true,
|
|
136
|
+
logoDark: true,
|
|
137
|
+
})
|
|
138
|
+
.partial();
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/***/ }),
|
|
142
|
+
|
|
143
|
+
/***/ 6921:
|
|
144
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
145
|
+
|
|
146
|
+
"use strict";
|
|
147
|
+
|
|
148
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
149
|
+
exports.languages = void 0;
|
|
150
|
+
exports.languages = Object.freeze({
|
|
151
|
+
'af-ZA': 'Afrikaans',
|
|
152
|
+
'am-ET': 'አማርኛ',
|
|
153
|
+
'ar-AR': 'العربية',
|
|
154
|
+
'as-IN': 'অসমীয়া',
|
|
155
|
+
'az-AZ': 'Azərbaycan dili',
|
|
156
|
+
'be-BY': 'Беларуская',
|
|
157
|
+
'bg-BG': 'Български',
|
|
158
|
+
'bn-IN': 'বাংলা',
|
|
159
|
+
'br-FR': 'Brezhoneg',
|
|
160
|
+
'bs-BA': 'Bosanski',
|
|
161
|
+
'ca-ES': 'Català',
|
|
162
|
+
'cb-IQ': 'کوردیی ناوەندی',
|
|
163
|
+
'co-FR': 'Corsu',
|
|
164
|
+
'cs-CZ': 'Čeština',
|
|
165
|
+
'cx-PH': 'Bisaya',
|
|
166
|
+
'cy-GB': 'Cymraeg',
|
|
167
|
+
'da-DK': 'Dansk',
|
|
168
|
+
de: 'Deutsch',
|
|
169
|
+
'de-DE': 'Deutsch (Deutschland)',
|
|
170
|
+
'el-GR': 'Ελληνικά',
|
|
171
|
+
en: 'English',
|
|
172
|
+
'en-GB': 'English (UK)',
|
|
173
|
+
'en-US': 'English (US)',
|
|
174
|
+
'eo-EO': 'Esperanto',
|
|
175
|
+
es: 'Español',
|
|
176
|
+
'es-ES': 'Español (España)',
|
|
177
|
+
'es-419': 'Español (Latinoamérica)',
|
|
178
|
+
'et-EE': 'Eesti',
|
|
179
|
+
'eu-ES': 'Euskara',
|
|
180
|
+
'fa-IR': 'فارسی',
|
|
181
|
+
'ff-NG': 'Fula',
|
|
182
|
+
'fi-FI': 'Suomi',
|
|
183
|
+
'fo-FO': 'Føroyskt',
|
|
184
|
+
fr: 'Français',
|
|
185
|
+
'fr-CA': 'Français (Canada)',
|
|
186
|
+
'fr-FR': 'Français (France)',
|
|
187
|
+
'fy-NL': 'Frysk',
|
|
188
|
+
'ga-IE': 'Gaeilge',
|
|
189
|
+
'gl-ES': 'Galego',
|
|
190
|
+
'gn-PY': 'Guarani',
|
|
191
|
+
'gu-IN': 'ગુજરાતી',
|
|
192
|
+
'ha-NG': 'Hausa',
|
|
193
|
+
'he-IL': 'עברית',
|
|
194
|
+
'hi-IN': 'हिन्दी',
|
|
195
|
+
'hr-HR': 'Hrvatski',
|
|
196
|
+
'ht-HT': 'Kreyòl Ayisyen',
|
|
197
|
+
'hu-HU': 'Magyar',
|
|
198
|
+
'hy-AM': 'Հայերեն',
|
|
199
|
+
'id-ID': 'Bahasa Indonesia',
|
|
200
|
+
'ik-US': 'Iñupiatun',
|
|
201
|
+
'is-IS': 'Íslenska',
|
|
202
|
+
it: 'Italiano',
|
|
203
|
+
'it-IT': 'italiano (Italia)',
|
|
204
|
+
'iu-CA': 'Inuktitut',
|
|
205
|
+
ja: '日本語',
|
|
206
|
+
'ja-JP': '日本語',
|
|
207
|
+
'ja-KS': '日本語(関西)',
|
|
208
|
+
'jv-ID': 'Basa Jawa',
|
|
209
|
+
'ka-GE': 'ქართული',
|
|
210
|
+
'kk-KZ': 'Қазақша',
|
|
211
|
+
'km-KH': 'ភាសាខ្មែរ',
|
|
212
|
+
'kn-IN': 'ಕನ್ನಡ',
|
|
213
|
+
ko: '한국어',
|
|
214
|
+
'ko-KR': '한국어',
|
|
215
|
+
'ku-TR': 'Kurdî (Kurmancî)',
|
|
216
|
+
'ky-KG': 'кыргызча',
|
|
217
|
+
'lo-LA': 'ພາສາລາວ',
|
|
218
|
+
'lt-LT': 'Lietuvių',
|
|
219
|
+
'lv-LV': 'Latviešu',
|
|
220
|
+
'mg-MG': 'Malagasy',
|
|
221
|
+
'mk-MK': 'Македонски',
|
|
222
|
+
'ml-IN': 'മലയാളം',
|
|
223
|
+
'mn-MN': 'Монгол',
|
|
224
|
+
'mr-IN': 'मराठी',
|
|
225
|
+
'ms-MY': 'Bahasa Melayu',
|
|
226
|
+
'mt-MT': 'Malti',
|
|
227
|
+
'my-MM': 'မြန်မာဘာသာ',
|
|
228
|
+
'nb-NO': 'Norsk (bokmål)',
|
|
229
|
+
'ne-NP': 'नेपाली',
|
|
230
|
+
'nl-BE': 'Vlaams',
|
|
231
|
+
'nl-NL': 'Nederlands',
|
|
232
|
+
'nn-NO': 'Norsk (nynorsk)',
|
|
233
|
+
'or-IN': 'ଓଡ଼ିଆ',
|
|
234
|
+
'pa-IN': 'ਪੰਜਾਬੀ',
|
|
235
|
+
'pl-PL': 'Polski',
|
|
236
|
+
'ps-AF': 'پښتو',
|
|
237
|
+
pt: 'português',
|
|
238
|
+
'pt-BR': 'Português (Brasil)',
|
|
239
|
+
'pt-PT': 'português (Portugal)',
|
|
240
|
+
'ro-RO': 'Română',
|
|
241
|
+
ru: 'Русский',
|
|
242
|
+
'ru-RU': 'Русский',
|
|
243
|
+
'rw-RW': 'Ikinyarwanda',
|
|
244
|
+
'sc-IT': 'Sardu',
|
|
245
|
+
'si-LK': 'සිංහල',
|
|
246
|
+
'sk-SK': 'Slovenčina',
|
|
247
|
+
'sl-SI': 'Slovenščina',
|
|
248
|
+
'sn-ZW': 'Shona',
|
|
249
|
+
'sq-AL': 'Shqip',
|
|
250
|
+
'sr-RS': 'Српски',
|
|
251
|
+
'sv-SE': 'Svenska',
|
|
252
|
+
'sw-KE': 'Kiswahili',
|
|
253
|
+
'sy-SY': 'ܣܘܪܝܝܐ',
|
|
254
|
+
'sz-PL': 'ślōnskŏ gŏdka',
|
|
255
|
+
'ta-IN': 'தமிழ்',
|
|
256
|
+
'te-IN': 'తెలుగు',
|
|
257
|
+
'tg-TJ': 'Тоҷикӣ',
|
|
258
|
+
'th-TH': 'ภาษาไทย',
|
|
259
|
+
'tl-PH': 'Filipino',
|
|
260
|
+
tr: 'Türkçe',
|
|
261
|
+
'tr-TR': 'Türkçe',
|
|
262
|
+
'tt-RU': 'Татарча',
|
|
263
|
+
'tz-MA': 'ⵜⴰⵎⴰⵣⵉⵖⵜ',
|
|
264
|
+
'uk-UA': 'Українська',
|
|
265
|
+
'ur-PK': 'اردو',
|
|
266
|
+
'uz-UZ': "O'zbek",
|
|
267
|
+
'vi-VN': 'Tiếng Việt',
|
|
268
|
+
zh: '中文',
|
|
269
|
+
'zh-CN': '简体中文',
|
|
270
|
+
'zh-HK': '繁體中文(香港)',
|
|
271
|
+
'zh-MO': '繁體中文(澳門)',
|
|
272
|
+
'zh-TW': '繁體中文(台灣)',
|
|
273
|
+
'zz-TR': 'Zaza',
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/***/ }),
|
|
278
|
+
|
|
279
|
+
/***/ 7266:
|
|
280
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
281
|
+
|
|
282
|
+
"use strict";
|
|
283
|
+
|
|
284
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
285
|
+
if (k2 === undefined) k2 = k;
|
|
286
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
287
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
288
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
289
|
+
}
|
|
290
|
+
Object.defineProperty(o, k2, desc);
|
|
291
|
+
}) : (function(o, m, k, k2) {
|
|
292
|
+
if (k2 === undefined) k2 = k;
|
|
293
|
+
o[k2] = m[k];
|
|
294
|
+
}));
|
|
295
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
296
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
297
|
+
};
|
|
298
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
299
|
+
__exportStar(__nccwpck_require__(6921), exports);
|
|
300
|
+
__exportStar(__nccwpck_require__(9962), exports);
|
|
301
|
+
__exportStar(__nccwpck_require__(9715), exports);
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
/***/ }),
|
|
305
|
+
|
|
306
|
+
/***/ 9962:
|
|
307
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
308
|
+
|
|
309
|
+
"use strict";
|
|
310
|
+
|
|
311
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
/***/ }),
|
|
315
|
+
|
|
316
|
+
/***/ 9715:
|
|
317
|
+
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
318
|
+
|
|
319
|
+
"use strict";
|
|
320
|
+
|
|
321
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
322
|
+
exports.languageTagGuard = exports.isLanguageTag = void 0;
|
|
323
|
+
const zod_1 = __nccwpck_require__(8062);
|
|
324
|
+
const const_1 = __nccwpck_require__(6921);
|
|
325
|
+
const isLanguageTag = (value) => typeof value === 'string' && value in const_1.languages;
|
|
326
|
+
exports.isLanguageTag = isLanguageTag;
|
|
327
|
+
exports.languageTagGuard = zod_1.z
|
|
328
|
+
.any()
|
|
329
|
+
.refine((value) => (0, exports.isLanguageTag)(value));
|
|
103
330
|
|
|
104
331
|
|
|
105
332
|
/***/ }),
|
|
@@ -14606,7 +14833,7 @@ exports.oboolean = oboolean;
|
|
|
14606
14833
|
|
|
14607
14834
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14608
14835
|
exports.defaultTimeout = exports.defaultMetadata = exports.scope = exports.userInfoEndpoint = exports.accessTokenEndpoint = exports.authorizationEndpoint = void 0;
|
|
14609
|
-
const connector_kit_1 = __nccwpck_require__(
|
|
14836
|
+
const connector_kit_1 = __nccwpck_require__(375);
|
|
14610
14837
|
/**
|
|
14611
14838
|
* Base authorization URL.
|
|
14612
14839
|
* https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-urls
|
|
@@ -14681,7 +14908,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
14681
14908
|
};
|
|
14682
14909
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14683
14910
|
exports.getAccessToken = void 0;
|
|
14684
|
-
const connector_kit_1 = __nccwpck_require__(
|
|
14911
|
+
const connector_kit_1 = __nccwpck_require__(375);
|
|
14685
14912
|
const essentials_1 = __nccwpck_require__(8138);
|
|
14686
14913
|
const got_1 = __importStar(__nccwpck_require__(5569));
|
|
14687
14914
|
const constant_1 = __nccwpck_require__(87);
|
|
@@ -14720,7 +14947,6 @@ const getAccessToken = async (config, codeObject) => {
|
|
|
14720
14947
|
return { accessToken };
|
|
14721
14948
|
};
|
|
14722
14949
|
exports.getAccessToken = getAccessToken;
|
|
14723
|
-
/* eslint-disable complexity */
|
|
14724
14950
|
const getUserInfo = (getConfig) => async (data) => {
|
|
14725
14951
|
const { code, redirectUri } = await authorizationCallbackHandler(data);
|
|
14726
14952
|
const config = await getConfig(constant_1.defaultMetadata.id);
|
|
@@ -14757,7 +14983,6 @@ const getUserInfo = (getConfig) => async (data) => {
|
|
|
14757
14983
|
throw error;
|
|
14758
14984
|
}
|
|
14759
14985
|
};
|
|
14760
|
-
/* eslint-enable complexity */
|
|
14761
14986
|
const authorizationCallbackHandler = async (parameterObject) => {
|
|
14762
14987
|
const result = types_1.authResponseGuard.safeParse(parameterObject);
|
|
14763
14988
|
if (!result.success) {
|
package/lib/src/constant.d.ts
CHANGED
package/lib/src/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Discord OAuth2 Connector
|
|
3
3
|
* https://discord.com/developers/docs/topics/oauth2
|
|
4
4
|
*/
|
|
5
|
-
import { CreateConnector, SocialConnector } from '@logto/connector-kit';
|
|
6
|
-
import { DiscordConfig } from './types';
|
|
5
|
+
import type { CreateConnector, SocialConnector } from '@logto/connector-kit';
|
|
6
|
+
import type { DiscordConfig } from './types';
|
|
7
7
|
export declare const getAccessToken: (config: DiscordConfig, codeObject: {
|
|
8
8
|
code: string;
|
|
9
9
|
redirectUri: string;
|
package/logo.svg
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
<svg
|
|
1
|
+
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M0.333252 7.00001C0.333252 3.31811 3.31804 0.333344 6.99997 0.333344H27.0001C30.6821 0.333344 33.6668 3.31811 33.6668 7.00001V27C33.6668 30.6819 30.6821 33.6667 27.0001 33.6667H6.99997C3.31804 33.6667 0.333252 30.6819 0.333252 27V7.00001Z" fill="#5865F2"/>
|
|
3
|
+
<path d="M25.0861 10.141C23.5989 9.45859 22.0041 8.95584 20.3366 8.66789C20.3062 8.66234 20.2759 8.67623 20.2603 8.704C20.0552 9.06879 19.828 9.5447 19.6689 9.91875C17.8754 9.65025 16.0912 9.65025 14.3345 9.91875C14.1753 9.53638 13.9399 9.06879 13.7339 8.704C13.7182 8.67715 13.6879 8.66326 13.6575 8.66789C11.991 8.95492 10.3962 9.45767 8.90808 10.141C8.8952 10.1465 8.88415 10.1558 8.87682 10.1678C5.85183 14.6871 5.02316 19.0952 5.42968 23.4487C5.43152 23.47 5.44347 23.4904 5.46003 23.5034C7.45583 24.969 9.38911 25.8588 11.2865 26.4486C11.3169 26.4578 11.349 26.4467 11.3684 26.4217C11.8172 25.8088 12.2173 25.1626 12.5603 24.4829C12.5805 24.4431 12.5612 24.3959 12.5198 24.3802C11.8852 24.1394 11.281 23.8459 10.6997 23.5126C10.6537 23.4858 10.65 23.42 10.6923 23.3885C10.8147 23.2969 10.937 23.2015 11.0538 23.1052C11.0749 23.0876 11.1044 23.0839 11.1292 23.095C14.9479 24.8385 19.0821 24.8385 22.8557 23.095C22.8805 23.083 22.91 23.0867 22.932 23.1043C23.0489 23.2006 23.1712 23.2969 23.2944 23.3885C23.3367 23.42 23.334 23.4858 23.288 23.5126C22.7067 23.8524 22.1025 24.1394 21.4669 24.3792C21.4256 24.395 21.4072 24.4431 21.4274 24.4829C21.7778 25.1616 22.1779 25.8079 22.6184 26.4208C22.6368 26.4467 22.6699 26.4578 22.7003 26.4486C24.6069 25.8588 26.5401 24.969 28.5359 23.5034C28.5534 23.4904 28.5645 23.471 28.5663 23.4497C29.0528 18.4165 27.7514 14.0445 25.1164 10.1687C25.11 10.1558 25.0989 10.1465 25.0861 10.141ZM13.1306 20.7979C11.9809 20.7979 11.0336 19.7424 11.0336 18.4462C11.0336 17.1499 11.9625 16.0944 13.1306 16.0944C14.3078 16.0944 15.2459 17.1592 15.2275 18.4462C15.2275 19.7424 14.2986 20.7979 13.1306 20.7979ZM20.8838 20.7979C19.7342 20.7979 18.7869 19.7424 18.7869 18.4462C18.7869 17.1499 19.7158 16.0944 20.8838 16.0944C22.0611 16.0944 22.9992 17.1592 22.9808 18.4462C22.9808 19.7424 22.0611 20.7979 20.8838 20.7979Z" fill="white"/>
|
|
4
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/connector-discord",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.12",
|
|
4
4
|
"description": "Discord connector implementation.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
"prepack": "pnpm build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@logto/connector-kit": "^1.0.0-beta.
|
|
26
|
+
"@logto/connector-kit": "^1.0.0-beta.26",
|
|
27
27
|
"@silverhand/essentials": "^1.2.0",
|
|
28
|
-
"@silverhand/jest-config": "1.
|
|
28
|
+
"@silverhand/jest-config": "1.2.2",
|
|
29
29
|
"got": "^11.8.2",
|
|
30
30
|
"zod": "^3.14.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@jest/types": "^28.1.3",
|
|
34
|
-
"@silverhand/eslint-config": "1.
|
|
35
|
-
"@silverhand/ts-config": "1.
|
|
34
|
+
"@silverhand/eslint-config": "1.3.0",
|
|
35
|
+
"@silverhand/ts-config": "1.2.1",
|
|
36
36
|
"@types/jest": "^28.1.6",
|
|
37
37
|
"@types/node": "^16.3.1",
|
|
38
38
|
"@vercel/ncc": "^0.34.0",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "4644de2adacd83128a38f923df19c5b1767901e0"
|
|
58
58
|
}
|