@cara/porter
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -27,2 +27,5 @@ 'use strict' | ||
function findRequire() { | ||
// to rule out module.require() | ||
if (parts[i - 2] == '.') return | ||
space() | ||
@@ -29,0 +32,0 @@ if (part == '(') { |
{ | ||
"name": "@cara/porter", | ||
"description": "A koa and express middleware for browser side javascript module authoring.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "lib/Porter.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -135,2 +135,9 @@ 'use strict' | ||
}) | ||
it('should not match module.require()', async function() { | ||
const deps = matchRequire.findAll(` | ||
var types = freeModule && freeModule.require && freeModule.require('util').types; | ||
`) | ||
expect(deps).to.eql([]) | ||
}) | ||
}) |
98575
2429