Skip to content

Commit

Permalink
Fix wildcard use.
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed May 25, 2018
1 parent 05b787c commit b642b6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module.exports = function (file, opts) {
try {
var undeclared = opts.always
? { identifiers: varNames, properties: [] }
: undeclaredIdentifiers(source)
: undeclaredIdentifiers(source, { wildcard: true })
;
}
catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"path-is-absolute": "^1.0.1",
"process": "~0.11.0",
"through2": "^2.0.0",
"undeclared-identifiers": "^1.0.0",
"undeclared-identifiers": "^1.1.2",
"xtend": "^4.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/isbuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test('isbuffer (and new Buffer)', function (t) {
t.equal(c.require('main')('wow'), false, 'is not a buffer');
t.equal(isBuffer(c.require('main').a()), true, 'is a buffer');
t.ok(/require\("buffer"\)/.test(src), 'buffer required in source')
t.equal(c.require('main').a().toString('hex'), 'abcd', 'is a buffer');
t.equal(c.require('main').a().toString('utf8'), 'abcd', 'is a buffer');
}));
deps.write({ transform: inserter, global: true });
deps.end({ id: 'main', file: __dirname + '/isbuffer/new.js' });
Expand Down

0 comments on commit b642b6d

Please sign in to comment.