ntes-js-obfuscation
Advanced tools
Comparing version
14
index.js
@@ -1,10 +0,8 @@ | ||
import fs from 'node:fs/promises' | ||
import path, { dirname } from 'path' | ||
import shell from 'shelljs' | ||
import Zip from 'adm-zip' | ||
import { fileURLToPath } from 'url' | ||
const fs = require('fs/promises') | ||
const path = require('path') | ||
const shell = require('shelljs') | ||
const Zip = require('adm-zip') | ||
function resolve (p) { | ||
const filename = fileURLToPath(import.meta.url) | ||
return path.resolve(dirname(filename), p) | ||
return path.resolve(__dirname, p) | ||
} | ||
@@ -22,3 +20,3 @@ | ||
export default class Obfuscation { | ||
module.exports = class Obfuscation { | ||
constructor ({ appKey } = {}) { | ||
@@ -25,0 +23,0 @@ if (!shell.which('java')) { |
{ | ||
"name": "ntes-js-obfuscation", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "JavaScript Obfuscation Base on Netase Project SDK", | ||
"type": "module", | ||
"main": "index.js", | ||
@@ -7,0 +6,0 @@ "scripts": { |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1202233
0.17%5
25%124
96.83%2
100%No
NaN