httpsnippet
Advanced tools
Comparing version 1.16.0 to 1.16.2
{ | ||
"version": "1.16.0", | ||
"version": "1.16.2", | ||
"name": "httpsnippet", | ||
@@ -12,2 +12,3 @@ "description": "HTTP Request snippet generator for *most* languages", | ||
"api", | ||
"csharp", | ||
"curl", | ||
@@ -19,2 +20,5 @@ "go", | ||
"java", | ||
"javascript", | ||
"jquery", | ||
"objc", | ||
"objective-c", | ||
@@ -27,4 +31,6 @@ "ocaml", | ||
"ruby", | ||
"shell", | ||
"snippet", | ||
"swift", | ||
"swift", | ||
"unirest", | ||
@@ -51,3 +57,4 @@ "xhr", | ||
"travis": "standard && mocha --no-timeouts --reporter spec", | ||
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- --fgrep 'Request Validation' --invert" | ||
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha -- --fgrep 'Request Validation' --invert", | ||
"codeclimate": "codeclimate < coverage/lcov.info" | ||
}, | ||
@@ -62,6 +69,6 @@ "standard": { | ||
"glob": "^5.0.3", | ||
"istanbul": "^0.3.8", | ||
"istanbul": "^0.3.13", | ||
"mocha": "^2.2.1", | ||
"should": "^5.2.0", | ||
"standard": "^3.2.0" | ||
"standard": "^3.3.0" | ||
}, | ||
@@ -75,5 +82,5 @@ "dependencies": { | ||
"form-data": "^0.2.0", | ||
"har-validator": "^1.2.0", | ||
"har-validator": "^1.5.1", | ||
"require-directory": "^2.1.0" | ||
} | ||
} |
@@ -14,2 +14,3 @@ # HTTP Snippet [![version][npm-version]][npm-url] [![License][npm-license]][license-url] | ||
[![Dependencies][david-image]][david-url] | ||
[![Gitter][gitter-image]][gitter-url] | ||
@@ -217,1 +218,4 @@ ## Install | ||
[david-image]: https://img.shields.io/david/Mashape/httpsnippet.svg?style=flat-square | ||
[gitter-url]: https://gitter.im/Mashape/httpsnippet | ||
[gitter-image]: https://img.shields.io/badge/Gitter-Join%20Chat-blue.svg?style=flat-square |
@@ -33,10 +33,12 @@ /** | ||
if (headers.length) { | ||
code.push('let headers = Header.init ()') | ||
if (headers.length === 1) { | ||
code.push('let headers = Header.add (Header.init ()) "%s" "%s" in', headers[0], source.allHeaders[headers[0]]) | ||
} else if (headers.length > 1) { | ||
code.push('let headers = Header.add_list (Header.init ()) [') | ||
headers.map(function (key) { | ||
code.push(1, '|> fun h -> Header.add h "%s" "%s"', key, source.allHeaders[key]) | ||
code.push(1, '("%s", "%s");', key, source.allHeaders[key]) | ||
}) | ||
code.push('in') | ||
code.push('] in') | ||
} | ||
@@ -43,0 +45,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
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
90707
2333
220
Updatedhar-validator@^1.5.1