Comparing version 3.2.2 to 3.3.0
@@ -90,3 +90,3 @@ /*********************************************************************** | ||
var AST_Token = DEFNODE("Token", "type value line col pos endline endcol endpos nlb comments_before file raw", { | ||
var AST_Token = DEFNODE("Token", "type value line col pos endline endcol endpos nlb comments_before comments_after file raw", { | ||
}, null); | ||
@@ -93,0 +93,0 @@ |
@@ -63,8 +63,5 @@ /*********************************************************************** | ||
if (x === undefined) { | ||
if (!tw.after) { | ||
x = this; | ||
descend(x, tw); | ||
} else { | ||
tw.stack[tw.stack.length - 1] = x = this; | ||
descend(x, tw); | ||
x = this; | ||
descend(x, tw); | ||
if (tw.after) { | ||
y = tw.after(x, in_list); | ||
@@ -71,0 +68,0 @@ if (y !== undefined) x = y; |
@@ -46,6 +46,2 @@ /*********************************************************************** | ||
function slice(a, start) { | ||
return Array.prototype.slice.call(a, start || 0); | ||
}; | ||
function characters(str) { | ||
@@ -218,14 +214,2 @@ return str.split(""); | ||
function set_difference(a, b) { | ||
return a.filter(function(el){ | ||
return b.indexOf(el) < 0; | ||
}); | ||
}; | ||
function set_intersection(a, b) { | ||
return a.filter(function(el){ | ||
return b.indexOf(el) >= 0; | ||
}); | ||
}; | ||
// this function is taken from Acorn [1], written by Marijn Haverbeke | ||
@@ -345,3 +329,3 @@ // [1] https://github.com/marijnh/acorn | ||
if ((p instanceof AST_Sequence && p.expressions[0] === node) || | ||
(p instanceof AST_Call && p.expression === node && !(p instanceof AST_New) ) || | ||
(p.TYPE == "Call" && p.expression === node ) || | ||
(p instanceof AST_Dot && p.expression === node ) || | ||
@@ -348,0 +332,0 @@ (p instanceof AST_Sub && p.expression === node ) || |
@@ -7,3 +7,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": ">=0.8.0" |
@@ -633,5 +633,2 @@ uglify-es | ||
- `cascade` (default: `true`) -- small optimization for sequences, transform | ||
`x, x` into `x` and `x = something(), x` into `x = something()` | ||
- `collapse_vars` (default: `true`) -- Collapse single-use non-constant variables, | ||
@@ -669,3 +666,3 @@ side effects permitting. | ||
- `hoist_funs` (default: `true`) -- hoist function declarations | ||
- `hoist_funs` (default: `false`) -- hoist function declarations | ||
@@ -672,0 +669,0 @@ - `hoist_props` (default: `true`) -- hoist properties from constant object and |
@@ -5,2 +5,3 @@ exports["Dictionary"] = Dictionary; | ||
exports["minify"] = minify; | ||
exports["parse"] = parse; | ||
exports["_push_uniq"] = push_uniq; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
742056
19089
1169