cdocparser
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -117,4 +117,4 @@ 'use strict'; | ||
var isAnnotationAllowed = function (comment, annotation){ | ||
if (comment.context.type && Array.isArray(annotation.allowedOnType)) { | ||
return annotation.allowedOnType.indexOf(comment.context.type) !== -1; | ||
if (comment.context.type && Array.isArray(annotation.allowedOn)) { | ||
return annotation.allowedOn.indexOf(comment.context.type) !== -1; | ||
} | ||
@@ -121,0 +121,0 @@ return true; |
{ | ||
"name": "cdocparser", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Extract C style comments and extract context from source", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -120,5 +120,5 @@ CDocParser | ||
#### 0.3.1 | ||
#### 0.3.2 | ||
* Add `allowedOnType` key to annotations to only apply them to comments from a specifc type | ||
* Add `allowedOn` key to annotations to only apply them to comments from a specifc type | ||
@@ -125,0 +125,0 @@ #### 0.3.0 |
@@ -122,3 +122,3 @@ var fs = require('fs'); | ||
parse : function(){}, | ||
allowedOnType : ['workingType'] | ||
allowedOn : ['workingType'] | ||
} | ||
@@ -125,0 +125,0 @@ }; |
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
19761