io-ts-from-json-schema
Advanced tools
Comparing version 0.0.6 to 0.0.7-alpha1
@@ -417,9 +417,10 @@ #!/usr/bin/env node | ||
} | ||
function importHashName(str) { | ||
function importHashName(refString) { | ||
if (argv.importHashLength === 0) { | ||
return ''; | ||
} | ||
var _a = __read(refString.split('#'), 1), withoutFragment = _a[0]; | ||
var fullDigest = crypto | ||
.createHash(argv.importHashAlgorithm) | ||
.update(str) | ||
.update(withoutFragment) | ||
.digest('hex'); | ||
@@ -426,0 +427,0 @@ var shortDigest = fullDigest.slice(0, argv.importHashLength); |
{ | ||
"name": "io-ts-from-json-schema", | ||
"version": "0.0.6", | ||
"version": "0.0.7-alpha1", | ||
"description": "Iotsfjs is a static code generation utility used for converting json schema files into static TypeScript types and io-ts runtime validators.", | ||
@@ -5,0 +5,0 @@ "main": "lib/cli.js", |
36631
885