Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asty

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asty - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

2

lib/asty.js

@@ -28,3 +28,3 @@ /*

},{}],2:[function(require,module,exports){
"use strict";var _prototypeProperties=function(e,r,t){r&&Object.defineProperties(e,r),t&&Object.defineProperties(e.prototype,t)},ASTYDump=function(){function e(){}return _prototypeProperties(e,null,{dump:{value:function(){var e="";return this.walk(function(r,t){for(var n=0;t>n;n++)e+=" ";e+=r.T+" ";var o=Object.keys(r.A);if(o.length>0){e+="(";var i=!0;o.forEach(function(t){i?i=!1:e+=", ",e+=t+": ";var n=r.A[t];switch(typeof n){case"string":e+='"'+n.replace(/\n/,"\\n").replace(/"/,'\\"')+'"';break;case"object":e+=n instanceof RegExp?"/"+n.toString().replace(/^\//,"").replace(/\/$/,"").replace(/\//g,"\\/")+"/":JSON.stringify(n);break;default:e+=JSON.stringify(n)}}),e+=") "}e+="["+r.P.L+"/"+r.P.C+"]\n"},"downward"),e},writable:!0,enumerable:!0,configurable:!0}}),e}();module.exports=ASTYDump;
"use strict";var _prototypeProperties=function(e,r,t){r&&Object.defineProperties(e,r),t&&Object.defineProperties(e.prototype,t)},ASTYDump=function(){function e(){}return _prototypeProperties(e,null,{dump:{value:function(){var e="";return this.walk(function(r,t){for(var n=0;t>n;n++)e+=" ";e+=r.T+" ";var o=Object.keys(r.A);if(o.length>0){e+="(";var i=!0;o.forEach(function(t){i?i=!1:e+=", ",e+=t+": ";var n=r.A[t];switch(typeof n){case"string":e+='"'+n.replace(/\n/,"\\n").replace(/"/,'\\"')+'"';break;case"object":e+=n instanceof RegExp?"/"+n.toString().replace(/^\//,"").replace(/\/$/,"").replace(/\//g,"\\/")+"/":JSON.stringify(n);break;default:e+=JSON.stringify(n)}}),e+=") "}e+="["+r.L.L+"/"+r.L.C+"]\n"},"downward"),e},writable:!0,enumerable:!0,configurable:!0}}),e}();module.exports=ASTYDump;
},{}],3:[function(require,module,exports){

@@ -31,0 +31,0 @@ "use strict";module.exports=function(){for(var t=function(){},r=0;r<arguments.length;r++){var o=arguments[r];"function"==typeof o&&(o=o.prototype);for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t.prototype[e]=o[e])}return t};

{
"name": "asty",
"version": "0.9.5",
"version": "0.9.6",
"description": "Generic Abstract Syntax Tree (AST)",

@@ -5,0 +5,0 @@ "keywords": [ "ast", "abstract", "syntax", "tree" ],

@@ -66,3 +66,3 @@ /*

}
out += "[" + node.P.L + "/" + node.P.C + "]\n"
out += "[" + node.L.L + "/" + node.L.C + "]\n"
}, "downward")

@@ -69,0 +69,0 @@ return out

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc