From a071ed19f8c7bbd42b1254d86d7665173d470959 Mon Sep 17 00:00:00 2001 From: Ben Baryo <60312583+BenBaryoPX@users.noreply.github.com> Date: Thu, 17 Oct 2024 14:26:49 +0300 Subject: [PATCH] Update flast and flatten imports (#14) --- package-lock.json | 8 ++++---- package.json | 2 +- src/index.js | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index f685d5f..8ce3578 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.0.0", "license": "MIT", "dependencies": { - "flast": "^2.0.0" + "flast": "^2.0.2" }, "bin": { "obfuscation-detector": "bin/obfuscation-detector.js" @@ -627,9 +627,9 @@ } }, "node_modules/flast": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/flast/-/flast-2.0.0.tgz", - "integrity": "sha512-uIqjZuSi+8wTl3hvir9gMHulA65jmX8m7KHRFJCbwB2PkLQxOZNHjW+iXvIUhFeOEnlXiWaxL36k2SvKW4buEg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/flast/-/flast-2.0.2.tgz", + "integrity": "sha512-T5nDMjNysqlaoew7I9+QWcu/6kaDfNff8VpJs6PKBBQiJmliskZqF84QpAQuttfeYwq8j/knskCeCetqih/gVQ==", "license": "MIT", "dependencies": { "escodegen": "^2.1.0", diff --git a/package.json b/package.json index 664d634..1235110 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,6 @@ "husky": "^9.1.6" }, "dependencies": { - "flast": "^2.0.0" + "flast": "^2.0.2" } } diff --git a/src/index.js b/src/index.js index 6e1808d..a166d13 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,5 @@ -import {generateFlatAST, utils} from 'flast'; +import {generateFlatAST, logger} from 'flast'; import * as detectors from './detectors/index.js'; -const {logger} = utils; /** * @param {string} code