You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

acquit

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acquit - npm Package Compare versions

Comparing version

to
1.1.0

4

History.md

@@ -0,1 +1,5 @@

1.1.0 / 2020-08-18
==================
* feat: support `import` statements by using esprima `parseModule()` #22
1.0.5 / 2019-06-15

@@ -2,0 +6,0 @@ ==================

2

lib/parse.js

@@ -13,3 +13,3 @@ 'use strict';

var tree = esprima.parse(contents, { attachComment: true, range: true });
var tree = esprima.parseModule(contents, { attachComment: true, range: true });

@@ -16,0 +16,0 @@ var visitorFactory = function() {

{
"name": "acquit",
"version": "1.0.5",
"version": "1.1.0",
"description": "Parse BDD tests (Mocha, Jasmine) to generate documentation",

@@ -5,0 +5,0 @@ "homepage": "http://acquit.mongoosejs.io",

@@ -28,2 +28,12 @@ var assert = require('assert');

});
it('handles import statements', function() {
const ret = acquit.parse(`
import foo from 'bar';
it('test 1', function() { assert.equal('A', 'A'); });
`);
assert.equal(ret.length, 1);
});
});