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.1.1 to 0.1.2

9

CHANGELOG.md
# Changelog
## 0.1.2
* Allow raw interpolation of bindings into strings using [$BINDING]
## 0.1.1
* Added `-w` flag, allowing you to overwrite the file with ok/fail annotations
* Marked the package as compatible with node.js >0.6
## 0.1.0

@@ -4,0 +13,0 @@

5

lib/compilers/vows.js

@@ -41,2 +41,3 @@ var request = require('request')

if (!this.vars.hasOwnProperty(key)) continue
var re = new RegExp('\\[' + key + '\\]', 'g')

@@ -48,2 +49,4 @@ if (json)

re = new RegExp('\\[\$' + key + '\\]', 'g')
string = string.replace(re, this.vars[key])
}

@@ -73,3 +76,3 @@ if (json) {

if (!(match = /([^:]+):[ \t]+(.*)/.exec(arr[i]))) continue
if (sub)

@@ -76,0 +79,0 @@ headers[match[1].toLowerCase()] = this.substitute(match[2])

2

lib/parsers/ParseResult.js
function ParseResult() {
this.tests = []
this.tokens = []
this.title = ''

@@ -14,3 +15,2 @@ this._req = {}

this.title = title
this.tokens = []
}

@@ -17,0 +17,0 @@

{ "name": "literapi"
, "version": "0.1.1"
, "version": "0.1.2"
, "description": "Literate testing for HTTP APIs using markdown"
, "keywords": ["testing", "api", "rest"]
, "keywords": ["testing", "test", "api", "rest", "http", "documentation", "docs", "literate"]
, "homepage": "https://github.com/agnoster/literapi"
, "author": "Isaac Wolkerstorfer <agnoster@gmail.com>"
, "main": "./lib/index.js"
, "repository":
, "repository":
{ "type": "git"
, "url": "git://github.com/agnoster/literapi.git"
}
, "bin":
, "bin":
{ "literapi": "./bin/literapi"

@@ -14,0 +14,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc