@angularclass/conventions-loader
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -39,3 +39,3 @@ /* | ||
// using: regex, capture groups, and capture group variables. | ||
const componentRegex = /@(Component)\({([\s\S]*?)}\)$/gm; | ||
const componentRegex = /@(Component|Directive)\({([\s\S]*?)}\)$/gm; | ||
const checkComponentRegex = /(@Component\({[\s\S]*?}\))$/gm; | ||
@@ -105,3 +105,3 @@ // TODO(gdi2290): become a regexp master to fix this | ||
// TODO(gdi2290): become a regexp master to fix this | ||
var __args = /@(Component)\({([\s\S]*?)}\)\s*export\s*class\s*([\s\S]+)\s*(extends|implements|{)$/m.exec(src.slice(offset)); | ||
var __args = /@(Component|Directive)\({([\s\S]*?)}\)\s*export\s*class\s*([\s\S]+)\s*(extends|implements|{)$/m.exec(src.slice(offset)); | ||
if (__args && __args[3]) { | ||
@@ -108,0 +108,0 @@ var __className = __args[3].split(' ')[0]; |
{ | ||
"name": "@angularclass/conventions-loader", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Allow default for @Component metadata for Angular 2", | ||
@@ -22,4 +22,4 @@ "main": "index.js", | ||
], | ||
"author": "Sean Larkin", | ||
"license": "MIT", | ||
"author": "PatrickJS <patrick@angularclass.com>", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
@@ -26,0 +26,0 @@ "url": "https://github.com/angularclass/angular2-conventions-loader/issues" |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
17747
0