🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@schroffl/json-mapping

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schroffl/json-mapping - npm Package Compare versions

Comparing version

to
0.0.5

9

index.js

@@ -61,8 +61,13 @@ // The export pattern is a UMD template:

function toDebugString(value) {
var str = '\n' + JSON.stringify(value, null, 4);
return str.replace(/\n/g, '\n ') + '\n';
}
function expected(type, value) {
return 'Expected ' + type + ', but got ' + JSON.stringify(value, null, 4);
return 'Expected ' + type + ', but got\n' + toDebugString(value);
}
function decode(decoder, value) {
var result = decodeInternal(decoder, value);
var result = decodeInternal(decoder, value, value);

@@ -69,0 +74,0 @@ if (isOk(result)) {

{
"name": "@schroffl/json-mapping",
"version": "0.0.4",
"version": "0.0.5",
"description": "A set of utilites for defining and running conversions between JSON and JavaScript values",

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