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

@angular-eslint/template-parser

Package Overview
Dependencies
Maintainers
1
Versions
782
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-eslint/template-parser - npm Package Compare versions

Comparing version 0.0.1-alpha.12 to 0.0.1-alpha.13

2

dist/index.js

@@ -1,1 +0,1 @@

var e,t=require("@angular/compiler"),r=(e=require("events"))&&"object"==typeof e&&"default"in e?e.default:e,n=require("eslint-scope"),o=n.ScopeManager,a=n.Scope,l=require("eslint/lib/linter/node-event-generator"),i=new WeakMap,s={Program:["templateNodes"],Element:["children","outputs"],BoundEvent:["handler"]};function u(e){var t=null;return"comments"!==e&&"leadingComments"!==e&&"loc"!==e&&"parent"!==e&&"range"!==e&&"tokens"!==e&&"trailingComments"!==e&&null!==(t=this[e])&&"object"==typeof t&&("string"==typeof t.type||Array.isArray(t))}function c(e){return Object.keys(e).filter(u,e)}function p(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}function y(e,n){var u={type:"Program",comments:[],tokens:[],templateNodes:t.parseTemplate(e,n.filePath).nodes,range:[0,1],loc:{start:{line:0,column:0},end:{line:0,column:1}},value:e},y=new o({});return new a(y,"module",null,u,!1),function e(t){var r=0,n=0,o=s[t.type]||c(t);for(r=0;r<o.length;++r){var a=t[o[r]],l=Array.isArray(a);if(void 0!==a.type&&(a.__originalType=a.type),l||a.type||(a.type=a.constructor.name),l)for(n=0;n<a.length;++n){var i=a[n];void 0!==i.type&&(i.__originalType=i.type),i.type||(i.type=i.constructor.name),p(i)&&e(i)}else p(a)&&e(a)}}(u),{ast:u,scopeManager:y,visitorKeys:s,services:{convertNodeSourceSpanToLoc:function(e){return{start:{line:e.start.line+1,column:e.start.col},end:{line:e.end.line+1,column:e.end.col}}},defineTemplateBodyVisitor:function(e,t){var n=u;if(null==t&&(t={}),null==n)return t;var o=i.get(n);if(null==o){(o=new r).setMaxListeners(0),i.set(n,o);var a=t["Program:exit"];t["Program:exit"]=function(e){try{"function"==typeof a&&a(e);var r=new l(o);!function e(t,r,n){var o=0,a=0;n.enterNode(t,r);var l=(n.visitorKeys||s)[t.type]||c(t);for(o=0;o<l.length;++o){var i=t[l[o]];if(Array.isArray(i))for(a=0;a<i.length;++a){var u=i[a];p(u)&&e(u,t,n)}else p(i)&&e(i,t,n)}n.leaveNode(t,r)}(n,null,r)}finally{t["Program:exit"]=a,i.delete(n)}}}for(var y=0,f=Object.keys(e);y<f.length;y+=1){var m=f[y];o.on(m,e[m])}return t}}}}module.exports={parseForESLint:y,parse:y};
var e,t=require("@angular/compiler"),r=(e=require("events"))&&"object"==typeof e&&"default"in e?e.default:e,n=require("eslint-scope"),o=n.ScopeManager,a=n.Scope,l=require("eslint/lib/linter/node-event-generator"),i=new WeakMap,s={Program:["templateNodes"],Element:["children","outputs"],BoundEvent:["handler"]};function u(e){var t=null;return"comments"!==e&&"leadingComments"!==e&&"loc"!==e&&"parent"!==e&&"range"!==e&&"tokens"!==e&&"trailingComments"!==e&&null!==(t=this[e])&&"object"==typeof t&&("string"==typeof t.type||Array.isArray(t))}function c(e){return Object.keys(e).filter(u,e)}function p(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}function y(e,n){var u={type:"Program",comments:[],tokens:[],templateNodes:t.parseTemplate(e,n.filePath).nodes,range:[0,1],loc:{start:{line:0,column:0},end:{line:0,column:1}},value:e},y=new o({});return new a(y,"module",null,u,!1),function e(t){var r=0,n=0,o=s[t.type]||c(t);for(r=0;r<o.length;++r){var a=t[o[r]],l=Array.isArray(a);if(void 0!==a.type&&(a.__originalType=a.type),l||a.type||(a.type=a.constructor.name),l)for(n=0;n<a.length;++n){var i=a[n];void 0!==i.type&&(i.__originalType=i.type),i.type||(i.type=i.constructor.name),p(i)&&e(i)}else p(a)&&e(a)}}(u),{ast:u,scopeManager:y,visitorKeys:s,services:{convertNodeSourceSpanToLoc:function(e){return{start:{line:e.start.line+1,column:e.start.col},end:{line:e.end.line+1,column:e.end.col}}},defineTemplateBodyVisitor:function(e,t){var n=u;if(null==t&&(t={}),null==n)return t;var o=i.get(n);if(null==o){(o=new r).setMaxListeners(0),i.set(n,o);var a=t["Program:exit"];t["Program:exit"]=function(e){try{"function"==typeof a&&a(e);var r=new l(o);!function e(t,r,n){var o=0,a=0;n.enterNode(t,r);var l=(n.visitorKeys||s)[t.type]||c(t);for(o=0;o<l.length;++o){var i=t[l[o]];if(Array.isArray(i))for(a=0;a<i.length;++a){var u=i[a];p(u)&&e(u,t,n)}else p(i)&&e(i,t,n)}n.leaveNode(t,r)}(n,null,r)}finally{t["Program:exit"]=a,i.delete(n)}}}for(var y=0,f=Object.keys(e);y<f.length;y+=1){var m=f[y];o.on(m,e[m])}return t}}}}module.exports={parseForESLint:y,parse:function(e,t){return y(e,t).ast}};
{
"name": "@angular-eslint/template-parser",
"version": "0.0.1-alpha.12",
"version": "0.0.1-alpha.13",
"description": "Angular Template parser for ESLint",

@@ -26,3 +26,3 @@ "license": "MIT",

},
"gitHead": "a1fa84453b178ad182f25c33d9a147e67881ef54"
"gitHead": "2294dcddcad3be2826a2f8aa865dcbba7a07e48a"
}
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