@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.
- package/package.json +3 -3
- 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.
|
|
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.
|
|
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": "
|
|
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 {
|
|
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
|
-
|
|
28
|
-
client
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
smsPlugin({
|
|
28
|
+
client: new sms46elksClient({
|
|
29
|
+
username: "XX",
|
|
30
|
+
password: "YY",
|
|
31
|
+
}),
|
|
32
|
+
}),
|
|
32
33
|
],
|
|
33
34
|
}).start();
|
|
34
35
|
}
|