Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wiremock-rest-client

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wiremock-rest-client - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

10

bin/index.js

@@ -6,6 +6,10 @@ #!/usr/bin/env node

function commaSeparatedList(value) {
return value.split(',');
}
program
.version(version)
.command('load')
.requiredOption('-f, --folder <folder>', 'Folder containing stub mappings to be loaded')
.requiredOption('-f, --folders <folders>', 'Comma separated list of folders containing stub mappings to be loaded', commaSeparatedList)
.option('--no-reset', 'Skip resetting all stub mappings')

@@ -20,5 +24,7 @@ .option('-u, --uri [uri]', 'WireMock base URI', 'http://localhost:8080')

await wireMock.mappings.createMappingsFromDir(args.folder);
return Promise.all(
args.folders.map((folder) => wireMock.mappings.createMappingsFromDir(folder))
);
});
program.parseAsync(process.argv);

2

package.json
{
"name": "wiremock-rest-client",
"version": "1.5.1",
"version": "1.6.0",
"description": "Lightweight REST client to interact with a running WireMock server",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -196,6 +196,6 @@ # WireMock REST Client

Options:
-f, --folder <folder> Folder containing stub mappings to be loaded
--no-reset Skip resetting all stub mappings
-u, --uri [uri] WireMock base URI (default: "http://localhost:8080")
-h, --help display help for command
-f, --folders <folders> Comma separated list of folders containing stub mappings to be loaded
--no-reset Skip resetting all stub mappings
-u, --uri [uri] WireMock base URI (default: "http://localhost:8080")
-h, --help display help for command
```
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