From eb3ed8d8d749d04f5a7337a13f21673645bd0ea0 Mon Sep 17 00:00:00 2001 From: Jesse Wright <63333554+jeswr@users.noreply.github.com> Date: Mon, 26 May 2025 18:02:42 +0100 Subject: [PATCH] fix: fix dereferenceToStore name --- packages/cli/src/util/forAllShapes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/util/forAllShapes.ts b/packages/cli/src/util/forAllShapes.ts index e1c0ec2..b1adf32 100644 --- a/packages/cli/src/util/forAllShapes.ts +++ b/packages/cli/src/util/forAllShapes.ts @@ -1,7 +1,7 @@ import fs from "fs"; import path from "path"; import { shaclStoreToShexSchema, writeShexSchema } from "@jeswr/shacl2shex"; -import { dereferenceStore } from "rdf-dereference-store"; +import { dereferenceToStore } from "rdf-dereference-store"; import type { Store } from "n3"; import { DataFactory as DF } from "n3"; import { rdf } from "rdf-namespaces"; @@ -44,9 +44,9 @@ export async function forAllShapes( const shaclPromise = Promise.all( shapeDir.map(async (file) => { if (file.isFile()) { - let store: Awaited>; + let store: Awaited>; try { - store = await dereferenceStore(path.join(shapePath, file.name), { + store = await dereferenceToStore(path.join(shapePath, file.name), { localFiles: true, }); } catch (e) {