Skip to content

Commit

Permalink
v1.1.2 - Update dependencies (#5)
Browse files Browse the repository at this point in the history
* Update dependencies

* Add 'node:' prefix to builtin imports;

* Add timing for tests
  • Loading branch information
ctrl-escp authored Jun 18, 2023
1 parent 3d950ad commit 4a2bba9
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 121 deletions.
207 changes: 92 additions & 115 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obfuscation-detector",
"version": "1.1.1",
"version": "1.1.2",
"description": "Javascript obfuscation detector",
"main": "src/index.js",
"directories": {
Expand Down Expand Up @@ -28,10 +28,10 @@
},
"homepage": "https://github.com/PerimeterX/obfuscation-detector#readme",
"devDependencies": {
"eslint": "^8.19.0",
"eslint": "^8.43.0",
"husky": "^8.0.1"
},
"dependencies": {
"flast": "^1.0.1"
"flast": "^1.4.0"
}
}
8 changes: 5 additions & 3 deletions tests/testDetectors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
const fs = require('fs');
const assert = require('assert');
const fs = require('node:fs');
const assert = require('node:assert');
const detectObfuscation = require(__dirname + '/../src');

console.time('Completed running tests in ');
const targetFolder = 'tests/resources';
fs.readdirSync(targetFolder).forEach(f => {
const filename = `${targetFolder}/${f}`;
Expand All @@ -16,4 +17,5 @@ fs.readdirSync(targetFolder).forEach(f => {
assert.equal(!!bestMatch, true,
`Failed to detect correct obfuscation type. ${results.length ? 'found ' + results.join(', ') : ''}`);
console.log(`\tMatched ${bestMatch}`);
});
});
console.timeEnd('Completed running tests in ');

0 comments on commit 4a2bba9

Please sign in to comment.