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.0.4 to 0.0.5

2

index.js

@@ -70,3 +70,3 @@ /**

var content = line.substr(match.index + match[0].length).trim();
var result = annotationParser(match[2]);
var result = annotationParser(content);

@@ -73,0 +73,0 @@ // If it is a boolean use the annotaion as a flag

{
"name": "cdocparser",
"version": "0.0.4",
"version": "0.0.5",
"description": "Extract C style comments and extract context from source",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -45,3 +45,4 @@ var assert = require("assert");

{ lines : ['test', 'test', '@test'], context : { type : 'testType3'} },
{ lines : ['test', 'test', '@flag'], context : { type : 'testType3'} }
{ lines : ['test', 'test', '@flag'], context : { type : 'testType3'} },
{ lines : ['@multiline\nThis is a\nmultiline\nannotation\n'], context : { type : 'testType3'} }
];

@@ -62,2 +63,6 @@

return true;
},
multiline : function(commentLine){
return commentLine;
}

@@ -73,3 +78,3 @@ };

assert.equal(result.testType2.length , 2);
assert.equal(result.testType3.length , 2);
assert.equal(result.testType3.length , 3);
});

@@ -94,4 +99,10 @@

it('should parse a multiline annotation', function(){
var result = parser.parse ( comments );
assert.equal(result.testType3[2].multiline[0] , "This is a\nmultiline\nannotation");
});
});
});
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