@doubter/json-schema
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@doubter/json-schema", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Converts Doubter shapes from and to JSON schemas.", | ||
@@ -32,4 +32,4 @@ "main": "./index.js", | ||
"peerDependencies": { | ||
"doubter": "^4.0.2" | ||
"doubter": "^5.0.0" | ||
} | ||
} |
@@ -385,5 +385,5 @@ 'use strict'; | ||
function convertRecordShape(shape, converter) { | ||
var schema = { additionalProperties: converter.convert(shape.valueShape) }; | ||
if (shape.keyShape !== null) { | ||
schema.propertyNames = converter.convert(shape.keyShape); | ||
var schema = { additionalProperties: converter.convert(shape.valuesShape) }; | ||
if (shape.keysShape !== null) { | ||
schema.propertyNames = converter.convert(shape.keysShape); | ||
} | ||
@@ -390,0 +390,0 @@ return schema; |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
43538
0