New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wiremock-mapper

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wiremock-mapper - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

50

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="0.2.1"></a>
## 0.2.1 (2017-11-02)
### Bug Fixes
* MatchBuilder#equalToJson stringifies the json if it is an object ([a53f889](https://github.com/ike18t/wiremock_mapper_node/commit/a53f889))
<a name="0.2.0"></a>

@@ -46,2 +56,12 @@ # 0.2.0 (2017-10-31)

<a name="0.2.0"></a>
# 0.2.0 (2017-10-31)
### Features
* add withJsonBody to responseBuilder ([278816d](https://github.com/ike18t/wiremock_mapper_node/commit/278816d))
<a name="0.1.0"></a>

@@ -77,2 +97,12 @@ # 0.1.0 (2017-10-30)

<a name="0.1.0"></a>
# 0.1.0 (2017-10-30)
### Features
* add support for scenarios ([f3834f9](https://github.com/ike18t/wiremock_mapper_node/commit/f3834f9))
<a name="0.0.3"></a>

@@ -118,4 +148,24 @@ ## 0.0.3 (2017-09-26)

<a name="0.0.3"></a>
## 0.0.3 (2017-09-26)
### Bug Fixes
* package with compiled assets and typing ([4b16c14](https://github.com/ike18t/wiremock_mapper_node/commit/4b16c14))
<a name="0.0.2"></a>
## 0.0.2 (2017-08-01)
<a name="0.0.1"></a>
## 0.0.1 (2017-07-30)
<a name="0.0.2"></a>
## 0.0.2 (2017-08-01)
Implement create_global_mapping for setting mapping state for all future mappings.

@@ -122,0 +172,0 @@

3

dist/lib/builders/match_builder.js

@@ -40,2 +40,5 @@ "use strict";

this.matchType = "equalToJson";
if (typeof json === "object") {
json = JSON.stringify(json);
}
this.value = json;

@@ -42,0 +45,0 @@ if (ignoreArrayOrder) {

@@ -75,2 +75,16 @@ "use strict";

});
it("json stringifies the json argument if it is an object", function () {
var requestBuilder = new request_builder_1.RequestBuilderImpl();
var builder = new match_builder_1.MatchBuilder(requestBuilder);
builder.equalToJson({ foo: "bar" });
var expectedJSON = JSON.stringify({ equalToJson: JSON.stringify({ foo: "bar" }) });
expect(JSON.stringify(builder)).toEqual(expectedJSON);
});
it("does not json stringy the json argument if it is already a stringified", function () {
var requestBuilder = new request_builder_1.RequestBuilderImpl();
var builder = new match_builder_1.MatchBuilder(requestBuilder);
builder.equalToJson(JSON.stringify({ foo: "bar" }));
var expectedJSON = JSON.stringify({ equalToJson: JSON.stringify({ foo: "bar" }) });
expect(JSON.stringify(builder)).toEqual(expectedJSON);
});
});

@@ -77,0 +91,0 @@ describe("equalToXml", function () {

2

package.json
{
"name": "wiremock-mapper",
"version": "0.2.0",
"version": "0.2.1",
"description": "DSL for setting up WireMock mappings.",

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

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