@udenbaguse/syamcode 2.0.0 → 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 +9 -0
- package/LICENSE +3 -3
- package/README.md +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
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
|
+
|
|
8
|
+
## Version 2.0.1 (2026-05-14)
|
|
9
|
+
### Fixed
|
|
10
|
+
- fixed restore command to correctly handle
|
|
11
|
+
|
|
3
12
|
## Version 2.0.0 (2026-05-14)
|
|
4
13
|
|
|
5
14
|
### Added
|
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.
|
|
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/
|
|
29
|
+
- `<outputPath>.syamkey`: mapping for JS/MJS
|
|
30
30
|
|
|
31
31
|
### Restore
|
|
32
32
|
|
|
@@ -38,10 +38,10 @@ npx @udenbaguse/syamcode restore <minifiedPath> <syamkeyPath> <outputPath>
|
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
40
|
npx @udenbaguse/syamcode src/app.js dist/app.min.js
|
|
41
|
-
npx @udenbaguse/syamcode dist/app.min.js dist/app.min.js.syamkey dist/app.restored.js
|
|
41
|
+
npx @udenbaguse/syamcode restore dist/app.min.js dist/app.min.js.syamkey dist/app.restored.js
|
|
42
42
|
|
|
43
43
|
npx @udenbaguse/syamcode src/app.mjs dist/app.min.mjs
|
|
44
|
-
npx @udenbaguse/syamcode dist/app.min.mjs dist/app.min.mjs.syamkey dist/app.restored.mjs
|
|
44
|
+
npx @udenbaguse/syamcode restore dist/app.min.mjs dist/app.min.mjs.syamkey dist/app.restored.mjs
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
## Supported extensions
|
|
@@ -49,9 +49,9 @@ npx @udenbaguse/syamcode dist/app.min.mjs dist/app.min.mjs.syamkey dist/app.rest
|
|
|
49
49
|
- `.js` and `.mjs`:
|
|
50
50
|
- parse using **Babel AST**
|
|
51
51
|
- remove comments + compress whitespace
|
|
52
|
-
- generate `.syamkey` mapping: `originalIdentifier ->
|
|
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/
|
|
57
|
+
- For JS/MJS, restoration correctness is improved by using **scope-aware** Babel AST transformations.
|
package/package.json
CHANGED