@nodl/core
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -7,14 +7,6 @@ "use strict"; | ||
const uuid_1 = require("uuid"); | ||
const zod_1 = require("zod"); | ||
class Connection extends rxjs_1.Subject { | ||
/** Determines type compatibility */ | ||
static isTypeCompatible(from, to) { | ||
if (to.type.validator instanceof zod_1.ZodUnion) { | ||
const types = to.type.validator._def.options; | ||
const hasCompatibleType = types.some(type => type.constructor === from.type.validator.constructor); | ||
return hasCompatibleType; | ||
} | ||
else { | ||
return from.type.validator.constructor === to.type.validator.constructor; | ||
} | ||
return from.type.name === to.type.name; | ||
} | ||
@@ -21,0 +13,0 @@ constructor(from, to) { |
{ | ||
"name": "@nodl/core", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Core implementation of the Nodl framework", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
18029
390