@katorymnd/pawapay-node-sdk 2.6.2 → 2.8.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/CHANGELOG.md CHANGED
@@ -5,32 +5,46 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [1.1.0] - 2025-12-22
8
+ ## [2.8.0] - 2026-04-06
9
9
 
10
10
  ### Added
11
- - **Security Layer:** Implemented surgical JavaScript obfuscation for core API and License logic.
12
- - **Integrity Checker:** Added a new background process to detect if SDK files have been tampered with or modified.
13
- - **Server-Side Validation:** Integrated a heartbeat and domain activation system with `katorymnd.com`.
14
- - **Installation Imprint:** Implemented a unique installation "Soul" (TOFU - Trust On First Use) via the `.pawapay-imprint` system.
15
- - **Path Locking:** Added hardware and project-path fingerprinting to prevent unauthorized SDK migration between servers.
11
+ - **Native Vault Core:** Migrated core security, licensing, and payload logic to compiled Rust binaries (`.node`).
12
+ - **PawaPay API V2:** Full surgical integration of V2 endpoints (Deposits, Payouts, Refunds) alongside V1.
13
+ - **Cross-Platform Support:** Added pre-compiled native support for Windows (x64), Linux (x64/arm64, glibc/musl), and macOS (Intel/Silicon).
14
+ - **Surgical Staging:** Implemented a new `build-secure.js` pipeline that filters development backups and proprietary source files before publication.
15
+ - **Enhanced Test Suite:** Added comprehensive Jest integration and unit tests covering the Native Vault and API logic.
16
16
 
17
17
  ### Changed
18
- - **Build Pipeline:** Moved production builds to a `/dist` folder strategy to ensure development secrets (like `.env`) are never published.
19
- - **Deployment:** Updated the publishing workflow to use `pnpm publish:secure`.
20
- - **License Logic:** Strict domain enforcement via `PAWAPAY_SDK_LICENSE_DOMAIN` environment variable.
18
+ - **Security Strategy:** Replaced legacy JavaScript obfuscation with Native Machine Code protection for industry-leading IP security.
19
+ - **Configuration Logic:** Updated `Config.js` to default to `sandbox` environment automatically if omitted.
20
+ - **Documentation:** Rebranded the SDK as a high-performance Native Core library.
21
+ - **Environment Handling:** Cleaned up `.env.example` to follow standard API provider patterns.
21
22
 
22
23
  ### Fixed
23
- - Fixed an issue where the SDK would occasionally fail to detect the environment in Docker containers.
24
- - Improved error messaging when a license key is missing or the domain is unauthorized.
24
+ - **Jest Collisions:** Fixed a "Haste module naming collision" by implementing `modulePathIgnorePatterns` for the `/dist` folder.
25
+ - **VM Stability:** Resolved an issue where background timers in the VM prevented Jest from exiting cleanly.
26
+ - **URL Normalization:** Improved API URL normalization via native Rust string processing.
25
27
 
26
28
  ### Removed
27
- - Removed localhost forgiveness; all environments now require a valid domain configuration for security.
28
- - Removed development scripts and backup files from the final production distribution.
29
+ - **Obfuscation:** Removed all `javascript-obfuscator` dependencies and logic.
30
+ - **Legacy Artifacts:** Removed `opcodes.json`, `bytecode.bin`, and all `.secure.js` / `.unsecure.js` development files from the production distribution.
31
+
32
+ ---
33
+
34
+ ## [1.1.0] - 2025-12-22
35
+
36
+ ### Added
37
+ - **Security Layer:** Implemented initial JavaScript protection for core API and License logic.
38
+ - **Integrity Checker:** Added background process to detect file modifications.
39
+ - **Installation Imprint:** Implemented unique installation "Soul" (TOFU) via the `.pawapay-imprint` system.
40
+
41
+ ### Changed
42
+ - **Build Pipeline:** Moved production builds to a `/dist` folder strategy.
43
+ - **License Logic:** Strict domain enforcement via `PAWAPAY_SDK_LICENSE_DOMAIN`.
29
44
 
30
45
  ---
31
46
 
32
47
  ## [1.0.0] - 2025-11-15
33
- - Initial release of the PawaPay Node.js SDK.
48
+ - Initial release of the pawaPay Node.js SDK.
34
49
  - Core API client for mobile money deposits and payments.
35
- - Basic error handling and logging.
36
-
50
+ - Basic error handling and logging.
package/LICENSE CHANGED
@@ -1,19 +1,25 @@
1
1
  PROPRIETARY SOFTWARE LICENSE AGREEMENT
2
2
 
3
- Copyright (c) 2025 Katorymnd Web Solutions. All Rights Reserved.
3
+ Copyright (c) 2026 Katorymnd Web Solutions. All Rights Reserved.
4
4
 
5
5
  NOTICE: This software is the proprietary property of Katorymnd Web Solutions. The intellectual property contained herein is protected by copyright and other intellectual property laws.
6
6
 
7
7
  1. LICENSE GRANT
8
- Subject to the terms of this Agreement and payment of the applicable fees, Katorymnd Web Solutions grants you a limited, non-exclusive, non-transferable, revocable license to use the PawaPay Node SDK ("Software") solely for the purpose of integrating PawaPay services into your applications.
8
+ Subject to the terms of this Agreement and payment of the applicable fees, Katorymnd Web Solutions grants you a limited, non-exclusive, non-transferable, revocable license to use the pawaPay Node SDK ("Software"). This license is granted for use on a **single authorized domain** as specified during the purchase and activation process.
9
9
 
10
10
  2. RESTRICTIONS
11
11
  You may NOT:
12
-
13
12
  * Distribute, sub-license, rent, lease, or lend the Software to any third party.
14
- * Make the Software available to the public in any form (including open-source repositories).
15
- * Reverse engineer, decompile, or disassemble the Software (except strictly to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation).
13
+ * Make the Software available to the public in any form (including but not limited to public GitHub/GitLab repositories).
14
+ * Reverse engineer, decompile, disassemble, or attempt to derive the source code from the Native Core binaries (.node files) included in the Software.
15
+ * Bypass, modify, or defeat any license validation or integrity check mechanisms within the Software.
16
16
  * Remove or alter any copyright notices or proprietary markings on the Software.
17
17
 
18
- 3. DISCLAIMER OF WARRANTIES
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. KATORYMND WEB SOLUTIONS DISCLAIMS ALL WARRANTIES, WHETHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18
+ 3. INTELLECTUAL PROPERTY
19
+ Katorymnd Web Solutions retains all rights, title, and interest in and to the Software, including all native compiled binaries and JavaScript wrappers. This Agreement does not grant you any ownership rights to the Software.
20
+
21
+ 4. DISCLAIMER OF WARRANTIES
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. KATORYMND WEB SOLUTIONS DISCLAIMS ALL WARRANTIES, WHETHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
23
+
24
+ 5. TERMINATION
25
+ This license is effective until terminated. Your rights under this license will terminate automatically without notice if you fail to comply with any term(s) of this Agreement, including but not limited to unauthorized domain reuse or tampering with the native core.