ballerina-core 1.0.15 → 1.0.16

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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ballerina-core",
3
3
  "author": "Dr. Giuseppe Maggiore",
4
4
  "private": false,
5
- "version": "1.0.15",
5
+ "version": "1.0.16",
6
6
  "main": "main.ts",
7
7
  "dependencies": {
8
8
  "immutable": "^5.0.0-beta.5",
@@ -167,7 +167,7 @@ export const toAPIRawValue = (t:Type, types:Map<TypeName, TypeDefinition>, built
167
167
  } else if (t.kind == "application") { // application here means "generic type application"
168
168
  if (t.value == "SingleSelection" && t.args.length == 1) {
169
169
  let result = converters[t.value].toAPIRawValue(raw)
170
- if (result != undefined)
170
+ if (result != undefined && typeof result == "object")
171
171
  result = toAPIRawValue({ kind:"lookup", name:t.args[0] }, types, builtIns, converters)(result)
172
172
  return result
173
173
  }