wiremock-rest-client
Advanced tools
Comparing version 1.0.1 to 1.0.2
export declare class FileUtil { | ||
static getFileContent(fileName: string): string; | ||
static getFilesFromDir(directoryName: string): string[]; | ||
static getFilesFromDir(directoryName: string, files?: string[]): string[]; | ||
} |
@@ -28,4 +28,3 @@ "use strict"; | ||
} | ||
static getFilesFromDir(directoryName) { | ||
const files = []; | ||
static getFilesFromDir(directoryName, files = []) { | ||
const fullDirectoryPath = path.join(process.cwd(), directoryName); | ||
@@ -36,3 +35,3 @@ try { | ||
if (fs.lstatSync(fullPath).isDirectory()) { | ||
this.getFilesFromDir(fullPath); | ||
this.getFilesFromDir(path.join(directoryName, fileName), files); | ||
} | ||
@@ -39,0 +38,0 @@ else { |
{ | ||
"name": "wiremock-rest-client", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Lightweight REST client to interact with a running WireMock server", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -27,3 +27,3 @@ # WireMock REST Client | ||
- `requests` - Logged requests and responses received | ||
- `scenarios` - Scenarios support modeling of stateful behaviour | ||
- `scenarios` - Scenarios support modeling of stateful behavior | ||
@@ -70,3 +70,3 @@ See the [API](#api) for the available methods. All methods are related to available operations on the WireMock server endpoints. | ||
**Example:** | ||
Example: | ||
```js | ||
@@ -104,3 +104,3 @@ await wireMockRestClient.mappings.resetAllMappings(); | ||
**Example:** | ||
Example: | ||
```js | ||
@@ -125,3 +125,3 @@ const recordingStatus = wireMockRestClient.recordings.getRecordingStatus(); | ||
**Example:** | ||
Example: | ||
```js | ||
@@ -135,3 +135,3 @@ const requests = await wireMockRestClient.requests.getAllRequests(); | ||
**Example:** | ||
Example: | ||
```js | ||
@@ -138,0 +138,0 @@ await wireMockRestClient.scenarios.resetAllScenarios(); |
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
51265
1287