greip.js 2.3.1 → 2.3.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 +31 -64
- package/lib/index.js +24 -24
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,39 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
<h1>Greip Javascript Library</h1>
|
|
3
|
-
<p>The official JS library of Greip API</p>
|
|
4
|
-
<br />
|
|
5
|
-
<a href="https://github.com/Greipio/Greip-JS/issues/new">Report Issue</a> ·
|
|
6
|
-
<a href="https://github.com/Greipio/Greip-JS/discussions/new">Request Feature</a> ·
|
|
7
|
-
<a href="https://greip.io" target="_BLANK">Home Page</a> ·
|
|
8
|
-
<a href="https://docs.greip.io/tools-and-libraries/js" target="_BLANK">API Docs</a>
|
|
9
|
-
<br />
|
|
10
|
-
<br />
|
|
11
|
-
<a href="https://www.npmjs.com/package/greip.js" title="NPM Package" href="_BLANK"><img src="https://img.shields.io/badge/npm-CB3837?style=for-the-badge&logo=npm&logoColor=white"></a>
|
|
12
|
-
<a href="https://github.com/Greipio/Greip-JS" title="Github Repo" href="_BLANK"><img src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white"></a>
|
|
13
|
-
<a href="https://www.patreon.com/gredev" title="Patreon Profile - GRE Development Ltd." href="_BLANK"><img src="https://img.shields.io/badge/Patreon-ff424e?style=for-the-badge&logo=patreon&logoColor=white"></a>
|
|
14
|
-
<img src="https://img.shields.io/badge/JavaScript-323330?style=for-the-badge&logo=javascript&logoColor=F7DF1E" title="Javascript">
|
|
15
|
-
</div>
|
|
16
|
-
<br />
|
|
1
|
+
# Greip Javascript Package
|
|
17
2
|
|
|
18
|
-
|
|
3
|
+
The official Javascript package of Greip API
|
|
4
|
+
|
|
5
|
+
[Report Issue](https://github.com/Greipio/javascript/issues/new)
|
|
6
|
+
·
|
|
7
|
+
[Request Feature](https://github.com/Greipio/javascript/discussions/new)
|
|
8
|
+
·
|
|
9
|
+
[Greip Website](https://greip.io/)
|
|
10
|
+
·
|
|
11
|
+
[Documentation](https://docs.greip.io/)
|
|
19
12
|
|
|
20
|
-
|
|
13
|
+
[](https://www.npmjs.com/package/greip.js)
|
|
14
|
+
[](https://github.com/Greipio/javascript)
|
|
21
15
|
|
|
22
16
|
[](https://badge.fury.io/js/greip.js)
|
|
23
17
|
|
|
24
|
-

|
|
25
19
|
|
|
26
20
|
[](https://opensource.org/licenses/MIT)
|
|
27
21
|
|
|
28
22
|

|
|
29
|
-
<br /><br />
|
|
30
23
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
No requirements for using this package.
|
|
34
|
-
<br /><br />
|
|
24
|
+
---
|
|
35
25
|
|
|
36
|
-
|
|
26
|
+
## Installation
|
|
37
27
|
|
|
38
28
|
For Node.js, React.js & React Native:
|
|
39
29
|
|
|
@@ -47,14 +37,11 @@ or
|
|
|
47
37
|
yarn add greip.js
|
|
48
38
|
```
|
|
49
39
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
# Usage
|
|
40
|
+
## Usage
|
|
53
41
|
|
|
54
42
|
Here's how you use the API Methods:
|
|
55
|
-
<br /><br />
|
|
56
43
|
|
|
57
|
-
|
|
44
|
+
### 1. IP Geolocation Method
|
|
58
45
|
|
|
59
46
|
```javascript
|
|
60
47
|
import { GeoIP } from 'greip.js';
|
|
@@ -70,9 +57,7 @@ await GeoIP({
|
|
|
70
57
|
});
|
|
71
58
|
```
|
|
72
59
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
## 2. IP Lookup Method
|
|
60
|
+
### 2. IP Lookup Method
|
|
76
61
|
|
|
77
62
|
```javascript
|
|
78
63
|
import { Lookup } from 'greip.js';
|
|
@@ -89,9 +74,7 @@ await Lookup({
|
|
|
89
74
|
});
|
|
90
75
|
```
|
|
91
76
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
## 3. Bulk IP Lookup Method
|
|
77
|
+
### 3. Bulk IP Lookup Method
|
|
95
78
|
|
|
96
79
|
```javascript
|
|
97
80
|
import { BulkLookup } from 'greip.js';
|
|
@@ -108,9 +91,7 @@ await BulkLookup({
|
|
|
108
91
|
});
|
|
109
92
|
```
|
|
110
93
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
## 4. ASN Lookup Method
|
|
94
|
+
### 4. ASN Lookup Method
|
|
114
95
|
|
|
115
96
|
```javascript
|
|
116
97
|
import { ASN } from 'greip.js';
|
|
@@ -127,9 +108,7 @@ await ASN({
|
|
|
127
108
|
});
|
|
128
109
|
```
|
|
129
110
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
## 5. Profanity Detection Method
|
|
111
|
+
### 5. Profanity Detection Method
|
|
133
112
|
|
|
134
113
|
```javascript
|
|
135
114
|
import { BadWord } from 'greip.js';
|
|
@@ -146,9 +125,7 @@ await BadWord({
|
|
|
146
125
|
});
|
|
147
126
|
```
|
|
148
127
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
## 6. Country Lookup Method
|
|
128
|
+
### 6. Country Lookup Method
|
|
152
129
|
|
|
153
130
|
```javascript
|
|
154
131
|
import { Country } from 'greip.js';
|
|
@@ -165,9 +142,7 @@ await Country({
|
|
|
165
142
|
});
|
|
166
143
|
```
|
|
167
144
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
## 7. Email Validation Method
|
|
145
|
+
### 7. Email Validation Method
|
|
171
146
|
|
|
172
147
|
```javascript
|
|
173
148
|
import { EmailValidation } from 'greip.js';
|
|
@@ -184,9 +159,7 @@ await EmailValidation({
|
|
|
184
159
|
});
|
|
185
160
|
```
|
|
186
161
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
## 8. Phone Validation Method
|
|
162
|
+
### 8. Phone Validation Method
|
|
190
163
|
|
|
191
164
|
```javascript
|
|
192
165
|
import { PhoneValidation } from 'greip.js';
|
|
@@ -204,9 +177,7 @@ await PhoneValidation({
|
|
|
204
177
|
});
|
|
205
178
|
```
|
|
206
179
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
## 9. Payment Fraud Prevention Method
|
|
180
|
+
### 9. Payment Fraud Prevention Method
|
|
210
181
|
|
|
211
182
|
```javascript
|
|
212
183
|
import { PaymentFraud } from 'greip.js';
|
|
@@ -283,9 +254,7 @@ await PaymentFraud({
|
|
|
283
254
|
});
|
|
284
255
|
```
|
|
285
256
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
## 10. IBAN Validation Method
|
|
257
|
+
### 10. IBAN Validation Method
|
|
289
258
|
|
|
290
259
|
```javascript
|
|
291
260
|
await IBANValidation({
|
|
@@ -300,17 +269,15 @@ await IBANValidation({
|
|
|
300
269
|
});
|
|
301
270
|
```
|
|
302
271
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
# Options, Methods and More
|
|
272
|
+
## Options, Methods and More
|
|
306
273
|
|
|
307
274
|
You can find the full guide of this package by visiting our [Documentation Page](https://docs.greip.io/).
|
|
308
275
|
|
|
309
|
-
|
|
276
|
+
## Credits
|
|
310
277
|
|
|
311
278
|
- [Greip Developers](https://greip.io)
|
|
312
|
-
- [All Contributors](https://github.com/Greipio/
|
|
279
|
+
- [All Contributors](https://github.com/Greipio/javascript/graphs/contributors)
|
|
313
280
|
|
|
314
|
-
|
|
281
|
+
## License
|
|
315
282
|
|
|
316
|
-
The MIT License (MIT). Please see [License](https://github.com/Greipio/
|
|
283
|
+
The MIT License (MIT). Please see [License](https://github.com/Greipio/javascript/blob/main/LICENSE) File for more information.
|
package/lib/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var GeoIP = function (options) {
|
|
|
20
20
|
if (!util_1.availableGeoIPParams.includes(perParam)) {
|
|
21
21
|
reject(new Error('The "' +
|
|
22
22
|
perParam +
|
|
23
|
-
'" module you used is unknown.\nYou can use: `location`, `security`, `timezone`, `currency` and/or `device`.\nRead more at: https://
|
|
23
|
+
'" module you used is unknown.\nYou can use: `location`, `security`, `timezone`, `currency` and/or `device`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/geoip'));
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
});
|
|
@@ -28,19 +28,19 @@ var GeoIP = function (options) {
|
|
|
28
28
|
if (!util_1.availableFormats.includes(format1)) {
|
|
29
29
|
reject(new Error('The `format` option value "' +
|
|
30
30
|
format1 +
|
|
31
|
-
'" you specified is unknown.\nYou can use: `JSON`, `XML`, `CSV` or `Newline`.\nRead more at: https://
|
|
31
|
+
'" you specified is unknown.\nYou can use: `JSON`, `XML`, `CSV` or `Newline`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/geoip'));
|
|
32
32
|
}
|
|
33
33
|
// Validate the lang variable
|
|
34
34
|
if (!util_1.availableLanguages.includes(lang1)) {
|
|
35
35
|
reject(new Error('The `lang` option value "' +
|
|
36
36
|
lang1 +
|
|
37
|
-
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://
|
|
37
|
+
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/geoip'));
|
|
38
38
|
}
|
|
39
39
|
// Validate the mode variable
|
|
40
40
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
41
41
|
reject(new Error('The `mode` option value "' +
|
|
42
42
|
mode1 +
|
|
43
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://
|
|
43
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/geoip'));
|
|
44
44
|
}
|
|
45
45
|
(0, util_1.makeHttpRquest)('GeoIP', {
|
|
46
46
|
key: options.key,
|
|
@@ -79,7 +79,7 @@ var Lookup = function (options) {
|
|
|
79
79
|
if (!util_1.availableGeoIPParams.includes(perParam)) {
|
|
80
80
|
reject(new Error('The "' +
|
|
81
81
|
perParam +
|
|
82
|
-
'" module you used is unknown.\nYou can use: `location`, `security`, `timezone`, `currency` and/or `device`.\nRead more at: https://
|
|
82
|
+
'" module you used is unknown.\nYou can use: `location`, `security`, `timezone`, `currency` and/or `device`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/ip-lookup'));
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
@@ -87,19 +87,19 @@ var Lookup = function (options) {
|
|
|
87
87
|
if (!util_1.availableFormats.includes(format1)) {
|
|
88
88
|
reject(new Error('The `format` option value "' +
|
|
89
89
|
format1 +
|
|
90
|
-
'" you specified is unknown.\nYou can use: `JSON`, `XML`, `CSV` or `Newline`.\nRead more at: https://
|
|
90
|
+
'" you specified is unknown.\nYou can use: `JSON`, `XML`, `CSV` or `Newline`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/ip-lookup'));
|
|
91
91
|
}
|
|
92
92
|
// Validate the lang variable
|
|
93
93
|
if (!util_1.availableLanguages.includes(lang1)) {
|
|
94
94
|
reject(new Error('The `lang` option value "' +
|
|
95
95
|
lang1 +
|
|
96
|
-
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://
|
|
96
|
+
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/ip-lookup'));
|
|
97
97
|
}
|
|
98
98
|
// Validate the mode variable
|
|
99
99
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
100
100
|
reject(new Error('The `mode` option value "' +
|
|
101
101
|
mode1 +
|
|
102
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://
|
|
102
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/ip-lookup'));
|
|
103
103
|
}
|
|
104
104
|
(0, util_1.makeHttpRquest)('IPLookup', {
|
|
105
105
|
ip: ip1,
|
|
@@ -146,7 +146,7 @@ var BulkLookup = function (options) {
|
|
|
146
146
|
if (!util_1.availableGeoIPParams.includes(perParam)) {
|
|
147
147
|
reject(new Error('The "' +
|
|
148
148
|
perParam +
|
|
149
|
-
'" module you used is unknown.\nYou can use: `location`, `security`, `timezone`, `currency` and/or `device`.\nRead more at: https://
|
|
149
|
+
'" module you used is unknown.\nYou can use: `location`, `security`, `timezone`, `currency` and/or `device`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/ip-lookup'));
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
});
|
|
@@ -154,19 +154,19 @@ var BulkLookup = function (options) {
|
|
|
154
154
|
if (!util_1.availableFormats.includes(format1)) {
|
|
155
155
|
reject(new Error('The `format` option value "' +
|
|
156
156
|
format1 +
|
|
157
|
-
'" you specified is unknown.\nYou can use: `JSON`, `XML`, `CSV` or `Newline`.\nRead more at: https://
|
|
157
|
+
'" you specified is unknown.\nYou can use: `JSON`, `XML`, `CSV` or `Newline`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/ip-lookup'));
|
|
158
158
|
}
|
|
159
159
|
// Validate the lang variable
|
|
160
160
|
if (!util_1.availableLanguages.includes(lang1)) {
|
|
161
161
|
reject(new Error('The `lang` option value "' +
|
|
162
162
|
lang1 +
|
|
163
|
-
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://
|
|
163
|
+
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/ip-lookup'));
|
|
164
164
|
}
|
|
165
165
|
// Validate the mode variable
|
|
166
166
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
167
167
|
reject(new Error('The `mode` option value "' +
|
|
168
168
|
mode1 +
|
|
169
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://
|
|
169
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/ip-lookup'));
|
|
170
170
|
}
|
|
171
171
|
(0, util_1.makeHttpRquest)('BulkLookup', {
|
|
172
172
|
ips: ips1,
|
|
@@ -207,7 +207,7 @@ var Country = function (options) {
|
|
|
207
207
|
if (!util_1.availableCountryParams.includes(perParam)) {
|
|
208
208
|
reject(new Error('The "' +
|
|
209
209
|
perParam +
|
|
210
|
-
'" module you used is unknown.\nYou can use: `language`, `flag`, `currency` and/or `timezone`.\nRead more at: https://docs.greip.io/
|
|
210
|
+
'" module you used is unknown.\nYou can use: `language`, `flag`, `currency` and/or `timezone`.\nRead more at: https://docs.greip.io/api-reference/endpoint/other-services/country-data'));
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
});
|
|
@@ -215,19 +215,19 @@ var Country = function (options) {
|
|
|
215
215
|
if (!util_1.availableFormats.includes(format1)) {
|
|
216
216
|
reject(new Error('The `format` option value "' +
|
|
217
217
|
format1 +
|
|
218
|
-
'" you specified is unknown.\nYou can use: `JSON`, `XML`, `CSV` or `Newline`.\nRead more at: https://docs.greip.io/
|
|
218
|
+
'" you specified is unknown.\nYou can use: `JSON`, `XML`, `CSV` or `Newline`.\nRead more at: https://docs.greip.io/api-reference/endpoint/other-services/country-data'));
|
|
219
219
|
}
|
|
220
220
|
// Validate the lang variable
|
|
221
221
|
if (!util_1.availableLanguages.includes(lang1)) {
|
|
222
222
|
reject(new Error('The `lang` option value "' +
|
|
223
223
|
lang1 +
|
|
224
|
-
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://docs.greip.io/
|
|
224
|
+
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://docs.greip.io/api-reference/endpoint/other-services/country-data'));
|
|
225
225
|
}
|
|
226
226
|
// Validate the mode variable
|
|
227
227
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
228
228
|
reject(new Error('The `mode` option value "' +
|
|
229
229
|
mode1 +
|
|
230
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/
|
|
230
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/other-services/country-data'));
|
|
231
231
|
}
|
|
232
232
|
(0, util_1.makeHttpRquest)('Country', {
|
|
233
233
|
CountryCode: countryCode,
|
|
@@ -265,19 +265,19 @@ var BadWord = function (options) {
|
|
|
265
265
|
if (!util_1.availableFormats.includes(format1)) {
|
|
266
266
|
reject(new Error('The `format` option value "' +
|
|
267
267
|
format1 +
|
|
268
|
-
'" you specified is unknown.\nYou can use: `JSON`, `XML` or `CSV`.\nRead more at: https://docs.greip.io/
|
|
268
|
+
'" you specified is unknown.\nYou can use: `JSON`, `XML` or `CSV`.\nRead more at: https://docs.greip.io/api-reference/endpoint/other-services/profanity-detection'));
|
|
269
269
|
}
|
|
270
270
|
// Validate the lang variable
|
|
271
271
|
if (!util_1.availableLanguages.includes(lang1)) {
|
|
272
272
|
reject(new Error('The `lang` option value "' +
|
|
273
273
|
lang1 +
|
|
274
|
-
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://docs.greip.io/
|
|
274
|
+
'" you specified is unknown.\nYou can use: `EN`, `AR`, `DE`, `FR`, `ES`, `JA`, `ZH` or `RU`.\nRead more at: https://docs.greip.io/api-reference/endpoint/other-services/profanity-detection'));
|
|
275
275
|
}
|
|
276
276
|
// Validate the mode variable
|
|
277
277
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
278
278
|
reject(new Error('The `mode` option value "' +
|
|
279
279
|
mode1 +
|
|
280
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/
|
|
280
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/other-services/profanity-detection'));
|
|
281
281
|
}
|
|
282
282
|
(0, util_1.makeHttpRquest)('badWords', {
|
|
283
283
|
text: text1,
|
|
@@ -311,7 +311,7 @@ var ASN = function (options) {
|
|
|
311
311
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
312
312
|
reject(new Error('The `mode` option value "' +
|
|
313
313
|
mode1 +
|
|
314
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/
|
|
314
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/ip-geolocation/asn-lookup'));
|
|
315
315
|
}
|
|
316
316
|
(0, util_1.makeHttpRquest)('ASNLookup', {
|
|
317
317
|
asn: asn1,
|
|
@@ -342,7 +342,7 @@ var EmailValidation = function (options) {
|
|
|
342
342
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
343
343
|
reject(new Error('The `mode` option value "' +
|
|
344
344
|
mode1 +
|
|
345
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/
|
|
345
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/data-validation/email-lookup'));
|
|
346
346
|
}
|
|
347
347
|
(0, util_1.makeHttpRquest)('validateEmail', {
|
|
348
348
|
email: email1,
|
|
@@ -373,7 +373,7 @@ var PaymentFraud = function (options) {
|
|
|
373
373
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
374
374
|
reject(new Error('The `mode` option value "' +
|
|
375
375
|
mode1 +
|
|
376
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/
|
|
376
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/payment-fraud/payment-fraud-prevention'));
|
|
377
377
|
}
|
|
378
378
|
(0, util_1.makePostRquest)('paymentFraud', {
|
|
379
379
|
data: data1,
|
|
@@ -405,7 +405,7 @@ var PhoneValidation = function (options) {
|
|
|
405
405
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
406
406
|
reject(new Error('The `mode` option value "' +
|
|
407
407
|
mode1 +
|
|
408
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/
|
|
408
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/data-validation/phone-lookup'));
|
|
409
409
|
}
|
|
410
410
|
(0, util_1.makeHttpRquest)('validatePhone', {
|
|
411
411
|
phone: phone1,
|
|
@@ -437,7 +437,7 @@ var IBANValidation = function (options) {
|
|
|
437
437
|
if (mode1 !== 'live' && mode1 !== 'test') {
|
|
438
438
|
reject(new Error('The `mode` option value "' +
|
|
439
439
|
mode1 +
|
|
440
|
-
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/
|
|
440
|
+
'" you specified is unknown.\nYou can use: `live` or `test`.\nRead more at: https://docs.greip.io/api-reference/endpoint/payment-fraud/iban-validation'));
|
|
441
441
|
}
|
|
442
442
|
(0, util_1.makeHttpRquest)('validateIBAN', {
|
|
443
443
|
iban: iban1,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "greip.js",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"description": "The official
|
|
3
|
+
"version": "2.3.2",
|
|
4
|
+
"description": "The official Javascript library of Greip.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Greip",
|
|
7
7
|
"email": "info@greip.io",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"lib/**/*"
|
|
26
26
|
],
|
|
27
|
-
"homepage": "https://github.com/Greipio/
|
|
27
|
+
"homepage": "https://github.com/Greipio/javascript#readme",
|
|
28
28
|
"bugs": {
|
|
29
|
-
"url": "https://github.com/Greipio/
|
|
29
|
+
"url": "https://github.com/Greipio/javascript/issues",
|
|
30
30
|
"email": "info@greip.io"
|
|
31
31
|
},
|
|
32
32
|
"funding": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|
|
49
|
-
"url": "https://github.com/Greipio/
|
|
49
|
+
"url": "https://github.com/Greipio/javascript.git"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"axios": "^0.25.0"
|