Comparing version 0.1.1 to 0.1.2
# 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 @@ |
@@ -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]) |
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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
31778
349
0
14
2