Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flast

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flast - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

src/utils/applyIteratively.js

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc