@udenbaguse/syamcode 2.0.1 → 2.0.2

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
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 2.0.1 (2026-05-14)
4
+ ### Updated
5
+ - Updated README and LICENSE with correct package name and site URL.
6
+ - Updated EULA with new attribution requirements and usage terms.
7
+
3
8
  ## Version 2.0.1 (2026-05-14)
4
9
  ### Fixed
5
10
  - fixed restore command to correctly handle
package/LICENSE CHANGED
@@ -1,11 +1,11 @@
1
1
  # END-USER LICENSE AGREEMENT (EULA)
2
2
 
3
3
  ## FOR "SYAMCODE" SOFTWARE
4
- Version 2.0.0 - Date May 14, 2026
4
+ Version 2.0.2 - Date May 14, 2026
5
5
 
6
6
  Created by: Muhamad Syamsudin (@udenbaguse)
7
7
  Contact: udenbagusee@gmail.com
8
- Official Site: https://www.npmjs.com/package/syamcode
8
+ Official Site: https://www.npmjs.com/package/@udenbaguse/syamcode
9
9
 
10
10
  ---
11
11
 
@@ -16,7 +16,7 @@ b. This license applies to all users who install or use the Software, without li
16
16
  ### 2. MANDATORY USAGE REQUIREMENTS
17
17
  You MUST comply with the following requirements when using the SyamCode Software:
18
18
  a. *ATTRIBUTION REQUIRED* – On all projects, applications, or products that use SyamCode Software, you must provide attribution to the creator in the following format:
19
- > "This software uses SyamCode by Muhamad Syamsudin (@udenbaguse) – https://www.npmjs.com/package/syamcode"
19
+ > "This software uses SyamCode by Muhamad Syamsudin (@udenbaguse) – https://www.npmjs.com/package/@udenbaguse/syamcode"
20
20
  - Attribution must be displayed in the project documentation, application "About" page, or in the README.md file if the project is uploaded to GitHub.
21
21
  b. *NO MODIFICATIONS* – You are NOT permitted to modify, decompile, or add new features to the Software without written consent from us.
22
22
  c. *NO REDISTRIBUTION* – You are NOT permitted to sell, redistribute, or rent the Software to third parties. You may only provide a link to the official SyamCode page on npm or our site.
package/README.md CHANGED
@@ -26,7 +26,7 @@ npx @udenbaguse/syamcode <inputPath> <outputPath>
26
26
  Outputs:
27
27
 
28
28
  - `<outputPath>`: minified code
29
- - `<outputPath>.syamkey`: mapping for JS/TS/JSX/TSX
29
+ - `<outputPath>.syamkey`: mapping for JS/MJS
30
30
 
31
31
  ### Restore
32
32
 
@@ -49,9 +49,9 @@ npx @udenbaguse/syamcode restore dist/app.min.mjs dist/app.min.mjs.syamkey dist/
49
49
  - `.js` and `.mjs`:
50
50
  - parse using **Babel AST**
51
51
  - remove comments + compress whitespace
52
- - generate `.syamkey` mapping: `originalIdentifier -> idN`
52
+ - generate `.syamkey` mapping: `originalIdentifier -> hash SHA-256`
53
53
 
54
54
  ## Important notes
55
55
 
56
56
  - Restore returns the **identifier names** (after reversing the rename), not the original whitespace/comments.
57
- - For JS/TS/JSX/TSX, restoration correctness is improved by using **scope-aware** Babel AST transformations.
57
+ - For JS/MJS, restoration correctness is improved by using **scope-aware** Babel AST transformations.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@udenbaguse/syamcode",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "CLI to minify code and perform reversible identifier obfuscation + restore (Babel AST).",
5
5
  "bin": {
6
6
  "syamcode": "bin/syamcode-syamkey-v2.js"