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

acquit

Package Overview
Dependencies
Maintainers
1
Versions
23
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 1.0.5 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);
});
});
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