@stacksjs/chat 0.64.6 → 0.67.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.
File without changes
@@ -0,0 +1 @@
1
+ export type {};
@@ -0,0 +1 @@
1
+ export type {};
@@ -0,0 +1,3 @@
1
+ export * as discord from "./drivers/discord";
2
+ export * as slack from "./drivers/slack";
3
+ export * as teams from "./drivers/teams";
package/dist/index.js CHANGED
@@ -1,5 +1,2 @@
1
1
  // @bun
2
- var s={};var o={};var e={};export{o as teams,e as slack,s as discord};
3
-
4
- //# debugId=5E0FD0012B9E216564756E2164756E21
5
- //# sourceMappingURL=index.js.map
2
+ var s={};var o={};var e={};export{e as teams,o as slack,s as discord};
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@stacksjs/chat",
3
3
  "type": "module",
4
- "version": "0.64.6",
4
+ "version": "0.67.0",
5
5
  "description": "Easily interact with chat APIs.",
6
6
  "author": "Chris Breuer",
7
+ "contributors": ["Chris Breuer <chris@stacksjs.org>"],
7
8
  "license": "MIT",
8
9
  "funding": "https://github.com/sponsors/chrisbbreuer",
9
10
  "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/chat#readme",
@@ -15,45 +16,30 @@
15
16
  "bugs": {
16
17
  "url": "https://github.com/stacksjs/stacks/issues"
17
18
  },
18
- "keywords": [
19
- "chat",
20
- "stacks",
21
- "discord",
22
- "microsoft teams",
23
- "slack"
24
- ],
19
+ "keywords": ["chat", "stacks", "discord", "microsoft teams", "slack"],
25
20
  "exports": {
26
21
  ".": {
27
- "bun": "./src/index.ts",
28
22
  "import": "./dist/index.js"
29
23
  },
30
24
  "./*": {
31
- "bun": "./src/*",
32
25
  "import": "./dist/*"
33
26
  }
34
27
  },
35
28
  "module": "dist/index.js",
36
29
  "types": "dist/index.d.ts",
37
- "contributors": [
38
- "Chris Breuer <chris@stacksjs.org>"
39
- ],
40
- "files": [
41
- "README.md",
42
- "dist",
43
- "src"
44
- ],
30
+ "files": ["README.md", "dist"],
45
31
  "scripts": {
46
- "build": "bun --bun build.ts",
47
- "typecheck": "bun --bun tsc --noEmit",
32
+ "build": "bun build.ts",
33
+ "typecheck": "bun tsc --noEmit",
48
34
  "prepublishOnly": "bun run build"
49
35
  },
50
36
  "dependencies": {
51
- "@stacksjs/cli": "latest",
52
- "@stacksjs/config": "latest",
53
- "@stacksjs/error-handling": "latest",
54
- "@stacksjs/types": "latest"
37
+ "@stacksjs/cli": "0.67.0",
38
+ "@stacksjs/config": "0.67.0",
39
+ "@stacksjs/error-handling": "0.67.0",
40
+ "@stacksjs/types": "0.67.0"
55
41
  },
56
42
  "devDependencies": {
57
- "@stacksjs/development": "latest"
43
+ "@stacksjs/development": "0.67.0"
58
44
  }
59
45
  }
package/dist/index.js.map DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [
5
- ],
6
- "mappings": "",
7
- "debugId": "5E0FD0012B9E216564756E2164756E21",
8
- "names": []
9
- }
@@ -1,15 +0,0 @@
1
- // import { DiscordProvider } from '@novu/discord'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { ChatOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
-
6
- // const provider = new DiscordProvider({})
7
-
8
- // function send(options: ChatOptions) {
9
- // return ResultAsync.fromPromise(
10
- // provider.sendMessage(options),
11
- // () => new Error(`Failed to send message using provider: ${italic('Discord')}`),
12
- // )
13
- // }
14
-
15
- // export { send as Send, send }
@@ -1,24 +0,0 @@
1
- // import { SlackProvider } from '@novu/slack'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { ChatOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const env = notification.chat.slack
8
-
9
- // const provider = new SlackProvider({
10
- // applicationId: env.appId,
11
- // clientId: env.clientId,
12
- // secretKey: env.secret,
13
- // })
14
-
15
- // function send(options: ChatOptions) {
16
- // return ResultAsync.fromPromise(
17
- // provider.sendMessage(options),
18
- // () => new Error(`Failed to send message using provider: ${italic('Slack')}`),
19
- // )
20
- // }
21
-
22
- // export { send as Send, send }
23
-
24
- export type {}
@@ -1,24 +0,0 @@
1
- // import { MsTeamsProvider } from '@novu/ms-teams'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { ChatOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const env = notification.chat.msTeams
8
-
9
- // const provider = new MsTeamsProvider({
10
- // applicationId: env.appId,
11
- // clientId: env.clientId,
12
- // secretKey: env.secret,
13
- // })
14
-
15
- // function send(options: ChatOptions) {
16
- // return ResultAsync.fromPromise(
17
- // provider.sendMessage(options),
18
- // () => new Error(`Failed to send message using provider: ${italic('MsTeams')}`),
19
- // )
20
- // }
21
-
22
- // export { send as Send, send }
23
-
24
- export type {}
package/src/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * as discord from './drivers/discord'
2
- export * as teams from './drivers/teams'
3
- export * as slack from './drivers/slack'