logshield-cli 0.4.3 → 0.5.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +149 -120
  2. package/README.md +59 -12
  3. package/dist/cli/index.cjs +69 -21
  4. package/package.json +36 -8
  5. package/dist/android-chrome-192x192.png +0 -0
  6. package/dist/android-chrome-512x512.png +0 -0
  7. package/dist/apple-touch-icon.png +0 -0
  8. package/dist/assets/index-B3qxIuiz.css +0 -1
  9. package/dist/assets/index-DDJ1Wxio.js +0 -29
  10. package/dist/engine/applyRules.js +0 -27
  11. package/dist/engine/engine/applyRules.d.ts +0 -5
  12. package/dist/engine/engine/applyRules.js +0 -30
  13. package/dist/engine/engine/guard.d.ts +0 -1
  14. package/dist/engine/engine/guard.js +0 -12
  15. package/dist/engine/engine/sanitizeLog.d.ts +0 -11
  16. package/dist/engine/engine/sanitizeLog.js +0 -18
  17. package/dist/engine/guard.js +0 -9
  18. package/dist/engine/rules/cloud.d.ts +0 -2
  19. package/dist/engine/rules/cloud.js +0 -15
  20. package/dist/engine/rules/credentials.d.ts +0 -2
  21. package/dist/engine/rules/credentials.js +0 -15
  22. package/dist/engine/rules/creditCard.d.ts +0 -2
  23. package/dist/engine/rules/creditCard.js +0 -15
  24. package/dist/engine/rules/custom.d.ts +0 -2
  25. package/dist/engine/rules/custom.js +0 -14
  26. package/dist/engine/rules/index.d.ts +0 -11
  27. package/dist/engine/rules/index.js +0 -38
  28. package/dist/engine/rules/tokens.d.ts +0 -2
  29. package/dist/engine/rules/tokens.js +0 -20
  30. package/dist/engine/rules/types.d.ts +0 -9
  31. package/dist/engine/rules/types.js +0 -2
  32. package/dist/engine/rules/urls.d.ts +0 -2
  33. package/dist/engine/rules/urls.js +0 -10
  34. package/dist/engine/sanitizeLog.js +0 -15
  35. package/dist/engine/utils/luhn.d.ts +0 -1
  36. package/dist/engine/utils/luhn.js +0 -19
  37. package/dist/favicon-16x16.png +0 -0
  38. package/dist/favicon-32x32.png +0 -0
  39. package/dist/favicon.ico +0 -0
  40. package/dist/features.jsx +0 -462
  41. package/dist/privacy.html +0 -217
  42. package/dist/refund.html +0 -221
  43. package/dist/robots.txt +0 -4
  44. package/dist/rules/cloud.js +0 -12
  45. package/dist/rules/credentials.js +0 -12
  46. package/dist/rules/creditCard.js +0 -12
  47. package/dist/rules/custom.js +0 -11
  48. package/dist/rules/index.js +0 -35
  49. package/dist/rules/tokens.js +0 -17
  50. package/dist/rules/types.js +0 -1
  51. package/dist/rules/urls.js +0 -7
  52. package/dist/site.webmanifest +0 -20
  53. package/dist/terms.html +0 -140
  54. package/dist/utils/luhn.js +0 -16
  55. package/dist/vite.svg +0 -1
