pesapress-lookup 1.0.0 → 1.0.2
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/README.md +2 -0
- package/package.json +2 -2
- package/sammple/index.js +0 -28
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
## PesaPress Lookup
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.org/package/pesapress-lookup)
|
|
4
|
+
|
|
3
5
|
### Goal
|
|
4
6
|
|
|
5
7
|
Make it easy to integrate [PesaPress](https://www.pesapress.com) number lookup service into any application to enable number hash decoding.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pesapress-lookup",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Mpesa lookup API by PesaPress",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "babel src --out-dir dist"
|
|
10
10
|
},
|
|
11
|
-
"keywords": [],
|
|
11
|
+
"keywords": ["mpesa","hashed","safaricom","decode","phone","pesapress"],
|
|
12
12
|
"author": "Paul Kevin <paultitude@gmail.com>",
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"type": "commonjs",
|
package/sammple/index.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const { PesaPressLookup } = require('../dist');
|
|
2
|
-
|
|
3
|
-
async function name() {
|
|
4
|
-
const pesapress = new PesaPressLookup();
|
|
5
|
-
const resp = await pesapress.register('thepaultitude@gmail.com');
|
|
6
|
-
|
|
7
|
-
console.log(resp);
|
|
8
|
-
|
|
9
|
-
console.log('---------------------------');
|
|
10
|
-
|
|
11
|
-
const status = await pesapress.status('1e0o6a1m1S0g1C1b8G57810W');
|
|
12
|
-
|
|
13
|
-
console.log(status);
|
|
14
|
-
|
|
15
|
-
console.log('---------------------------');
|
|
16
|
-
|
|
17
|
-
const statusw = await pesapress.status('123456');
|
|
18
|
-
|
|
19
|
-
console.log(statusw);
|
|
20
|
-
|
|
21
|
-
console.log('---------------------------');
|
|
22
|
-
|
|
23
|
-
const lookup = await pesapress.search('1e0o6a1m1S0g1C1b8G57810W', '56772dd63a7009833e50c7bf67ec1a5616cd20fc32221580fa3a521a73b65352')
|
|
24
|
-
|
|
25
|
-
console.log(lookup);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
name();
|