Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.3.1 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 @@ };

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