@blockprotocol/graph
Advanced tools
Comparing version 0.2.2 to 0.2.3-canary-20230413145831
@@ -712,3 +712,6 @@ import { LitElement } from 'lit'; | ||
[]; /** @todo - Are we comfortable hiding the `undefined` value here with an empty array? */ | ||
if (rightEntityRevisions.length !== 1) { | ||
if (rightEntityRevisions.length === 0) { | ||
throw new Error(`No right entity found for the link entity with ID: ${linkEntity.metadata.recordId.entityId}`); | ||
} | ||
else if (rightEntityRevisions.length > 1) { | ||
throw new Error(`Querying a Subgraph without support for temporal versioning but there wasn't a unique revision for the right entity of the link entity with ID: ${linkEntity.metadata.recordId.entityId}`); | ||
@@ -715,0 +718,0 @@ } |
@@ -712,3 +712,6 @@ import { LitElement } from 'lit'; | ||
[]; /** @todo - Are we comfortable hiding the `undefined` value here with an empty array? */ | ||
if (rightEntityRevisions.length !== 1) { | ||
if (rightEntityRevisions.length === 0) { | ||
throw new Error(`No right entity found for the link entity with ID: ${linkEntity.metadata.recordId.entityId}`); | ||
} | ||
else if (rightEntityRevisions.length > 1) { | ||
throw new Error(`Querying a Subgraph without support for temporal versioning but there wasn't a unique revision for the right entity of the link entity with ID: ${linkEntity.metadata.recordId.entityId}`); | ||
@@ -715,0 +718,0 @@ } |
@@ -805,3 +805,6 @@ import { useModuleConstructor } from '@blockprotocol/core/react'; | ||
[]; /** @todo - Are we comfortable hiding the `undefined` value here with an empty array? */ | ||
if (rightEntityRevisions.length !== 1) { | ||
if (rightEntityRevisions.length === 0) { | ||
throw new Error(`No right entity found for the link entity with ID: ${linkEntity.metadata.recordId.entityId}`); | ||
} | ||
else if (rightEntityRevisions.length > 1) { | ||
throw new Error(`Querying a Subgraph without support for temporal versioning but there wasn't a unique revision for the right entity of the link entity with ID: ${linkEntity.metadata.recordId.entityId}`); | ||
@@ -808,0 +811,0 @@ } |
@@ -805,3 +805,6 @@ import { useModuleConstructor } from '@blockprotocol/core/react'; | ||
[]; /** @todo - Are we comfortable hiding the `undefined` value here with an empty array? */ | ||
if (rightEntityRevisions.length !== 1) { | ||
if (rightEntityRevisions.length === 0) { | ||
throw new Error(`No right entity found for the link entity with ID: ${linkEntity.metadata.recordId.entityId}`); | ||
} | ||
else if (rightEntityRevisions.length > 1) { | ||
throw new Error(`Querying a Subgraph without support for temporal versioning but there wasn't a unique revision for the right entity of the link entity with ID: ${linkEntity.metadata.recordId.entityId}`); | ||
@@ -808,0 +811,0 @@ } |
{ | ||
"name": "@blockprotocol/graph", | ||
"version": "0.2.2", | ||
"version": "0.2.3-canary-20230413145831", | ||
"description": "Implementation of the Block Protocol Graph service specification for blocks and embedding applications", | ||
@@ -133,3 +133,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@blockprotocol/core": "0.1.2", | ||
"@blockprotocol/core": "0.1.3-canary-20230413145831", | ||
"@blockprotocol/type-system": "0.1.1", | ||
@@ -136,0 +136,0 @@ "ajv": "^8.11.2", |
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
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1383134
28474
+ Added@blockprotocol/core@0.1.3-canary-20230413145831(transitive)
- Removed@blockprotocol/core@0.1.2(transitive)