lua-obfuscator 1.0.3 → 3.0.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 (75) hide show
  1. package/dist/index.cjs +4552 -0
  2. package/dist/index.d.cts +399 -0
  3. package/dist/index.d.ts +397 -12
  4. package/dist/index.js +4505 -60
  5. package/package.json +24 -19
  6. package/.github/workflows/release.yml +0 -40
  7. package/dist/prometheus/LICENSE +0 -661
  8. package/dist/prometheus/benchmark.lua +0 -34
  9. package/dist/prometheus/build.bat +0 -10
  10. package/dist/prometheus/cli.lua +0 -12
  11. package/dist/prometheus/doc/README.md +0 -11
  12. package/dist/prometheus/doc/SUMMARY.md +0 -27
  13. package/dist/prometheus/doc/advanced/using-prometheus-in-your-lua-application.md +0 -31
  14. package/dist/prometheus/doc/getting-started/command-line-options.md +0 -13
  15. package/dist/prometheus/doc/getting-started/installation.md +0 -11
  16. package/dist/prometheus/doc/getting-started/obfuscating-your-first-script.md +0 -50
  17. package/dist/prometheus/doc/getting-started/presets.md +0 -10
  18. package/dist/prometheus/doc/getting-started/the-config-object.md +0 -58
  19. package/dist/prometheus/doc/getting-started/writing-a-custom-config-file.md +0 -56
  20. package/dist/prometheus/doc/steps/anti-tamper.md +0 -11
  21. package/dist/prometheus/doc/steps/constantarray.md +0 -71
  22. package/dist/prometheus/doc/steps/encryptstrings.md +0 -86
  23. package/dist/prometheus/doc/steps/proxifylocals.md +0 -47
  24. package/dist/prometheus/doc/steps/splitstrings.md +0 -40
  25. package/dist/prometheus/doc/steps/vmify.md +0 -9
  26. package/dist/prometheus/doc/steps/wrapinfunction.md +0 -29
  27. package/dist/prometheus/prometheus-main.lua +0 -1
  28. package/dist/prometheus/readme.md +0 -57
  29. package/dist/prometheus/readme.txt +0 -5
  30. package/dist/prometheus/src/cli.lua +0 -154
  31. package/dist/prometheus/src/colors.lua +0 -61
  32. package/dist/prometheus/src/config.lua +0 -35
  33. package/dist/prometheus/src/highlightlua.lua +0 -61
  34. package/dist/prometheus/src/logger.lua +0 -62
  35. package/dist/prometheus/src/presets.lua +0 -174
  36. package/dist/prometheus/src/prometheus/ast.lua +0 -792
  37. package/dist/prometheus/src/prometheus/bit.lua +0 -521
  38. package/dist/prometheus/src/prometheus/compiler/compiler.lua +0 -2365
  39. package/dist/prometheus/src/prometheus/enums.lua +0 -106
  40. package/dist/prometheus/src/prometheus/namegenerators/Il.lua +0 -41
  41. package/dist/prometheus/src/prometheus/namegenerators/confuse.lua +0 -169
  42. package/dist/prometheus/src/prometheus/namegenerators/mangled.lua +0 -26
  43. package/dist/prometheus/src/prometheus/namegenerators/mangled_shuffled.lua +0 -35
  44. package/dist/prometheus/src/prometheus/namegenerators/number.lua +0 -11
  45. package/dist/prometheus/src/prometheus/namegenerators.lua +0 -7
  46. package/dist/prometheus/src/prometheus/parser.lua +0 -969
  47. package/dist/prometheus/src/prometheus/pipeline.lua +0 -250
  48. package/dist/prometheus/src/prometheus/randomLiterals.lua +0 -41
  49. package/dist/prometheus/src/prometheus/randomStrings.lua +0 -24
  50. package/dist/prometheus/src/prometheus/scope.lua +0 -332
  51. package/dist/prometheus/src/prometheus/step.lua +0 -79
  52. package/dist/prometheus/src/prometheus/steps/AddVararg.lua +0 -33
  53. package/dist/prometheus/src/prometheus/steps/AntiTamper.lua +0 -194
  54. package/dist/prometheus/src/prometheus/steps/ConstantArray.lua +0 -521
  55. package/dist/prometheus/src/prometheus/steps/EncryptStrings.lua +0 -239
  56. package/dist/prometheus/src/prometheus/steps/NumbersToExpressions.lua +0 -82
  57. package/dist/prometheus/src/prometheus/steps/ProxifyLocals.lua +0 -313
  58. package/dist/prometheus/src/prometheus/steps/SplitStrings.lua +0 -338
  59. package/dist/prometheus/src/prometheus/steps/Vmify.lua +0 -30
  60. package/dist/prometheus/src/prometheus/steps/Watermark.lua +0 -61
  61. package/dist/prometheus/src/prometheus/steps/WatermarkCheck.lua +0 -50
  62. package/dist/prometheus/src/prometheus/steps/WrapInFunction.lua +0 -45
  63. package/dist/prometheus/src/prometheus/steps.lua +0 -12
  64. package/dist/prometheus/src/prometheus/tokenizer.lua +0 -546
  65. package/dist/prometheus/src/prometheus/unparser.lua +0 -866
  66. package/dist/prometheus/src/prometheus/util.lua +0 -297
  67. package/dist/prometheus/src/prometheus/visitast.lua +0 -245
  68. package/dist/prometheus/src/prometheus.lua +0 -71
  69. package/dist/prometheus/tests/closures.lua +0 -12
  70. package/dist/prometheus/tests/fibonacci.lua +0 -10
  71. package/dist/prometheus/tests/loops.lua +0 -8
  72. package/dist/prometheus/tests/primes.lua +0 -18
  73. package/dist/prometheus/tests.lua +0 -149
  74. package/src/index.ts +0 -96
  75. package/tsconfig.json +0 -13
