@smart-pay-chain/otp 2.0.1 → 2.0.3

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 CHANGED
@@ -1,10 +1,24 @@
1
- # @smartpaychain/otp-sdk
1
+ # @smart-pay-chain/otp
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@smartpaychain/otp-sdk.svg)](https://www.npmjs.com/package/@smartpaychain/otp-sdk)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
- [![TypeScript](https://img.shields.io/badge/TypeScript-5.5-blue.svg)](https://www.typescriptlang.org/)
3
+ <div align="center">
6
4
 
7
- Official TypeScript/JavaScript SDK for the Smart Pay Chain OTP Verification Service. Send and verify one-time passwords via SMS, WhatsApp, and Voice with ease.
5
+ [![npm version](https://img.shields.io/npm/v/@smart-pay-chain/otp.svg?style=flat-square)](https://www.npmjs.com/package/@smart-pay-chain/otp)
6
+ [![npm downloads](https://img.shields.io/npm/dm/@smart-pay-chain/otp.svg?style=flat-square)](https://www.npmjs.com/package/@smart-pay-chain/otp)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)
8
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.5-blue.svg?style=flat-square)](https://www.typescriptlang.org/)
9
+ [![Node.js Version](https://img.shields.io/badge/node-%3E%3D16.0.0-brightgreen.svg?style=flat-square)](https://nodejs.org/)
10
+ [![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg?style=flat-square)](https://github.com/Smart-Pay-Chain/otp)
11
+ [![Coverage](https://img.shields.io/badge/coverage-90%25-brightgreen.svg?style=flat-square)](https://github.com/Smart-Pay-Chain/otp)
12
+
13
+ **Official TypeScript/JavaScript SDK for Smart Pay Chain OTP Verification Service**
14
+
15
+ [Website](https://smartpaychain.com) • [Documentation](https://docs.smartpaychain.com) • [NPM Package](https://www.npmjs.com/package/@smart-pay-chain/otp) • [GitHub](https://github.com/Smart-Pay-Chain/otp)
16
+
17
+ </div>
18
+
19
+ ---
20
+
21
+ Send and verify one-time passwords via SMS, WhatsApp, and Voice with ease.
8
22
 
9
23
  ## What's New in v2.0
10
24
 
@@ -32,19 +46,19 @@ Official TypeScript/JavaScript SDK for the Smart Pay Chain OTP Verification Serv
32
46
  ## Installation
33
47
 
34
48
  ```bash
35
- npm install @smartpaychain/otp-sdk
49
+ npm install @smart-pay-chain/otp
36
50
  ```
37
51
 
38
52
  or
39
53
 
40
54
  ```bash
41
- yarn add @smartpaychain/otp-sdk
55
+ yarn add @smart-pay-chain/otp
42
56
  ```
43
57
 
44
58
  ## Quick Start
45
59
 
46
60
  ```typescript
47
- import { OtpClient, OtpChannel } from '@smartpaychain/otp-sdk';
61
+ import { OtpClient, OtpChannel } from '@smart-pay-chain/otp';
48
62
 
49
63
  // Initialize the client
50
64
  const client = new OtpClient({
@@ -110,7 +124,7 @@ if (testMode) {
110
124
  }
111
125
 
112
126
  // Use test phone numbers
113
- import { TEST_PHONE_NUMBERS, TEST_OTP_CODE } from '@smartpaychain/otp-sdk';
127
+ import { TEST_PHONE_NUMBERS, TEST_OTP_CODE } from '@smart-pay-chain/otp';
114
128
 
115
129
  const result = await client.sendOtp({
116
130
  phoneNumber: TEST_PHONE_NUMBERS.SUCCESS, // +15005550006
@@ -283,7 +297,7 @@ import {
283
297
  RateLimitError,
284
298
  OtpExpiredError,
285
299
  InvalidOtpError,
286
- } from '@smartpaychain/otp-sdk';
300
+ } from '@smart-pay-chain/otp';
287
301
 
288
302
  try {
289
303
  const result = await client.verifyOtp({ ... });
@@ -559,9 +573,13 @@ npm test -- --coverage
559
573
 
560
574
  ## Support
561
575
 
562
- - **Documentation**: [https://docs.smartpaychain.com](https://docs.smartpaychain.com)
563
- - **Issues**: [GitHub Issues](https://github.com/Smart-Pay-Chain/otp/issues)
564
- - **Email**: support@smartpaychain.com
576
+ Need help? We're here for you!
577
+
578
+ - 🌐 **Website**: [smartpaychain.com](https://smartpaychain.com)
579
+ - 📚 **Documentation**: [docs.smartpaychain.com](https://docs.smartpaychain.com)
580
+ - 🐛 **Issues**: [GitHub Issues](https://github.com/Smart-Pay-Chain/otp/issues)
581
+ - 📧 **Email**: [support@smartpaychain.com](mailto:support@smartpaychain.com)
582
+ - 💬 **Community**: [Join our Discord](https://smartpaychain.com/discord)
565
583
 
566
584
  ## Contributing
567
585
 
@@ -577,5 +595,28 @@ See [CHANGELOG.md](./CHANGELOG.md) for version history.
577
595
 
578
596
  ---
579
597
 
580
- Made with ❤️ by [Smart Pay Chain](https://smartpaychain.com)
598
+ <div align="center">
599
+
600
+ ### 🏢 About Smart Pay Chain
601
+
602
+ **Smart Pay Chain** is a leading provider of blockchain-based payment solutions and verification services.
603
+
604
+ 🌐 [smartpaychain.com](https://smartpaychain.com) | 📧 [contact@smartpaychain.com](mailto:contact@smartpaychain.com)
605
+
606
+ **Products & Services**
607
+ - 🔐 OTP Verification Service (SMS, WhatsApp, Voice)
608
+ - 💳 Payment Processing Solutions
609
+ - ⛓️ Blockchain Integration Services
610
+ - 🔒 Secure Authentication Systems
611
+
612
+ ---
613
+
614
+ Made with ❤️ by Smart Pay Chain
615
+
616
+ [![Follow us on Twitter](https://img.shields.io/twitter/follow/smartpaychain?style=social)](https://twitter.com/smartpaychain)
617
+ [![Star on GitHub](https://img.shields.io/github/stars/Smart-Pay-Chain/otp?style=social)](https://github.com/Smart-Pay-Chain/otp)
618
+
619
+ © 2025 Smart Pay Chain. All rights reserved.
620
+
621
+ </div>
581
622
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @smartpaychain/otp-sdk
2
+ * @smart-pay-chain/otp
3
3
  *
4
4
  * Official TypeScript SDK for Smart Pay Chain OTP Verification Service
5
5
  *
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * @smartpaychain/otp-sdk
3
+ * @smart-pay-chain/otp
4
4
  *
5
5
  * Official TypeScript SDK for Smart Pay Chain OTP Verification Service
6
6
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-pay-chain/otp",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Official TypeScript SDK for Smart Pay Chain OTP Verification Service - Now with test mode, mobile examples, and enhanced error handling",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",