@yosle/tropipayjs 0.1.18 → 0.1.19

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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -689,7 +689,9 @@ const SERVER_MODE = "Development"; // Move the constant here
689
689
  * @license MIT
690
690
  */
691
691
  if (typeof window !== "undefined") {
692
- console.warn("DANGER This library should not be used client side, your credentials could be exposed");
692
+ console.warn(`⚠️ **Warning:** The Tropipay SDK should only be instantiated server-side for security reasons.
693
+ Using it client-side may lead to unexpected behavior and security vulnerabilities. YOUR CREDENTIALS COULD BE EXPOSED. Check
694
+ https://yosle.github.io/tropipayjs-docs/guides/installation/ for more details.`);
693
695
  }
694
696
 
695
697
  exports.ClientSideUtils = ClientSideUtils;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yosle/tropipayjs",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "Javascript / Typescript SDK for the Tropipay API",
5
5
  "main": "index.js",
6
6
  "scripts": {