Comparing version 1.6.0 to 1.7.0
{ | ||
"name": "flast", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "Flatten JS AST", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -1,2 +0,2 @@ | ||
const {generateCode, generateFlatAST,} = require(__dirname + '/flast'); | ||
const {generateCode, generateFlatAST,} = require('./flast'); | ||
@@ -3,0 +3,0 @@ const Arborist = class { |
@@ -82,2 +82,3 @@ const {parse} = require('espree'); | ||
for (let i = 0; i < tree.length; i++) injectScopeToNode(tree[i], scopes); | ||
tree[0].allScopes = scopes; | ||
} | ||
@@ -84,0 +85,0 @@ return tree; |
module.exports = { | ||
...require(__dirname + '/flast'), | ||
...require(__dirname + '/arborist'), | ||
...require(__dirname + '/types'), | ||
...require('./flast'), | ||
...require('./arborist'), | ||
...require('./types'), | ||
utils: require('./utils'), | ||
}; |
@@ -6,2 +6,3 @@ const {Scope} = require('eslint-scope'); | ||
* @property {string} type | ||
* @property {object} [allScopes] | ||
* @property {ASTNode} [alternate] | ||
@@ -8,0 +9,0 @@ * @property {ASTNode} [argument] |
@@ -41,2 +41,3 @@ const assert = require('node:assert'); | ||
'parseCode', | ||
'utils', | ||
]; | ||
@@ -43,0 +44,0 @@ function tryImporting(importName) { |
const assert = require('node:assert'); | ||
const {generateFlatAST} = require(__dirname + '/../src/index'); | ||
const {generateFlatAST} = require('../src/index'); | ||
@@ -4,0 +4,0 @@ module.exports = [ |
const tests = { | ||
Parsing: __dirname + '/parsingTests', | ||
Functionality: __dirname + '/functionalityTests', | ||
Arborist: __dirname + '/aboristTests', | ||
Parsing: './parsingTests', | ||
Functionality: './functionalityTests', | ||
Arborist: './aboristTests', | ||
Utils: './utilsTests', | ||
}; | ||
@@ -6,0 +7,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
54735
21
1135
5