package/package.json CHANGED
@@ -1,29 +1,34 @@
1
1
  {
2
2
  "name": "lua-obfuscator",
3
- "version": "1.0.3",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "build": "tsc && copyfiles -u 1 src/prometheus/**/* dist/",
9
- "dev": "concurrently \"tsx watch src/\" \"tsc --watch\" \"copyfiles -u 1 src/prometheus/**/* dist/\""
3
+ "author": "Uav1010",
4
+ "version": "3.0.0",
5
+ "description": "obfuscator for lua and luau",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "type": "module",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/types/index.d.ts",
13
+ "import": "./dist/esm/index.js",
14
+ "require": "./dist/cjs/index.cjs"
15
+ }
10
16
  },
11
17
  "repository": {
12
18
  "type": "git",
13
- "url": "git+https://github.com/Uav3537/lua-obfuscator.git"
19
+ "url": "https://github.com/Uav3537/lua-obfuscator.git"
20
+ },
21
+ "scripts": {
22
+ "test": "node test.js",
23
+ "build": "tsup"
14
24
  },
25
+ "files": [
26
+ "dist"
27
+ ],
15
28
  "keywords": [],
16
- "author": "",
17
- "license": "ISC",
18
- "type": "module",
29
+ "license": "MIT",
19
30
  "devDependencies": {
20
- "@types/node": "^26.0.0",
21
- "concurrently": "^10.0.3",
22
- "copyfiles": "^2.4.1",
23
- "ts-node": "^10.9.2",
24
- "typescript": "^6.0.3"
25
- },
26
- "dependencies": {
27
- "wasmoon": "^1.16.0"
31
+ "tsup": "^8.5.1",
32
+ "typescript": "^5.6.3"
28
33
  }
29
34
  }
@@ -1,40 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- permissions:
9
- contents: read
10
- id-token: write
11
-
12
- jobs:
13
- publish:
14
- runs-on: ubuntu-latest
15
- steps:
16
- - uses: actions/checkout@v4
17
-
18
- - uses: actions/setup-node@v4
19
- with:
20
- node-version: '20'
21
- registry-url: 'https://registry.npmjs.org'
22
-
23
- - run: npm install -g npm@latest
24
- - run: npm ci
25
-
26
- - name: Check Version
27
- id: check
28
- run: |
29
- PUBLISHED=$(npm view lua-obfuscator version 2>/dev/null || echo "0.0.0")
30
- LOCAL=$(node -p "require('./package.json').version")
31
- echo "local=$LOCAL / published=$PUBLISHED"
32
- if [ "$PUBLISHED" != "$LOCAL" ]; then
33
- echo "should_publish=true" >> "$GITHUB_OUTPUT"
34
- else
35
- echo "should_publish=false" >> "$GITHUB_OUTPUT"
36
- fi
37
-
38
- - name: Publish
39
- if: steps.check.outputs.should_publish == 'true'
40
- run: npm publish