kiwi-schema
Advanced tools
Comparing version 0.4.4 to 0.4.5
{ | ||
"name": "kiwi-schema", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "A schema-based binary format for efficiently encoding trees of data", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -21,4 +21,5 @@ "use strict"; | ||
for (var j = 0; j < definition.fields.length; j++) { | ||
lines.push(indent + ' const ' + definition.fields[j].name + ' = ' + | ||
JSON.stringify(definition.fields[j].name) + ' as ' + definition.name); | ||
lines.push(indent + ' @alwaysinline'); | ||
lines.push(indent + ' def ' + definition.fields[j].name + ' ' + definition.name + | ||
' { return ' + JSON.stringify(definition.fields[j].name) + ' as ' + definition.name + ' }'); | ||
} | ||
@@ -25,0 +26,0 @@ lines.push(indent + '}'); |
108950
2509