Comparing version 0.0.7-alpha.3 to 0.0.7-alpha.4
@@ -7,3 +7,3 @@ import { ApiEdgeDefinition } from "../edge/ApiEdgeDefinition"; | ||
edge: ApiEdgeDefinition; | ||
relation: OneToManyRelation; | ||
relation: OneToManyRelation | null; | ||
inspect: () => string; | ||
@@ -13,4 +13,4 @@ } | ||
edge: ApiEdgeDefinition; | ||
relation: OneToManyRelation; | ||
constructor(edge: ApiEdgeDefinition, relation: OneToManyRelation); | ||
relation: OneToManyRelation | null; | ||
constructor(edge: ApiEdgeDefinition, relation: OneToManyRelation | null); | ||
inspect: () => string; | ||
@@ -20,5 +20,5 @@ } | ||
edge: ApiEdgeDefinition; | ||
relation: OneToManyRelation; | ||
relation: OneToManyRelation | null; | ||
id: string; | ||
constructor(edge: ApiEdgeDefinition, id: string, relation: OneToManyRelation); | ||
constructor(edge: ApiEdgeDefinition, id: string, relation: OneToManyRelation | null); | ||
inspect: () => string; | ||
@@ -25,0 +25,0 @@ } |
@@ -40,3 +40,3 @@ "use strict"; | ||
else if (!wasEntry) { | ||
requestPath.add(new ApiRequest_1.EntryPathSegment(lastEdge, segment, lastRelation)); | ||
requestPath.add(new ApiRequest_1.EntryPathSegment(lastEdge, "" + segment, lastRelation)); | ||
wasEntry = true; | ||
@@ -59,3 +59,3 @@ } | ||
} | ||
if (lastEdge && lastRelation && !wasEntry) { | ||
if (lastEdge && !wasEntry) { | ||
requestPath.add(new ApiRequest_1.EdgePathSegment(lastEdge, lastRelation)); | ||
@@ -62,0 +62,0 @@ lastEdge = null; |
{ | ||
"name": "api-core", | ||
"version": "0.0.7-alpha.3", | ||
"version": "0.0.7-alpha.4", | ||
"description": "Core classes for building dynamic model based multi-level APIs for any provider.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -8,3 +8,3 @@ import {ApiEdgeDefinition} from "../edge/ApiEdgeDefinition"; | ||
edge: ApiEdgeDefinition; | ||
relation: OneToManyRelation; | ||
relation: OneToManyRelation|null; | ||
@@ -18,5 +18,5 @@ inspect = () => { | ||
edge: ApiEdgeDefinition; | ||
relation: OneToManyRelation; | ||
relation: OneToManyRelation|null; | ||
constructor(edge: ApiEdgeDefinition, relation: OneToManyRelation) { | ||
constructor(edge: ApiEdgeDefinition, relation: OneToManyRelation|null) { | ||
super(); | ||
@@ -34,6 +34,6 @@ this.edge = edge; | ||
edge: ApiEdgeDefinition; | ||
relation: OneToManyRelation; | ||
relation: OneToManyRelation|null; | ||
id: string; | ||
constructor(edge: ApiEdgeDefinition, id: string, relation: OneToManyRelation) { | ||
constructor(edge: ApiEdgeDefinition, id: string, relation: OneToManyRelation|null) { | ||
super(); | ||
@@ -40,0 +40,0 @@ this.edge = edge; |
@@ -54,3 +54,3 @@ import {ApiEdgeDefinition} from "../edge/ApiEdgeDefinition"; | ||
else if(!wasEntry) { | ||
requestPath.add(new EntryPathSegment(lastEdge, segment, lastRelation)); | ||
requestPath.add(new EntryPathSegment(lastEdge, ""+segment, lastRelation)); | ||
wasEntry = true; | ||
@@ -75,3 +75,3 @@ } | ||
if(lastEdge && lastRelation && !wasEntry) { | ||
if(lastEdge && !wasEntry) { | ||
requestPath.add(new EdgePathSegment(lastEdge, lastRelation)); | ||
@@ -78,0 +78,0 @@ lastEdge = null; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
302742