@smart-pay-chain/otp 2.0.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/LICENSE +22 -0
- package/README.md +581 -0
- package/dist/errors.d.ts +101 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +161 -0
- package/dist/http-client.d.ts +33 -0
- package/dist/http-client.d.ts.map +1 -0
- package/dist/http-client.js +136 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/otp-client.d.ts +184 -0
- package/dist/otp-client.d.ts.map +1 -0
- package/dist/otp-client.js +314 -0
- package/dist/types.d.ts +275 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +72 -0
- package/package.json +69 -0
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smart-pay-chain/otp",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Official TypeScript SDK for Smart Pay Chain OTP Verification Service - Now with test mode, mobile examples, and enhanced error handling",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md",
|
|
10
|
+
"LICENSE"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "jest --coverage",
|
|
14
|
+
"test:watch": "jest --watch",
|
|
15
|
+
"prebuild": "npm run test",
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"prepare": "npm run build",
|
|
18
|
+
"lint": "eslint src --ext .ts",
|
|
19
|
+
"format": "prettier --write \"src/**/*.ts\" \"examples/**/*.ts\" \"tests/**/*.ts\"",
|
|
20
|
+
"prepublishOnly": "npm run test && npm run build"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"otp",
|
|
24
|
+
"one-time-password",
|
|
25
|
+
"verification",
|
|
26
|
+
"authentication",
|
|
27
|
+
"2fa",
|
|
28
|
+
"two-factor",
|
|
29
|
+
"sms",
|
|
30
|
+
"whatsapp",
|
|
31
|
+
"voice",
|
|
32
|
+
"sdk",
|
|
33
|
+
"typescript",
|
|
34
|
+
"smartpaychain",
|
|
35
|
+
"mobile",
|
|
36
|
+
"react-native",
|
|
37
|
+
"passwordless",
|
|
38
|
+
"phone-auth",
|
|
39
|
+
"test-mode",
|
|
40
|
+
"idempotency"
|
|
41
|
+
],
|
|
42
|
+
"author": "Smart Pay Chain",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "https://github.com/Smart-Pay-Chain/otp.git"
|
|
47
|
+
},
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/Smart-Pay-Chain/otp/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/Smart-Pay-Chain/otp#readme",
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=16.0.0"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"axios": "^1.7.7"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/jest": "^29.5.13",
|
|
60
|
+
"@types/node": "^20.14.0",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^7.13.0",
|
|
62
|
+
"@typescript-eslint/parser": "^7.13.0",
|
|
63
|
+
"eslint": "^8.57.0",
|
|
64
|
+
"jest": "^29.7.0",
|
|
65
|
+
"prettier": "^3.3.3",
|
|
66
|
+
"ts-jest": "^29.2.5",
|
|
67
|
+
"typescript": "^5.5.2"
|
|
68
|
+
}
|
|
69
|
+
}
|