@stacksjs/sms 0.65.0 → 0.68.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.d.ts CHANGED
@@ -1 +1 @@
1
- export * from "./drivers";
1
+ export * from './drivers'
package/dist/index.js CHANGED
@@ -1,5 +1,2 @@
1
1
  // @bun
2
2
  var s={};var o={};var r={};var i={};var e={};var n={};var t={};var m={};export{m as twilio,t as termii,n as telnyx,e as sns,i as sms77,r as plivo,o as nexmo,s as gupshup};
3
-
4
- //# debugId=E8EFF5AE91DD63CC64756E2164756E21
5
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/sms",
3
3
  "type": "module",
4
- "version": "0.65.0",
4
+ "version": "0.68.0",
5
5
  "description": "The Stacks SMS integration. Painlessly create & manage your inboxes, templates, and send sms.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],
@@ -30,30 +30,28 @@
30
30
  ],
31
31
  "exports": {
32
32
  ".": {
33
- "bun": "./src/index.ts",
34
33
  "import": "./dist/index.js"
35
34
  },
36
35
  "./*": {
37
- "bun": "./src/*",
38
36
  "import": "./dist/*"
39
37
  }
40
38
  },
41
39
  "module": "dist/index.js",
42
40
  "types": "dist/index.d.ts",
43
- "files": ["README.md", "dist", "src"],
41
+ "files": ["README.md", "dist"],
44
42
  "scripts": {
45
43
  "build": "bun build.ts",
46
44
  "typecheck": "bun tsc --noEmit",
47
45
  "prepublishOnly": "bun run build"
48
46
  },
49
47
  "dependencies": {
50
- "@stacksjs/cli": "0.64.6",
51
- "@stacksjs/config": "0.64.6",
52
- "@stacksjs/error-handling": "0.64.6",
53
- "@stacksjs/types": "0.64.6"
48
+ "@stacksjs/cli": "0.67.0",
49
+ "@stacksjs/config": "0.67.0",
50
+ "@stacksjs/error-handling": "0.67.0",
51
+ "@stacksjs/types": "0.67.0"
54
52
  },
55
53
  "devDependencies": {
56
- "@stacksjs/config": "0.64.6",
57
- "@stacksjs/development": "0.64.6"
54
+ "@stacksjs/config": "0.67.0",
55
+ "@stacksjs/development": "0.67.0"
58
56
  }
59
57
  }
