Skip to content
Merged

2.1.2 #198

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ coverage
# nyc test coverage
.nyc_output

.npmrc

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `2.1.0`
# `2.1.2`
Updates

- Moved documentation to Mintlify for improved SEO: [docs.js-confuser.com](https://docs.js-confuser.com)
Expand Down
8 changes: 8 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@ module.exports = {
"@babel/preset-env", // For handling ES6+ syntax
"@babel/preset-typescript", // For handling TypeScript syntax
],
plugins: [
[
"replace-import-extension",
{
extMapping: { ".ts": ".js" },
},
],
],
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-confuser",
"version": "2.1.0-alpha",
"version": "2.1.2",
"description": "JavaScript Obfuscation Tool.",
"main": "dist/index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -41,6 +41,7 @@
"@types/babel__core": "^7.20.5",
"@types/jest": "^29.5.14",
"@types/node": "^22.2.0",
"babel-plugin-replace-import-extension": "^1.1.5",
"cross-env": "^10.1.0",
"globals": "^15.9.0",
"jest": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion src/templates/xorStringTemplate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Template from "./template.ts";
import Template from "./template";

export function xorEncodeString(str: string, key: number): string {
var result = "";
Expand Down
2 changes: 1 addition & 1 deletion src/transforms/controlFlowFlattening.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
xorDecodeString,
xorDecodeStringTemplate,
xorEncodeString,
} from "../templates/xorStringTemplate.ts";
} from "../templates/xorStringTemplate";

// Function deemed unsafe for CFF
const CFF_UNSAFE = Symbol("CFF_UNSAFE");
Expand Down
4 changes: 2 additions & 2 deletions test/sourceMap.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { execSync } from "child_process";
import { writeFileSync, unlinkSync } from "fs";
import path from "path";
import os from "os";
import JsConfuser from "../src/index.ts";
import { ObfuscationResult } from "../src/obfuscationResult.ts";
import JsConfuser from "../src/index";
import { ObfuscationResult } from "../src/obfuscationResult";

async function evalWithSourceMap(
code: string,
Expand Down
Loading