🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cdocparser

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdocparser - npm Package Compare versions

Comparing version

to
0.3.2

4

index.js

@@ -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 @@ };