Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump deps #56

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -19,6 +19,7 @@ module.exports = function parse (modules, opts) {
if (!opts) opts = {};
var vars = opts.vars || {};
var varModules = opts.varModules || {};
var evalOpts = { allowAccessToMethodsOnFunctions: opts.allowAccessToMethodsOnFunctions || false };
var parserOpts = copy(opts.parserOpts || {});
var updates = [];
var moduleBindings = [];
Expand Down Expand Up @@ -281,7 +282,7 @@ module.exports = function parse (modules, opts) {
var xvars = getVars(node.parent, vars);
xvars[node.name] = val;

var res = evaluate(node.parent, xvars);
var res = evaluate(node.parent, xvars, evalOpts);
if (res !== undefined) {
if (binding) binding.remove(node)
updates.push({
Expand Down
24 changes: 12 additions & 12 deletions package.json
Expand Up @@ -4,28 +4,28 @@
"description": "convert module usage to inline expressions",
"main": "index.js",
"dependencies": {
"acorn-node": "^1.3.0",
"concat-stream": "~1.6.0",
"convert-source-map": "^1.5.1",
"acorn-node": "^1.8.2",
"concat-stream": "~1.6.2",
"convert-source-map": "^1.7.0",
"duplexer2": "~0.1.4",
"escodegen": "^1.11.1",
"has": "^1.0.1",
"escodegen": "^1.14.2",
"has": "^1.0.3",
"magic-string": "0.25.1",
"merge-source-map": "1.0.4",
"object-inspect": "^1.6.0",
"readable-stream": "~2.3.3",
"scope-analyzer": "^2.0.1",
"object-inspect": "^1.7.0",
"readable-stream": "~2.3.7",
"scope-analyzer": "^2.1.1",
"shallow-copy": "~0.0.1",
"static-eval": "^2.0.5",
"through2": "~2.0.3"
"static-eval": "^2.1.0",
"through2": "~2.0.5"
},
"devDependencies": {
"from2-string": "^1.1.0",
"nanobench": "^2.1.1",
"quote-stream": "^1.0.2",
"resolve": "^1.5.0",
"resolve": "^1.17.0",
"source-map": "^0.6.1",
"tape": "^4.8.0",
"tape": "^5.0.1",
"uglify-js": "3.3.12"
},
"scripts": {
Expand Down