wiremock-rest-client
Advanced tools
Comparing version 1.9.0 to 1.10.0
@@ -14,2 +14,3 @@ "use strict"; | ||
const url_1 = require("url"); | ||
const json5_1 = require("json5"); | ||
const http_util_1 = require("../util/http.util"); | ||
@@ -47,3 +48,3 @@ const file_util_1 = require("../util/file.util"); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const requestBody = JSON.parse(file_util_1.FileUtil.getFileContent(fileName)); | ||
const requestBody = json5_1.parse(file_util_1.FileUtil.getFileContent(fileName)); | ||
return this.createMapping(requestBody); | ||
@@ -50,0 +51,0 @@ }); |
@@ -17,2 +17,3 @@ "use strict"; | ||
const cross_fetch_1 = __importDefault(require("cross-fetch")); | ||
const json5_1 = require("json5"); | ||
const nanoid_1 = require("nanoid"); | ||
@@ -53,3 +54,3 @@ const https_proxy_agent_1 = __importDefault(require("https-proxy-agent")); | ||
try { | ||
return JSON.parse(responseText); | ||
return json5_1.parse(responseText); | ||
} | ||
@@ -56,0 +57,0 @@ catch (error) { |
{ | ||
"name": "wiremock-rest-client", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Lightweight REST client to interact with a running WireMock server", | ||
@@ -38,19 +38,23 @@ "main": "dist/index.js", | ||
], | ||
"engines": { | ||
"node": "^12.22.0 || ^14.15.0 || >=16.0.0" | ||
}, | ||
"dependencies": { | ||
"commander": "^6.1.0", | ||
"cross-fetch": "^3.1.4", | ||
"commander": "^6.2.1", | ||
"cross-fetch": "^3.1.5", | ||
"https-proxy-agent": "~4.0.0", | ||
"loglevel": "^1.7.0", | ||
"nanoid": "^3.1.12" | ||
"json5": "^2.2.0", | ||
"loglevel": "^1.8.0", | ||
"nanoid": "^3.3.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^14.11.1", | ||
"@typescript-eslint/eslint-plugin": "^4.1.1", | ||
"@typescript-eslint/parser": "^4.1.1", | ||
"eslint": "^7.9.0", | ||
"eslint-config-airbnb-base": "^14.2.0", | ||
"eslint-import-resolver-typescript": "^2.3.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"typescript": "^4.0.2" | ||
"@types/node": "^14.18.12", | ||
"@typescript-eslint/eslint-plugin": "^5.12.1", | ||
"@typescript-eslint/parser": "^5.12.1", | ||
"eslint": "^8.9.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-import-resolver-typescript": "^2.5.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"typescript": "~4.0.8" | ||
} | ||
} |
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
59082
1400
6
+ Addedjson5@^2.2.0
+ Addedjson5@2.2.3(transitive)
Updatedcommander@^6.2.1
Updatedcross-fetch@^3.1.5
Updatedloglevel@^1.8.0
Updatednanoid@^3.3.1