Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

api-test

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-test - npm Package Compare versions

Comparing version 2.2.3 to 2.3.0

2

classes/ParseError.js

@@ -28,3 +28,3 @@ 'use strict'

end = -Infinity,
str = '\n\n-----',
str = '\n-----',
i, focus, checkElFocus, lineNum

@@ -31,0 +31,0 @@

@@ -8,4 +8,7 @@ 'use strict'

*/
function Test() {
function Test(path) {
/** @member {string} */
this.path = path
/** @member {string} */
this.name = ''

@@ -12,0 +15,0 @@

@@ -66,3 +66,3 @@ /*globals describe, before, it*/

if (file.substr(-3) === '.md' && options.filterFile(file)) {
var test = parse(fs.readFileSync(file, 'utf8'), options.preParse)
var test = parse(file, fs.readFileSync(file, 'utf8'), options.preParse)
if (options.onTest) {

@@ -69,0 +69,0 @@ options.onTest(test)

{
"name": "api-test",
"version": "2.2.3",
"version": "2.3.0",
"author": "Sitegui <sitegui@sitegui.com.br>",

@@ -20,5 +20,5 @@ "description": "API testing made simple",

"mocha": "^2.1.0",
"mongodb": "^1.4.28",
"request": "^2.51.0",
"should": "^4.6.0"
"mongodb": "^1.4.33",
"request": "^2.53.0",
"should": "^5.0.1"
},

@@ -33,6 +33,6 @@ "license": "MIT",

"devDependencies": {
"body-parser": "^1.10.1",
"express": "^4.11.0",
"mongoose": "^3.8.21"
"body-parser": "^1.12.0",
"express": "^4.12.2",
"mongoose": "^3.8.24"
}
}

@@ -21,2 +21,3 @@ /**

/**
* @param {string} path
* @param {string} text

@@ -27,3 +28,3 @@ * @param {function(Array<Header|Obj>, Test)} preParse

*/
module.exports = function (text, preParse) {
module.exports = function (path, text, preParse) {
var originalLines, i, line, els, lastObj, test

@@ -57,3 +58,3 @@

// Also recursively parse their content
test = new Test
test = new Test(path)
try {

@@ -66,2 +67,3 @@ preParse(els, test)

if (e instanceof ParseError) {
console.log('\n> In %s', path)
e.logSourceContext(originalLines)

@@ -68,0 +70,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