@rdfx/resource 0.0.22 → 0.0.24

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.
@@ -2,6 +2,8 @@ import type { BlankNode, DataFactory, DatasetCore, Literal, NamedNode, Quad_Grap
2
2
  import { Either } from "purify-ts";
3
3
  import type { Identifier as _Identifier, Identifier } from "./Identifier.js";
4
4
  import { ListStructureError as _ListStructureError } from "./ListStructureError.js";
5
+ import { MissingValueError as _MissingValueError } from "./MissingValueError.js";
6
+ import { MistypedValueError as _MistypedValueError } from "./MistypedValueError.js";
5
7
  import type { PropertyPath } from "./PropertyPath.js";
6
8
  import type { Term } from "./Term.js";
7
9
  import { Value as _Value } from "./Value.js";
@@ -93,6 +95,10 @@ export declare namespace Resource {
93
95
  type Identifier = _Identifier;
94
96
  const ListStructureError: typeof _ListStructureError;
95
97
  type ListStructureError = _ListStructureError;
98
+ const MissingValueError: typeof _MissingValueError;
99
+ type MissingValueError = _MissingValueError;
100
+ const MistypedValueError: typeof _MistypedValueError;
101
+ type MistypedValueError<T> = _MistypedValueError<T>;
96
102
  const ValueError: typeof _ValueError;
97
103
  type ValueError = _ValueError;
98
104
  const Value: typeof _Value;
package/dist/Resource.js CHANGED
@@ -2,7 +2,8 @@ import TermSet from "@rdfjs/term-set";
2
2
  import { Either, Left } from "purify-ts";
3
3
  import { DatasetValues } from "./DatasetValues.js";
4
4
  import { ListStructureError as _ListStructureError } from "./ListStructureError.js";
5
- import { MistypedValueError } from "./MistypedValueError.js";
5
+ import { MissingValueError as _MissingValueError } from "./MissingValueError.js";
6
+ import { MistypedValueError as _MistypedValueError } from "./MistypedValueError.js";
6
7
  import { Value as _Value } from "./Value.js";
7
8
  import { ValueError as _ValueError } from "./ValueError.js";
8
9
  import { Values as _Values } from "./Values.js";
@@ -253,7 +254,7 @@ export class Resource {
253
254
  case "NamedNode":
254
255
  break;
255
256
  default:
256
- return Left(new MistypedValueError({
257
+ return Left(new Resource.MistypedValueError({
257
258
  actualValue: firstObject,
258
259
  expectedValueType: "BlankNode | Literal | NamedNode",
259
260
  focusResource: this,
@@ -283,7 +284,7 @@ export class Resource {
283
284
  case "NamedNode":
284
285
  break;
285
286
  default:
286
- return Left(new MistypedValueError({
287
+ return Left(new Resource.MistypedValueError({
287
288
  actualValue: restObject,
288
289
  expectedValueType: "BlankNode | NamedNode",
289
290
  focusResource: this,
@@ -324,6 +325,8 @@ export class Resource {
324
325
  }
325
326
  (function (Resource) {
326
327
  Resource.ListStructureError = _ListStructureError;
328
+ Resource.MissingValueError = _MissingValueError;
329
+ Resource.MistypedValueError = _MistypedValueError;
327
330
  Resource.ValueError = _ValueError;
328
331
  Resource.Value = _Value;
329
332
  Resource.Values = _Values;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@rdfx/literal": "0.0.22",
4
- "@rdfx/string": "0.0.22",
3
+ "@rdfx/literal": "0.0.24",
4
+ "@rdfx/string": "0.0.24",
5
5
  "@rdfjs/term-set": "~2.0.3",
6
6
  "@rdfjs/types": "~2.0.1",
7
7
  "@types/rdfjs__term-set": "~2.0.9",
@@ -9,7 +9,7 @@
9
9
  "purify-ts": "~2.1.4"
10
10
  },
11
11
  "devDependencies": {
12
- "@rdfx/data-factory": "0.0.22",
12
+ "@rdfx/data-factory": "0.0.24",
13
13
  "@rdfjs/dataset": "~2.0.2",
14
14
  "@tpluscode/rdf-ns-builders": "~4.3.0",
15
15
  "@types/rdfjs__dataset": "~2.0.7",
@@ -41,5 +41,5 @@
41
41
  },
42
42
  "type": "module",
43
43
  "types": "./dist/index.d.ts",
44
- "version": "0.0.22"
44
+ "version": "0.0.24"
45
45
  }