package/dist/terms.html DELETED
@@ -1,140 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Terms of Service - LogShield</title>
7
- <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
8
- <style>
9
- * { margin: 0; padding: 0; box-sizing: border-box; }
10
- body {
11
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
12
- line-height: 1.6;
13
- color: #333;
14
- background: linear-gradient(to bottom right, #f8fafc, #e0f2fe);
15
- min-height: 100vh;
16
- padding: 20px;
17
- }
18
- .container {
19
- max-width: 800px;
20
- margin: 0 auto;
21
- background: white;
22
- padding: 40px;
23
- border-radius: 12px;
24
- box-shadow: 0 4px 6px rgba(0,0,0,0.1);
25
- }
26
- .back-button {
27
- display: inline-flex;
28
- align-items: center;
29
- gap: 8px;
30
- padding: 10px 20px;
31
- background: #3b82f6;
32
- color: white;
33
- text-decoration: none;
34
- border-radius: 6px;
35
- font-size: 14px;
36
- font-weight: 500;
37
- transition: background 0.2s;
38
- margin-bottom: 30px;
39
- }
40
- .back-button:hover { background: #2563eb; }
41
- h1 { color: #1e40af; font-size: 32px; margin-bottom: 10px; }
42
- .last-updated { color: #6b7280; font-size: 14px; margin-bottom: 30px; }
43
- h2 { color: #3b82f6; font-size: 24px; margin: 30px 0 15px; }
44
- p, li { margin-bottom: 15px; color: #4b5563; }
45
- ul { margin-left: 30px; }
46
- strong { color: #1f2937; }
47
- .entity-info { background: #f0f9ff; padding: 15px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px; }
48
- @media (max-width: 768px) {
49
- .container { padding: 20px; }
50
- h1 { font-size: 24px; }
51
- h2 { font-size: 20px; }
52
- }
53
- </style>
54
- </head>
55
- <body>
56
- <div class="container">
57
- <a href="/" class="back-button">
58
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
59
- <path d="M10 12L6 8L10 4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
60
- </svg>
61
- Back to LogShield
62
- </a>
63
-
64
- <h1>Terms of Service</h1>
65
- <p class="last-updated"><strong>Last updated:</strong> December 10, 2025</p>
66
-
67
- <!-- CRITICAL: Entity Information for Paddle -->
68
- <div class="entity-info">
69
- <strong>Service Provider:</strong> These Terms of Service govern your use of LogShield, a log sanitization service operated by <strong>Hendra Afria</strong> ("LogShield", "we", "us", or "our").
70
- </div>
71
-
72
- <h2>1. Agreement to Terms</h2>
73
- <p>By accessing and using LogShield ("the Service"), you agree to be bound by these Terms of Service. If you do not agree to these terms, please do not use the Service.</p>
74
-
75
- <h2>2. Service Description</h2>
76
- <p>LogShield provides a browser-based log sanitization service that removes sensitive data from text, including but not limited to API keys, tokens, credentials, personally identifiable information (PII), and other security patterns.</p>
77
-
78
- <h2>3. Use License</h2>
79
- <p>Subject to your compliance with these Terms, LogShield grants you a personal, non-exclusive, non-transferable, revocable license to use the Service for your personal or internal business purposes.</p>
80
-
81
- <h2>4. User Responsibilities</h2>
82
- <p>You agree to:</p>
83
- <ul>
84
- <li>Provide accurate account information</li>
85
- <li>Maintain the security of your account credentials</li>
86
- <li>Be responsible for all activities under your account</li>
87
- <li>Not use the Service for illegal purposes</li>
88
- <li>Not attempt to bypass usage limitations or restrictions</li>
89
- <li>Not reverse engineer, decompile, or attempt to extract source code</li>
90
- </ul>
91
-
92
- <h2>5. Payment Terms</h2>
93
- <p>Paid subscriptions are billed in advance on a monthly or annual basis through our payment processor (Paddle). All fees are in USD and are non-refundable except as described in our <a href="/refund.html" style="color: #3b82f6; text-decoration: underline;">Refund Policy</a>.</p>
94
-
95
- <p><strong>Subscription Plans:</strong></p>
96
- <ul>
97
- <li>Starter: $7/month</li>
98
- <li>Pro: $19/month</li>
99
- <li>Team: $79/month (5 seats)</li>
100
- <li>Lifetime: $199 one-time payment</li>
101
- </ul>
102
-
103
- <h2>6. Refund Policy</h2>
104
- <p>We offer a 14-day money-back guarantee for all new subscriptions. For complete details, please see our <a href="/refund.html" style="color: #3b82f6; text-decoration: underline;">Refund Policy</a>.</p>
105
-
106
- <h2>7. Privacy and Data Processing</h2>
107
- <p><strong>Important:</strong> LogShield processes all log data entirely client-side in your browser. We never see, store, or transmit your log content to our servers. For details on account data and analytics, see our <a href="/privacy.html" style="color: #3b82f6; text-decoration: underline;">Privacy Policy</a>.</p>
108
-
109
- <h2>8. Cancellation and Termination</h2>
110
- <p>You may cancel your subscription at any time through your account settings. Your access will continue until the end of your current billing period. We reserve the right to suspend or terminate accounts that violate these Terms.</p>
111
-
112
- <h2>9. Modifications to Service</h2>
113
- <p>We reserve the right to modify, suspend, or discontinue any part of the Service at any time with reasonable notice. We will not be liable for any modification, suspension, or discontinuance of the Service.</p>
114
-
115
- <h2>10. Intellectual Property</h2>
116
- <p>The Service, including its software, design, and content (excluding user-generated content), is owned by LogShield and protected by international copyright, trademark, and other intellectual property laws. The core sanitization patterns are available as open source under the MIT license.</p>
117
-
118
- <h2>11. Disclaimer of Warranties</h2>
119
- <p>THE SERVICE IS PROVIDED "AS IS" WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.</p>
120
-
121
- <h2>12. Limitation of Liability</h2>
122
- <p>IN NO EVENT SHALL LOGSHIELD BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES ARISING FROM YOUR USE OF OR INABILITY TO USE THE SERVICE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
123
-
124
- <h2>13. Governing Law and Jurisdiction</h2>
125
- <p>These Terms are governed by and construed in accordance with the laws of Indonesia. Any disputes shall be resolved in the courts of Indonesia.</p>
126
-
127
- <h2>14. Changes to Terms</h2>
128
- <p>We may update these Terms from time to time. We will notify users of significant changes via email or through the Service. Your continued use after changes constitutes acceptance of the modified Terms.</p>
129
-
130
- <h2>15. Contact Information</h2>
131
- <p>For questions about these Terms of Service:</p>
132
- <p><strong>Email:</strong> <a href="mailto:hello@logshield.dev" style="color: inherit;">hello@logshield.dev</a></p>
133
- <p><strong>Website:</strong> <a href="https://logshield.dev" style="color: inherit;">https://logshield.dev</a></p>
134
-
135
- <div style="margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e7eb;">
136
- <a href="/" class="back-button">Back to LogShield</a>
137
- </div>
138
- </div>
139
- </body>
140
- </html>
@@ -1,16 +0,0 @@
1
- export function isValidLuhn(input) {
2
- const digits = input.replace(/\D/g, "");
3
- let sum = 0;
4
- let alt = false;
5
- for (let i = digits.length - 1; i >= 0; i--) {
6
- let n = parseInt(digits[i], 10);
7
- if (alt) {
8
- n *= 2;
9
- if (n > 9)
10
- n -= 9;
11
- }
12
- sum += n;
13
- alt = !alt;
14
- }
15
- return sum % 10 === 0;
16
- }
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>