@ovotech/avro-ts
Advanced tools
Comparing version 6.0.2 to 6.0.3
@@ -102,3 +102,3 @@ "use strict"; | ||
else { | ||
throw new Error(`Cannot work out type ${type}`); | ||
throw new Error(`Cannot work out type ${JSON.stringify(type)}`); | ||
} | ||
@@ -105,0 +105,0 @@ }; |
@@ -7,3 +7,4 @@ "use strict"; | ||
const helpers_1 = require("../helpers"); | ||
const isRecordType = (type) => typeof type === 'object' && 'type' in type && type.type === 'record'; | ||
const isRecordType = (type) => (typeof type === 'object' && 'type' in type && type.type === 'record') || | ||
type.type === 'error'; | ||
exports.isRecordType = isRecordType; | ||
@@ -10,0 +11,0 @@ const withDefault = (def, doc) => { |
{ | ||
"name": "@ovotech/avro-ts", | ||
"description": "Convert avro schemas into typescript interfaces", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"main": "dist/index.js", | ||
@@ -40,3 +40,3 @@ "source": "src/index.ts", | ||
}, | ||
"gitHead": "ae2447177626ba7ecab3ac1e68c3211730fb94f9" | ||
"gitHead": "28d0f178b70b3df4f0a16dec01b9b16b2558a79b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30860
444