File without changes
@@ -1,8 +0,0 @@
1
- export * as gupshup from "./gupshup";
2
- export * as nexmo from "./nexmo";
3
- export * as plivo from "./plivo";
4
- export * as sms77 from "./sms77";
5
- export * as sns from "./sns";
6
- export * as telnyx from "./telnyx";
7
- export * as termii from "./termii";
8
- export * as twilio from "./twilio";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/index.js.map DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [
5
- ],
6
- "mappings": "",
7
- "debugId": "E8EFF5AE91DD63CC64756E2164756E21",
8
- "names": []
9
- }
@@ -1,21 +0,0 @@
1
- // import { GupshupSmsProvider } from '@novu/gupshup'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const env = notification.sms?.drivers.gupshup
8
-
9
- // const provider = new GupshupSmsProvider({
10
- // userId: env?.user || '',
11
- // password: env?.password || '',
12
- // })
13
-
14
- // function send(options: SmsOptions) {
15
- // return ResultAsync.fromPromise(
16
- // provider.sendMessage(options),
17
- // () => new Error(`Failed to send message using provider: ${italic('Gupshup')}`),
18
- // )
19
- // }
20
-
21
- // export { send as Send, send }
@@ -1,8 +0,0 @@
1
- export * as gupshup from './gupshup'
2
- export * as nexmo from './nexmo'
3
- export * as plivo from './plivo'
4
- export * as sms77 from './sms77'
5
- export * as sns from './sns'
6
- export * as telnyx from './telnyx'
7
- export * as termii from './termii'
8
- export * as twilio from './twilio'
@@ -1,23 +0,0 @@
1
- // import { NexmoSmsProvider } from '@novu/nexmo'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.nexmo
9
-
10
- // const provider = new NexmoSmsProvider({
11
- // apiKey: env?.key || '',
12
- // apiSecret: env?.secret || '',
13
- // from: from || '',
14
- // })
15
-
16
- // function send(options: SmsOptions) {
17
- // return ResultAsync.fromPromise(
18
- // provider.sendMessage(options),
19
- // () => new Error(`Failed to send message using provider: ${italic('Nexmo')}`),
20
- // )
21
- // }
22
-
23
- // export { send as Send, send }
@@ -1,23 +0,0 @@
1
- // import { PlivoSmsProvider } from '@novu/plivo'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.plivo
9
-
10
- // const provider = new PlivoSmsProvider({
11
- // accountSid: env?.sid,
12
- // authToken: env?.authToken,
13
- // from: from || '',
14
- // })
15
-
16
- // function send(options: SmsOptions) {
17
- // return ResultAsync.fromPromise(
18
- // provider.sendMessage(options),
19
- // () => new Error(`Failed to send message using provider: ${italic('Plivo')}`),
20
- // )
21
- // }
22
-
23
- // export { send as Send, send }
@@ -1,22 +0,0 @@
1
- // import { Sms77SmsProvider } from '@novu/sms77'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.sms77
9
-
10
- // const provider = new Sms77SmsProvider({
11
- // apiKey: env?.key,
12
- // from,
13
- // })
14
-
15
- // function send(options: SmsOptions) {
16
- // return ResultAsync.fromPromise(
17
- // provider.sendMessage(options),
18
- // () => new Error(`Failed to send message using provider: ${italic('Sms77')}`),
19
- // )
20
- // }
21
-
22
- // export { send as Send, send }
@@ -1,22 +0,0 @@
1
- // import { SNSSmsProvider } from '@novu/sns'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const env = notification.sms?.drivers.sns
8
-
9
- // const provider = new SNSSmsProvider({
10
- // region: env?.region,
11
- // accessKeyId: env?.key,
12
- // secretAccessKey: env?.secret,
13
- // })
14
-
15
- // function send(options: SmsOptions) {
16
- // return ResultAsync.fromPromise(
17
- // provider.sendMessage(options),
18
- // () => new Error(`Failed to send message using provider: ${italic('SNS')}`),
19
- // )
20
- // }
21
-
22
- // export { send as Send, send }
@@ -1,23 +0,0 @@
1
- // import { TelnyxSmsProvider } from '@novu/telnyx'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.telnyx
9
-
10
- // const provider = new TelnyxSmsProvider({
11
- // apiKey: env?.key,
12
- // messageProfileId: env?.messageProfileId,
13
- // from: from || '',
14
- // })
15
-
16
- // function send(options: SmsOptions) {
17
- // return ResultAsync.fromPromise(
18
- // provider.sendMessage(options),
19
- // () => new Error(`Failed to send message using provider: ${italic('Telnyx')}`),
20
- // )
21
- // }
22
-
23
- // export { send as Send, send }
@@ -1,22 +0,0 @@
1
- // import { TermiiSmsProvider } from '@novu/termii'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.termii
9
-
10
- // const provider = new TermiiSmsProvider({
11
- // apiKey: env?.key,
12
- // from: from || '',
13
- // })
14
-
15
- // function send(options: SmsOptions) {
16
- // return ResultAsync.fromPromise(
17
- // provider.sendMessage(options),
18
- // () => new Error(`Failed to send message using provider: ${italic('Termii')}`),
19
- // )
20
- // }
21
-
22
- // export { send as Send, send }
@@ -1,23 +0,0 @@
1
- // import { TwilioSmsProvider } from '@novu/twilio'
2
- // import { italic } from '@stacksjs/cli'
3
- // import type { SmsOptions } from '@stacksjs/types'
4
- // import { ResultAsync } from '@stacksjs/error-handling'
5
- // import { notification } from '@stacksjs/config'
6
-
7
- // const from = notification.sms?.from
8
- // const env = notification.sms?.drivers.twilio
9
-
10
- // const provider = new TwilioSmsProvider({
11
- // accountSid: env?.sid,
12
- // authToken: env?.authToken,
13
- // from: from || '',
14
- // })
15
-
16
- // function send(options: SmsOptions) {
17
- // return ResultAsync.fromPromise(
18
- // provider.sendMessage(options),
19
- // () => new Error(`Failed to send message using provider: ${italic('Twilio')}`),
20
- // )
21
- // }
22
-
23
- // export { send as Send, send }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './drivers'