Comparing version 1.1.11 to 1.1.12
@@ -1,3 +0,2 @@ | ||
var through = require('through3') | ||
, Node = require('./node'); | ||
var through = require('through3'); | ||
@@ -8,8 +7,5 @@ /** | ||
* @module {constructor} AstParser | ||
* | ||
* @option {Boolean} [wrap] wrap deserialized objects in shallow nodes. | ||
*/ | ||
function AstParser(opts) { | ||
opts = opts || {}; | ||
this.wrap = opts.wrap; | ||
} | ||
@@ -40,7 +36,3 @@ | ||
if(this.wrap) { | ||
this.push(Node.createNode(res._type, res)); | ||
}else{ | ||
this.push(res); | ||
} | ||
this.push(res); | ||
cb(); | ||
@@ -47,0 +39,0 @@ } |
{ | ||
"name": "mkast", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Abstract syntax tree transformer", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
23342
595