Comparing version 2.29.0 to 2.32.0
{ | ||
"bin": { | ||
"wiremock": "jdeploy-bundle/jdeploy.js" | ||
}, | ||
"author": "Tomas Bjerre", | ||
"description": "Wiremock Standalone wrapped in an NPM package so that it can be run with 'npx wiremock'.", | ||
"keywords": [ | ||
"wiremock" | ||
], | ||
"homepage": "https://github.com/tomasbjerre/wiremock-npm", | ||
"repository": "git@github.com:tomasbjerre/wiremock-npm.git", | ||
"main": "index.js", | ||
"preferGlobal": true, | ||
"version": "2.29.0", | ||
"jdeploy": { | ||
"jar": "wiremock-jre8-standalone-2.29.0.jar" | ||
}, | ||
"dependencies": { | ||
"shelljs": "^0.7.5" | ||
}, | ||
"license": "Apache 2", | ||
"version": "2.32.0", | ||
"name": "wiremock", | ||
"runnable-jar-regexp": "build/.*.jar", | ||
"files": [ | ||
"jdeploy-bundle" | ||
"build" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"bin": "./index.js", | ||
"dependencies": { | ||
"npm-java-runner": "^0.0.17" | ||
} | ||
} |
239
README.md
# Wiremock NPM | ||
[![NPM](https://img.shields.io/npm/v/wiremock.svg?style=flat-square) ](https://www.npmjs.com/package/wiremock) | ||
[![Build Status](https://travis-ci.org/tomasbjerre/wiremock-npm.svg?branch=master)](https://travis-ci.org/tomasbjerre/wiremock-npm) | ||
This is [Wiremock Standalone](http://wiremock.org/docs/running-standalone/) wrapped inside an NPM package. It relies only on dependencies found in NPM. It is created with [JDeploy](https://github.com/shannah/jdeploy) and will use the existing JRE if found, or download one with [node-jre](https://www.npmjs.com/package/node-jre). | ||
This is [Wiremock Standalone](http://wiremock.org/docs/running-standalone/) wrapped inside an NPM package. It relies only on dependencies found in NPM. | ||
@@ -36,6 +35,5 @@ See: http://wiremock.org/docs/running-standalone/ | ||
* `http://localhost:8080/api/example` Will serve the API with `wiremock`. | ||
* `http://localhost:8080/whatever` Will serve the frontend. This can be a Vue app or whatever. | ||
- `http://localhost:8080/api/example` Will serve the API with `wiremock`. | ||
- `http://localhost:8080/whatever` Will serve the frontend. This can be a Vue app or whatever. | ||
## Command line arguments | ||
@@ -46,122 +44,121 @@ | ||
``` | ||
Option Description | ||
------ ----------- | ||
--admin-api-basic-auth <String> Require HTTP Basic authentication for | ||
admin API calls with the supplied | ||
credentials in username:password | ||
format | ||
--admin-api-require-https Require HTTPS to be used to access the | ||
admin API | ||
--async-response-enabled <String> Enable asynchronous response (default: | ||
false) | ||
--async-response-threads <String> Number of asynchronous response threads | ||
(default: 10) | ||
--bind-address <String> The IP to listen connections | ||
--ca-keystore <String> Path to an alternative keystore | ||
containing a Certificate Authority | ||
private key & certificate for | ||
generating certificates when proxying | ||
HTTPS. Password is assumed to be | ||
"password" if not specified. | ||
(default: /home/bjerre/.wiremock/ca- | ||
keystore.jks) | ||
--ca-keystore-password <String> Password for the alternative CA | ||
keystore. (default: password) | ||
--ca-keystore-type <String> Type of the alternative CA keystore | ||
(jks or pkcs12). (default: jks) | ||
--container-threads <String> The number of container threads | ||
--disable-banner Disable print banner logo | ||
--disable-gzip Disable gzipping of request and | ||
response bodies | ||
--disable-http Disable the default HTTP listener. | ||
--disable-request-logging Disable logging of stub requests and | ||
responses to the notifier. Useful | ||
when performance testing. | ||
--enable-browser-proxying Allow wiremock to be set as a browser's | ||
proxy server | ||
--enable-stub-cors Enable automatic sending of CORS | ||
headers with stub responses. | ||
--extensions <String> Matching and/or response transformer | ||
extension class names, comma | ||
separated. | ||
--global-response-templating Preprocess all responses with | ||
Handlebars templates | ||
--help Print this message | ||
--https-keystore <String> Path to an alternative keystore for | ||
HTTPS. Password is assumed to be | ||
"password" if not specified. | ||
(default: jar:file:/home/bjerre/. | ||
Option Description | ||
------ ----------- | ||
--admin-api-basic-auth <String> Require HTTP Basic authentication for | ||
admin API calls with the supplied | ||
credentials in username:password | ||
format | ||
--admin-api-require-https Require HTTPS to be used to access the | ||
admin API | ||
--async-response-enabled <String> Enable asynchronous response (default: | ||
false) | ||
--async-response-threads <String> Number of asynchronous response threads | ||
(default: 10) | ||
--bind-address <String> The IP to listen connections | ||
--ca-keystore <String> Path to an alternative keystore | ||
containing a Certificate Authority | ||
private key & certificate for | ||
generating certificates when proxying | ||
HTTPS. Password is assumed to be | ||
"password" if not specified. | ||
(default: /home/bjerre/.wiremock/ca- | ||
keystore.jks) | ||
--ca-keystore-password <String> Password for the alternative CA | ||
keystore. (default: password) | ||
--ca-keystore-type <String> Type of the alternative CA keystore | ||
(jks or pkcs12). (default: jks) | ||
--container-threads <String> The number of container threads | ||
--disable-banner Disable print banner logo | ||
--disable-gzip Disable gzipping of request and | ||
response bodies | ||
--disable-http Disable the default HTTP listener. | ||
--disable-request-logging Disable logging of stub requests and | ||
responses to the notifier. Useful | ||
when performance testing. | ||
--enable-browser-proxying Allow wiremock to be set as a browser's | ||
proxy server | ||
--enable-stub-cors Enable automatic sending of CORS | ||
headers with stub responses. | ||
--extensions <String> Matching and/or response transformer | ||
extension class names, comma | ||
separated. | ||
--global-response-templating Preprocess all responses with | ||
Handlebars templates | ||
--help Print this message | ||
--https-keystore <String> Path to an alternative keystore for | ||
HTTPS. Password is assumed to be | ||
"password" if not specified. | ||
(default: jar:file:/home/bjerre/. | ||
npm/_npx/2949/lib/node_modules/wiremock/jdeploy- | ||
bundle/wiremock-jre8-standalone-2.29.0.jar! | ||
/keystore) | ||
--https-port <String> If this option is present WireMock will | ||
enable HTTPS on the specified port | ||
--https-require-client-cert Make the server require a trusted | ||
client certificate to enable a | ||
connection | ||
--https-truststore <String> Path to an alternative truststore for | ||
HTTPS client certificates. Must have | ||
a password of "password". | ||
--jetty-accept-queue-size <String> The size of Jetty's accept queue size | ||
--jetty-acceptor-threads <String> Number of Jetty acceptor threads | ||
--jetty-header-buffer-size <String> The size of Jetty's buffer for request | ||
headers | ||
--jetty-stop-timeout <String> Timeout in milliseconds for Jetty to | ||
stop | ||
--key-manager-password <String> Key manager password for use with the | ||
alternative keystore. (default: | ||
password) | ||
--keystore-password <String> Password for the alternative keystore. | ||
(default: password) | ||
--keystore-type <String> The HTTPS keystore type. (default: JKS) | ||
--local-response-templating Preprocess selected responses with | ||
Handlebars templates | ||
--match-headers <String> Enable request header matching when | ||
recording through a proxy | ||
--max-request-journal-entries <String> Set maximum number of entries in | ||
request journal (if enabled) to | ||
discard old entries if the log | ||
/keystore) | ||
--https-port <String> If this option is present WireMock will | ||
enable HTTPS on the specified port | ||
--https-require-client-cert Make the server require a trusted | ||
client certificate to enable a | ||
connection | ||
--https-truststore <String> Path to an alternative truststore for | ||
HTTPS client certificates. Must have | ||
a password of "password". | ||
--jetty-accept-queue-size <String> The size of Jetty's accept queue size | ||
--jetty-acceptor-threads <String> Number of Jetty acceptor threads | ||
--jetty-header-buffer-size <String> The size of Jetty's buffer for request | ||
headers | ||
--jetty-stop-timeout <String> Timeout in milliseconds for Jetty to | ||
stop | ||
--key-manager-password <String> Key manager password for use with the | ||
alternative keystore. (default: | ||
password) | ||
--keystore-password <String> Password for the alternative keystore. | ||
(default: password) | ||
--keystore-type <String> The HTTPS keystore type. (default: JKS) | ||
--local-response-templating Preprocess selected responses with | ||
Handlebars templates | ||
--match-headers <String> Enable request header matching when | ||
recording through a proxy | ||
--max-request-journal-entries <String> Set maximum number of entries in | ||
request journal (if enabled) to | ||
discard old entries if the log | ||
becomes too large. Default: no discard | ||
--max-template-cache-entries [String] The maximum number of response template | ||
fragments that can be cached. Only | ||
has any effect when templating is | ||
enabled. Defaults to no limit. | ||
--no-request-journal Disable the request journal (to avoid | ||
heap growth when running wiremock for | ||
long periods without reset) | ||
--permitted-system-keys [String] A list of case-insensitive regular | ||
expressions for names of permitted | ||
system properties and environment | ||
vars. Only has any effect when | ||
templating is enabled. Defaults to no | ||
limit. | ||
--port <String> The port number for the server to | ||
listen on (default: 8080). 0 for | ||
dynamic port selection. | ||
--preserve-host-header Will transfer the original host header | ||
--max-template-cache-entries [String] The maximum number of response template | ||
fragments that can be cached. Only | ||
has any effect when templating is | ||
enabled. Defaults to no limit. | ||
--no-request-journal Disable the request journal (to avoid | ||
heap growth when running wiremock for | ||
long periods without reset) | ||
--permitted-system-keys [String] A list of case-insensitive regular | ||
expressions for names of permitted | ||
system properties and environment | ||
vars. Only has any effect when | ||
templating is enabled. Defaults to no | ||
limit. | ||
--port <String> The port number for the server to | ||
listen on (default: 8080). 0 for | ||
dynamic port selection. | ||
--preserve-host-header Will transfer the original host header | ||
from the client to the proxied service | ||
--print-all-network-traffic Print all raw incoming and outgoing | ||
network traffic to console | ||
--proxy-all <String> Will create a proxy mapping for /* to | ||
the specified URL | ||
--proxy-via <String> Specifies a proxy server to use when | ||
routing proxy mapped requests | ||
--record-mappings Enable recording of all (non-admin) | ||
requests as mapping files | ||
--root-dir <String> Specifies path for storing recordings | ||
(parent for mappings and __files | ||
folders) (default: .) | ||
--trust-all-proxy-targets Trust all certificates presented by | ||
origins when browser proxying | ||
--trust-proxy-target <String> Trust any certificate presented by this | ||
origin when browser proxying | ||
--truststore-password <String> Password for the trust store | ||
--truststore-type <String> The HTTPS trust store type (default: | ||
JKS) | ||
--use-chunked-encoding <String> Whether to use Transfer-Encoding: | ||
chunked in responses. Can be set to | ||
always, never or body_file. (default: | ||
always) | ||
--verbose Enable verbose logging to stdout | ||
--print-all-network-traffic Print all raw incoming and outgoing | ||
network traffic to console | ||
--proxy-all <String> Will create a proxy mapping for /* to | ||
the specified URL | ||
--proxy-via <String> Specifies a proxy server to use when | ||
routing proxy mapped requests | ||
--record-mappings Enable recording of all (non-admin) | ||
requests as mapping files | ||
--root-dir <String> Specifies path for storing recordings | ||
(parent for mappings and __files | ||
folders) (default: .) | ||
--trust-all-proxy-targets Trust all certificates presented by | ||
origins when browser proxying | ||
--trust-proxy-target <String> Trust any certificate presented by this | ||
origin when browser proxying | ||
--truststore-password <String> Password for the trust store | ||
--truststore-type <String> The HTTPS trust store type (default: | ||
JKS) | ||
--use-chunked-encoding <String> Whether to use Transfer-Encoding: | ||
chunked in responses. Can be set to | ||
always, never or body_file. (default: | ||
always) | ||
--verbose Enable verbose logging to stdout | ||
``` | ||
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
1
15764994
2
2
163
1
+ Addednpm-java-runner@^0.0.17
+ Addedinherits@2.0.3(transitive)
+ Addednpm-java-runner@0.0.17(transitive)
+ Addedpath@0.12.7(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedutil@0.10.4(transitive)
- Removedshelljs@^0.7.5
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedinterpret@1.4.0(transitive)
- Removedis-core-module@2.16.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedrechoir@0.6.2(transitive)
- Removedresolve@1.22.10(transitive)
- Removedshelljs@0.7.8(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedwrappy@1.0.2(transitive)