@malloydata/malloy-interfaces 0.0.284 → 0.0.285

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,7 +112,7 @@ function convertFromThrift(obj, type) {
112
112
  const typeDefinition = getType(type);
113
113
  if (typeDefinition.type === 'union') {
114
114
  for (const kind in typeDefinition.options) {
115
- if (obj[kind] !== undefined) {
115
+ if (obj[kind] !== undefined && obj[kind] !== null) {
116
116
  const result = convertFromThrift(obj[kind], typeDefinition.options[kind]);
117
117
  if (typeof result === 'object') {
118
118
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy-interfaces",
3
- "version": "0.0.284",
3
+ "version": "0.0.285",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",