@flink-app/sms-plugin 0.3.9 → 0.3.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/readme.md +7 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/sms-plugin",
3
- "version": "0.3.9",
3
+ "version": "0.3.12",
4
4
  "description": "Flink plugin that makes it possible to send sms",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\"",
@@ -17,10 +17,10 @@
17
17
  "axios": "^0.27.2"
18
18
  },
19
19
  "devDependencies": {
20
- "@flink-app/flink": "^0.3.8",
20
+ "@flink-app/flink": "^0.3.12",
21
21
  "@types/node": "^15.6.2",
22
22
  "ts-node": "^9.1.1",
23
23
  "typescript": "^4.2.4"
24
24
  },
25
- "gitHead": "660a90494e67b768a560c3618d8a3da3cc5d5144"
25
+ "gitHead": "14e613ca807ffc6f2eac3bdd0e30aebee2778932"
26
26
  }
package/readme.md CHANGED
@@ -17,18 +17,19 @@ npm i -S @flink-app/sms-plugin
17
17
  Add and configure plugin in your app startup (probable the `index.ts` in root project):
18
18
 
19
19
  ```
20
- import { emailPlugin, sendgridClient } from "@flink-app/email-plugin";
20
+ import { smsPlugin, sms46elksClient } from "@flink-app/sms-plugin";
21
21
 
22
22
  function start() {
23
23
  new FlinkApp<AppContext>({
24
24
  name: "My app",
25
25
  plugins: [
26
26
  // Register plugin
27
- emailPlugin({
28
- client : new sendgridClient({
29
- apiKey : process.env.SENDGRID_API_KEY
30
- })
31
- })
27
+ smsPlugin({
28
+ client: new sms46elksClient({
29
+ username: "XX",
30
+ password: "YY",
31
+ }),
32
+ }),
32
33
  ],
33
34
  }).start();
34
35
  }