Socket
Socket
Sign inDemoInstall

literapi

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

literapi - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

CHANGELOG.md
# Changelog
## 0.1.4
## 0.2.1
* Fix bug where process wouldn't exit correctly
## 0.2.0
* Add support for 'pending' tag (you can add it to fenced code blocks)

@@ -6,0 +10,0 @@ * Fix -v version output

@@ -91,5 +91,10 @@ var runner = require('./runner')

runner(options).run()
runner(options).run(function(results) {
var status = 0
if (results.broken) status += 1
if (results.errored) status += 2
process.exit(status)
})
}
module.exports = run

11

lib/runner.js

@@ -6,2 +6,3 @@ var LiterAPI = require('literapi')

, console = require('./console')
, vows_console = require('vows/lib/vows/console')

@@ -87,2 +88,3 @@ // Return the output markup for the suite after it has been run. This will be

if (!suite.batches.length) {
this.running--
return this.next()

@@ -129,10 +131,9 @@ }

if (this.running <= 0) {
var status = 0
if (this.results.broken) status += 1
if (this.results.errored) status += 2
process.exit(status)
process.stdout.write(vows_console.result(this.results).join("\n"))
this.cb(this.results)
}
}
Runner.prototype.run = function run() {
Runner.prototype.run = function run(cb) {
this.cb = cb
return this.next()

@@ -139,0 +140,0 @@ }

{ "name": "literapi"
, "version": "0.2.0"
, "version": "0.2.1"
, "description": "Literate testing for HTTP APIs using markdown"

@@ -4,0 +4,0 @@ , "keywords": ["testing", "test", "api", "rest", "http", "documentation", "docs", "literate"]

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