@bozonx/social-posting-discord 0.8.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/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ import { DiscordPlatform } from './discord.platform.js';
2
+ import { DiscordAuthValidator } from './discord-auth.validator.js';
3
+ import { discordCapabilities } from './capabilities.js';
4
+ /** The descriptor a host registers to publish to Discord. */
5
+ export const discord = {
6
+ name: 'discord',
7
+ capabilities: discordCapabilities,
8
+ create: deps => new DiscordPlatform(deps),
9
+ authValidator: new DiscordAuthValidator(),
10
+ };
11
+ export { DiscordPlatform } from './discord.platform.js';
12
+ export { DiscordAuthValidator, validateDiscordAuth, parseWebhookUrl, authModeOf, } from './discord-auth.validator.js';
13
+ export { DiscordApi, API_VERSION, DEFAULT_API_BASE_URL } from './discord-api.js';
14
+ export { toPlatformError } from './discord-error.js';
15
+ export { discordCapabilities, MAX_MESSAGE_LENGTH, MAX_ATTACHMENTS, MAX_ALT_TEXT_LENGTH, DEFAULT_MAX_ATTACHMENT_BYTES, ATTACHMENT_BYTES_BY_BOOST_TIER, } from './capabilities.js';
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,6DAA6D;AAC7D,MAAM,CAAC,MAAM,OAAO,GAAmB;IACrC,IAAI,EAAE,SAAS;IACf,YAAY,EAAE,mBAAmB;IACjC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC;IACzC,aAAa,EAAE,IAAI,oBAAoB,EAAE;CAC1C,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMxD,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,UAAU,GACX,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAEjF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,4BAA4B,EAC5B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@bozonx/social-posting-discord",
3
+ "version": "0.8.0",
4
+ "description": "Discord platform for @bozonx/social-posting",
5
+ "keywords": [
6
+ "social-media",
7
+ "posting",
8
+ "discord"
9
+ ],
10
+ "type": "module",
11
+ "main": "./dist/index.js",
12
+ "types": "./dist/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "workerd": "./dist/index.js",
17
+ "import": "./dist/index.js",
18
+ "default": "./dist/index.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "README.md",
24
+ "LICENSE"
25
+ ],
26
+ "dependencies": {},
27
+ "peerDependencies": {
28
+ "@bozonx/social-posting": "^0.8.0"
29
+ },
30
+ "devDependencies": {
31
+ "@bozonx/social-posting": "0.8.0",
32
+ "@bozonx/social-posting-conformance": "0.8.0"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public",
36
+ "provenance": true
37
+ },
38
+ "sideEffects": false,
39
+ "author": "Ivan K",
40
+ "license": "MIT",
41
+ "engines": {
42
+ "node": ">=24.0.0"
43
+ },
44
+ "scripts": {
45
+ "build": "tsc -p tsconfig.build.json",
46
+ "clean": "rm -rf dist *.tsbuildinfo",
47
+ "typecheck": "tsc -p tsconfig.json --noEmit"
48
+ }
49
+ }