Socket
Socket
Sign inDemoInstall

falafel

Package Overview
Dependencies
4
Maintainers
6
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.3 to 2.2.4

.github/workflows/ci.yml

5

package.json
{
"name": "falafel",
"description": "transform the ast on a recursive walk",
"version": "2.2.3",
"version": "2.2.4",
"repository": {

@@ -29,3 +29,3 @@ "type": "git",

"foreach": "^2.0.5",
"isarray": "0.0.1",
"isarray": "^2.0.1",
"object-keys": "^1.0.6"

@@ -38,2 +38,3 @@ },

"safe-buffer": "^5.2.0",
"semver": "^6.0.0",
"tape": "^4.0.0"

@@ -40,0 +41,0 @@ },

11

test/custom-parser.js
var falafel = require('../');
var acorn = require('acorn');
var jsx = require('acorn-jsx');
var test = require('tape');
var semver = require('semver');
var acornWithJsx = acorn.Parser.extend(jsx());
// acorn-jsx requires node 4
test('custom parser', { skip: semver.satisfies(process.version, '< 4.0.0') },function (t) {
var acorn = require('acorn');
var jsx = require('acorn-jsx');
var acornWithJsx = acorn.Parser.extend(jsx());
test('custom parser', function (t) {
var src = '(function() { var f = {a: "b"}; var a = <div {...f} className="test"></div>; })()';

@@ -11,0 +12,0 @@

var falafel = require('../');
var test = require('tape');
var semver = require('semver');
test('generators', function (t) {
// it runs the generator so needs node 4+
test('generators', { skip: semver.satisfies(process.version, '< 4.0.0') }, function (t) {
t.plan(1);

@@ -6,0 +8,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc