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 1.0.1 to 1.0.2

2

bower.json
{
"name": "asty",
"version": "1.0.1",
"version": "1.0.2",
"description": "Abstract Syntax Tree (AST) Data Structure",

@@ -5,0 +5,0 @@ "main": "lib/asty.browser.js",

@@ -34,3 +34,3 @@ /*

},{}],5:[function(_dereq_,module,exports){
"use strict";var _prototypeProperties=function(e,t,r){t&&Object.defineProperties(e,t),r&&Object.defineProperties(e.prototype,r)},ASTYBase=_dereq_("./asty-base.js"),ASTYMerge=_dereq_("./asty-merge.js"),ASTYWalk=_dereq_("./asty-walk.js"),ASTYDump=_dereq_("./asty-dump.js"),ASTYCtx=function(){function e(){var t=this;if(!(this instanceof e))return new e;this.ASTYNode=function(){};var r=[ASTYBase,ASTYMerge,ASTYWalk,ASTYDump];return r.forEach(function(e){for(var r in e.prototype)e.prototype.hasOwnProperty(r)&&(t.ASTYNode.prototype[r]=e.prototype[r])}),this}return _prototypeProperties(e,null,{extend:{value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this.ASTYNode.prototype[t]=e[t]);return this},writable:!0,configurable:!0},create:{value:function(e){return(new this.ASTYNode).init(e)},writable:!0,configurable:!0},isA:{value:function(e){return"object"==typeof e&&e instanceof this.ASTYNode&&"boolean"==typeof e.ASTy&&e.ASTy===!0},writable:!0,configurable:!0}}),e}();module.exports=ASTYCtx;
"use strict";var _prototypeProperties=function(e,t,r){t&&Object.defineProperties(e,t),r&&Object.defineProperties(e.prototype,r)},ASTYBase=_dereq_("./asty-base.js"),ASTYMerge=_dereq_("./asty-merge.js"),ASTYWalk=_dereq_("./asty-walk.js"),ASTYDump=_dereq_("./asty-dump.js"),ASTYCtx=function(){function e(){var t=this;if(!(this instanceof e))return new e;this.ASTYNode=function(){};var r=[[ASTYBase,"init","type","pos","set","get","attrs","add","del","childs","parent"],[ASTYMerge,"merge"],[ASTYWalk,"walk"],[ASTYDump,"dump"]];return r.forEach(function(e){var r=e[0].prototype;e.slice(1).forEach(function(e){t.ASTYNode.prototype[e]=r[e]})}),this}return _prototypeProperties(e,null,{extend:{value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this.ASTYNode.prototype[t]=e[t]);return this},writable:!0,configurable:!0},create:{value:function(e){return(new this.ASTYNode).init(e)},writable:!0,configurable:!0},isA:{value:function(e){return"object"==typeof e&&e instanceof this.ASTYNode&&"boolean"==typeof e.ASTy&&e.ASTy===!0},writable:!0,configurable:!0}}),e}();module.exports=ASTYCtx;
},{"./asty-base.js":1,"./asty-dump.js":2,"./asty-merge.js":3,"./asty-walk.js":4}]},{},[1,2,3,4,5])(5)

@@ -37,0 +37,0 @@ });

@@ -455,7 +455,8 @@ /*

this.ASTYNode = function () {};
var mixins = [ASTYBase, ASTYMerge, ASTYWalk, ASTYDump];
var mixins = [[ASTYBase, "init", "type", "pos", "set", "get", "attrs", "add", "del", "childs", "parent"], [ASTYMerge, "merge"], [ASTYWalk, "walk"], [ASTYDump, "dump"]];
mixins.forEach(function (mixin) {
for (var method in mixin.prototype) {
if (mixin.prototype.hasOwnProperty(method)) _this.ASTYNode.prototype[method] = mixin.prototype[method];
}
var proto = mixin[0].prototype;
mixin.slice(1).forEach(function (method) {
_this.ASTYNode.prototype[method] = proto[method];
});
});

@@ -462,0 +463,0 @@ return this;

{
"name": "asty",
"version": "1.0.1",
"version": "1.0.2",
"description": "Abstract Syntax Tree (AST) Data Structure",

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

@@ -35,7 +35,13 @@ /*

this.ASTYNode = () => {}
let mixins = [ ASTYBase, ASTYMerge, ASTYWalk, ASTYDump ]
let mixins = [
[ ASTYBase, "init", "type", "pos", "set", "get", "attrs", "add", "del", "childs", "parent" ],
[ ASTYMerge, "merge" ],
[ ASTYWalk, "walk" ],
[ ASTYDump, "dump" ]
]
mixins.forEach((mixin) => {
for (let method in mixin.prototype)
if (mixin.prototype.hasOwnProperty(method))
this.ASTYNode.prototype[method] = mixin.prototype[method]
let proto = mixin[0].prototype
mixin.slice(1).forEach((method) => {
this.ASTYNode.prototype[method] = proto[method]
})
})

@@ -42,0 +48,0 @@ return this

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