@ldo/connected-nextgraph 1.0.0-alpha.45 → 1.0.0-alpha.46

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.
@@ -1 +1 @@
1
- {"version":3,"file":"NextGraphResource.mjs","names":["createQuad","quad"],"sources":["../../src/resources/NextGraphResource.ts"],"sourcesContent":["import type {\n ConnectedContext,\n NotificationSubscription,\n SubscriptionCallbacks,\n} from \"@ldo/connected\";\nimport { UnexpectedResourceError, UpdateSuccess } from \"@ldo/connected\";\nimport {\n Unfetched,\n type ConnectedResult,\n type Resource,\n type ResourceEventEmitter,\n} from \"@ldo/connected\";\nimport type { NextGraphUri } from \"../types\";\nimport EventEmitter from \"events\";\nimport type { NextGraphConnectedPlugin } from \"../NextGraphConnectedPlugin\";\nimport { changesToSparqlUpdate, type DatasetChanges } from \"@ldo/rdf-utils\";\nimport type { NextGraphNotificationMessage } from \"../notifications/NextGraphNotificationMessage\";\nimport type { Dataset, Quad } from \"@rdfjs/types\";\nimport { namedNode, quad as createQuad } from \"@ldo/rdf-utils\";\nimport { NextGraphReadSuccess } from \"../results/NextGraphReadSuccess\";\nimport { NextGraphNotificationSubscription } from \"../notifications/NextGraphNotificationSubscription\";\nimport { parseRdf } from \"@ldo/ldo\";\nimport type { LdoDataset } from \"@ldo/ldo\";\nimport { createDataset } from \"@ldo/dataset\";\nexport class NextGraphResource\n extends (EventEmitter as new () => ResourceEventEmitter)\n implements Resource<NextGraphUri>\n{\n public readonly uri: NextGraphUri;\n public readonly type = \"NextGraphResource\" as const;\n public readonly isError = false as const;\n public status: ConnectedResult;\n protected context: ConnectedContext<NextGraphConnectedPlugin[]>;\n\n private fetched: boolean = false;\n private loading: boolean = false;\n private present: boolean | undefined = undefined;\n\n /**\n * @internal\n * Handles notification subscriptions\n */\n protected notificationSubscription: NotificationSubscription<\n NextGraphConnectedPlugin,\n NextGraphNotificationMessage\n >;\n\n constructor(\n uri: NextGraphUri,\n context: ConnectedContext<NextGraphConnectedPlugin[]>,\n ) {\n super();\n this.uri = uri;\n this.status = new Unfetched(this);\n this.context = context;\n this.notificationSubscription = new NextGraphNotificationSubscription(\n this,\n this.onNotification.bind(this),\n this.context,\n );\n }\n\n isLoading(): boolean {\n return this.loading;\n }\n\n isFetched(): boolean {\n return this.fetched;\n }\n\n isUnfetched(): boolean {\n return !this.fetched;\n }\n\n isDoingInitialFetch(): boolean {\n return this.loading && !this.fetched;\n }\n\n isPresent(): boolean | undefined {\n return this.present;\n }\n\n isAbsent(): boolean | undefined {\n return !this.present;\n }\n\n isSubscribedToNotifications(): boolean {\n return this.notificationSubscription.isSubscribedToNotifications();\n }\n\n private handleThrownError(\n err: unknown,\n ): UnexpectedResourceError<NextGraphResource> {\n const error = UnexpectedResourceError.fromThrown(this, err);\n this.loading = false;\n this.status = error;\n this.emit(\"update\");\n return error;\n }\n\n private overwriteQuads(quads: Quad[] | Dataset<Quad>) {\n const dataset = this.context.dataset;\n const graphNode = namedNode(this.uri);\n dataset.deleteMatches(undefined, undefined, undefined, graphNode);\n dataset.addAll(\n quads.map((ngQuad) => {\n return createQuad(\n ngQuad.subject,\n ngQuad.predicate,\n ngQuad.object,\n graphNode,\n );\n }),\n );\n }\n\n async read(): Promise<\n NextGraphReadSuccess | UnexpectedResourceError<NextGraphResource>\n > {\n try {\n this.loading = true;\n this.emit(\"update\");\n\n // Fetch the data once using construct\n const sparqlResult = await this.context.nextgraph.ng.sparql_query(\n this.context.nextgraph.sessionId,\n `CONSTRUCT { ?s ?p ?o } WHERE { GRAPH <${this.uri}> { ?s ?p ?o } }`,\n undefined,\n this.uri,\n );\n // Update the dataset\n this.overwriteQuads(sparqlResult);\n\n // Update statuses\n const result = new NextGraphReadSuccess(this, false);\n this.loading = false;\n this.fetched = true;\n this.present = true;\n this.status = result;\n this.emit(\"update\");\n return result;\n } catch (err) {\n if (err === \"RepoNotFound\") {\n const result = new NextGraphReadSuccess(this, false);\n this.loading = false;\n this.fetched = true;\n this.present = false;\n this.status = result;\n this.emit(\"update\");\n return result;\n }\n return this.handleThrownError(err);\n }\n }\n\n async readIfUnfetched(): Promise<\n NextGraphReadSuccess | UnexpectedResourceError<NextGraphResource>\n > {\n if (this.isFetched()) {\n return new NextGraphReadSuccess(this, true);\n }\n return this.read();\n }\n\n async update(\n datasetChanges: DatasetChanges<Quad>,\n ): Promise<\n | UpdateSuccess<NextGraphResource>\n | UnexpectedResourceError<NextGraphResource>\n > {\n this.loading = true;\n this.emit(\"update\");\n\n // Optimistically apply updates\n this.context.dataset.bulk(datasetChanges);\n\n try {\n // Perform Update with remote\n await this.context.nextgraph.ng.sparql_update(\n this.context.nextgraph.sessionId,\n await changesToSparqlUpdate(datasetChanges),\n this.uri,\n );\n return new UpdateSuccess(this);\n } catch (err) {\n // Revert data on error\n this.context.dataset.bulk({\n added: datasetChanges.removed,\n removed: datasetChanges.added,\n });\n return this.handleThrownError(err);\n }\n }\n\n private async notificationToQuads(\n notificationString: string,\n ): Promise<Dataset<Quad>> {\n const rawTriples = JSON.parse(notificationString);\n const triples = (\n await Promise.all<LdoDataset>(\n rawTriples.map(async (rawTriple) =>\n parseRdf(`${rawTriple}.`, { baseIRI: this.uri }),\n ),\n )\n ).reduce((agg, ldoDataset) => {\n ldoDataset.forEach((quad) => {\n agg.add(\n createQuad(\n quad.subject,\n quad.predicate,\n quad.object,\n namedNode(this.uri),\n ),\n );\n });\n return agg;\n }, createDataset());\n return triples;\n }\n\n protected async onNotification(response: NextGraphNotificationMessage) {\n if (response.V0.State) {\n if (!response.V0.State.graph) {\n this.overwriteQuads([]);\n return;\n }\n const json_str = new TextDecoder().decode(\n response.V0.State.graph.triples,\n );\n const triples = await this.notificationToQuads(json_str);\n this.overwriteQuads(triples);\n } else if (response.V0.Patch?.graph) {\n const insertsString = new TextDecoder().decode(\n response.V0.Patch.graph.inserts,\n );\n const removesString = new TextDecoder().decode(\n response.V0.Patch.graph.removes,\n );\n\n const [added, removed] = await Promise.all(\n [insertsString, removesString].map(async (str) => {\n return this.notificationToQuads(str);\n }),\n );\n\n this.context.dataset.bulk({\n added,\n removed,\n });\n }\n }\n\n async subscribeToNotifications(\n callbacks?: SubscriptionCallbacks<NextGraphNotificationMessage>,\n ): Promise<string> {\n return await this.notificationSubscription.subscribeToNotifications(\n callbacks,\n );\n }\n\n unsubscribeFromNotifications(subscriptionId: string): Promise<void> {\n return this.notificationSubscription.unsubscribeFromNotification(\n subscriptionId,\n );\n }\n\n unsubscribeFromAllNotifications(): Promise<void> {\n return this.notificationSubscription.unsubscribeFromAllNotifications();\n }\n}\n"],"mappings":";;;;;;;;AAwBA,IAAa,oBAAb,cACW,aAEX;CAoBE,YACE,KACA,SACA;AACA,SAAO;cAtBc;iBACG;iBAIC;iBACA;iBACY,KAAA;AAgBrC,OAAK,MAAM;AACX,OAAK,SAAS,IAAI,UAAU,KAAK;AACjC,OAAK,UAAU;AACf,OAAK,2BAA2B,IAAI,kCAClC,MACA,KAAK,eAAe,KAAK,KAAK,EAC9B,KAAK,QACN;;CAGH,YAAqB;AACnB,SAAO,KAAK;;CAGd,YAAqB;AACnB,SAAO,KAAK;;CAGd,cAAuB;AACrB,SAAO,CAAC,KAAK;;CAGf,sBAA+B;AAC7B,SAAO,KAAK,WAAW,CAAC,KAAK;;CAG/B,YAAiC;AAC/B,SAAO,KAAK;;CAGd,WAAgC;AAC9B,SAAO,CAAC,KAAK;;CAGf,8BAAuC;AACrC,SAAO,KAAK,yBAAyB,6BAA6B;;CAGpE,kBACE,KAC4C;EAC5C,MAAM,QAAQ,wBAAwB,WAAW,MAAM,IAAI;AAC3D,OAAK,UAAU;AACf,OAAK,SAAS;AACd,OAAK,KAAK,SAAS;AACnB,SAAO;;CAGT,eAAuB,OAA+B;EACpD,MAAM,UAAU,KAAK,QAAQ;EAC7B,MAAM,YAAY,UAAU,KAAK,IAAI;AACrC,UAAQ,cAAc,KAAA,GAAW,KAAA,GAAW,KAAA,GAAW,UAAU;AACjE,UAAQ,OACN,MAAM,KAAK,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,UAlBE,MAAM,QAAQ,IACZ,WAAW,IAAI,OAAO,cACpB,SAAS,GAAG,UAAU,IAAI,EAAE,SAAS,KAAK,KAAK,CAAC,CACjD,CACF,EACD,QAAQ,KAAK,eAAe;AAC5B,cAAW,SAAS,WAAS;AAC3B,QAAI,IACFA,KACEC,OAAK,SACLA,OAAK,WACLA,OAAK,QACL,UAAU,KAAK,IAAI,CACpB,CACF;KACD;AACF,UAAO;KACN,eAAe,CAAC;;CAIrB,MAAgB,eAAe,UAAwC;AACrE,MAAI,SAAS,GAAG,OAAO;AACrB,OAAI,CAAC,SAAS,GAAG,MAAM,OAAO;AAC5B,SAAK,eAAe,EAAE,CAAC;AACvB;;GAEF,MAAM,WAAW,IAAI,aAAa,CAAC,OACjC,SAAS,GAAG,MAAM,MAAM,QACzB;GACD,MAAM,UAAU,MAAM,KAAK,oBAAoB,SAAS;AACxD,QAAK,eAAe,QAAQ;aACnB,SAAS,GAAG,OAAO,OAAO;GACnC,MAAM,gBAAgB,IAAI,aAAa,CAAC,OACtC,SAAS,GAAG,MAAM,MAAM,QACzB;GACD,MAAM,gBAAgB,IAAI,aAAa,CAAC,OACtC,SAAS,GAAG,MAAM,MAAM,QACzB;GAED,MAAM,CAAC,OAAO,WAAW,MAAM,QAAQ,IACrC,CAAC,eAAe,cAAc,CAAC,IAAI,OAAO,QAAQ;AAChD,WAAO,KAAK,oBAAoB,IAAI;KACpC,CACH;AAED,QAAK,QAAQ,QAAQ,KAAK;IACxB;IACA;IACD,CAAC;;;CAIN,MAAM,yBACJ,WACiB;AACjB,SAAO,MAAM,KAAK,yBAAyB,yBACzC,UACD;;CAGH,6BAA6B,gBAAuC;AAClE,SAAO,KAAK,yBAAyB,4BACnC,eACD;;CAGH,kCAAiD;AAC/C,SAAO,KAAK,yBAAyB,iCAAiC"}
1
+ {"version":3,"file":"NextGraphResource.mjs","names":["createQuad","quad"],"sources":["../../src/resources/NextGraphResource.ts"],"sourcesContent":["import type {\n ConnectedContext,\n NotificationSubscription,\n SubscriptionCallbacks,\n} from \"@ldo/connected\";\nimport { UnexpectedResourceError, UpdateSuccess } from \"@ldo/connected\";\nimport {\n Unfetched,\n type ConnectedResult,\n type Resource,\n type ResourceEventEmitter,\n} from \"@ldo/connected\";\nimport type { NextGraphUri } from \"../types\";\nimport EventEmitter from \"events\";\nimport type { NextGraphConnectedPlugin } from \"../NextGraphConnectedPlugin\";\nimport { changesToSparqlUpdate, type DatasetChanges } from \"@ldo/rdf-utils\";\nimport type { NextGraphNotificationMessage } from \"../notifications/NextGraphNotificationMessage\";\nimport type { Dataset, Quad } from \"@rdfjs/types\";\nimport { namedNode, quad as createQuad } from \"@ldo/rdf-utils\";\nimport { NextGraphReadSuccess } from \"../results/NextGraphReadSuccess\";\nimport { NextGraphNotificationSubscription } from \"../notifications/NextGraphNotificationSubscription\";\nimport { parseRdf } from \"@ldo/ldo\";\nimport type { LdoDataset } from \"@ldo/ldo\";\nimport { createDataset } from \"@ldo/dataset\";\nexport class NextGraphResource\n extends (EventEmitter as new () => ResourceEventEmitter)\n implements Resource<NextGraphUri>\n{\n public readonly uri: NextGraphUri;\n public readonly type = \"NextGraphResource\" as const;\n public readonly isError = false as const;\n public status: ConnectedResult;\n protected context: ConnectedContext<NextGraphConnectedPlugin[]>;\n\n private fetched: boolean = false;\n private loading: boolean = false;\n private present: boolean | undefined = undefined;\n\n /**\n * @internal\n * Handles notification subscriptions\n */\n protected notificationSubscription: NotificationSubscription<\n NextGraphConnectedPlugin,\n NextGraphNotificationMessage\n >;\n\n constructor(\n uri: NextGraphUri,\n context: ConnectedContext<NextGraphConnectedPlugin[]>,\n ) {\n super();\n this.uri = uri;\n this.status = new Unfetched(this);\n this.context = context;\n this.notificationSubscription = new NextGraphNotificationSubscription(\n this,\n this.onNotification.bind(this),\n this.context,\n );\n }\n\n isLoading(): boolean {\n return this.loading;\n }\n\n isFetched(): boolean {\n return this.fetched;\n }\n\n isUnfetched(): boolean {\n return !this.fetched;\n }\n\n isDoingInitialFetch(): boolean {\n return this.loading && !this.fetched;\n }\n\n isPresent(): boolean | undefined {\n return this.present;\n }\n\n isAbsent(): boolean | undefined {\n return !this.present;\n }\n\n isSubscribedToNotifications(): boolean {\n return this.notificationSubscription.isSubscribedToNotifications();\n }\n\n private handleThrownError(\n err: unknown,\n ): UnexpectedResourceError<NextGraphResource> {\n const error = UnexpectedResourceError.fromThrown(this, err);\n this.loading = false;\n this.status = error;\n this.emit(\"update\");\n return error;\n }\n\n private overwriteQuads(quads: Quad[] | Dataset<Quad>) {\n const dataset = this.context.dataset;\n const graphNode = namedNode(this.uri);\n dataset.deleteMatches(undefined, undefined, undefined, graphNode);\n dataset.addAll(\n quads.map((ngQuad) => {\n return createQuad(\n ngQuad.subject,\n ngQuad.predicate,\n ngQuad.object,\n graphNode,\n );\n }),\n );\n }\n\n async read(): Promise<\n NextGraphReadSuccess | UnexpectedResourceError<NextGraphResource>\n > {\n try {\n this.loading = true;\n this.emit(\"update\");\n\n // Fetch the data once using construct\n const sparqlResult = await this.context.nextgraph.ng.sparql_query(\n this.context.nextgraph.sessionId,\n `CONSTRUCT { ?s ?p ?o } WHERE { GRAPH <${this.uri}> { ?s ?p ?o } }`,\n undefined,\n this.uri,\n );\n // Update the dataset\n this.overwriteQuads(sparqlResult);\n\n // Update statuses\n const result = new NextGraphReadSuccess(this, false);\n this.loading = false;\n this.fetched = true;\n this.present = true;\n this.status = result;\n this.emit(\"update\");\n return result;\n } catch (err) {\n if (err === \"RepoNotFound\") {\n const result = new NextGraphReadSuccess(this, false);\n this.loading = false;\n this.fetched = true;\n this.present = false;\n this.status = result;\n this.emit(\"update\");\n return result;\n }\n return this.handleThrownError(err);\n }\n }\n\n async readIfUnfetched(): Promise<\n NextGraphReadSuccess | UnexpectedResourceError<NextGraphResource>\n > {\n if (this.isFetched()) {\n return new NextGraphReadSuccess(this, true);\n }\n return this.read();\n }\n\n async update(\n datasetChanges: DatasetChanges<Quad>,\n ): Promise<\n | UpdateSuccess<NextGraphResource>\n | UnexpectedResourceError<NextGraphResource>\n > {\n this.loading = true;\n this.emit(\"update\");\n\n // Optimistically apply updates\n this.context.dataset.bulk(datasetChanges);\n\n try {\n // Perform Update with remote\n await this.context.nextgraph.ng.sparql_update(\n this.context.nextgraph.sessionId,\n await changesToSparqlUpdate(datasetChanges),\n this.uri,\n );\n return new UpdateSuccess(this);\n } catch (err) {\n // Revert data on error\n this.context.dataset.bulk({\n added: datasetChanges.removed,\n removed: datasetChanges.added,\n });\n return this.handleThrownError(err);\n }\n }\n\n private async notificationToQuads(\n notificationString: string,\n ): Promise<Dataset<Quad>> {\n const rawTriples = JSON.parse(notificationString);\n const triples = (\n await Promise.all<LdoDataset>(\n rawTriples.map(async (rawTriple) =>\n parseRdf(`${rawTriple}.`, { baseIRI: this.uri }),\n ),\n )\n ).reduce((agg, ldoDataset) => {\n ldoDataset.forEach((quad) => {\n agg.add(\n createQuad(\n quad.subject,\n quad.predicate,\n quad.object,\n namedNode(this.uri),\n ),\n );\n });\n return agg;\n }, createDataset());\n return triples;\n }\n\n protected async onNotification(response: NextGraphNotificationMessage) {\n if (response.V0.State) {\n if (!response.V0.State.graph) {\n this.overwriteQuads([]);\n return;\n }\n const json_str = new TextDecoder().decode(\n response.V0.State.graph.triples,\n );\n const triples = await this.notificationToQuads(json_str);\n this.overwriteQuads(triples);\n } else if (response.V0.Patch?.graph) {\n const insertsString = new TextDecoder().decode(\n response.V0.Patch.graph.inserts,\n );\n const removesString = new TextDecoder().decode(\n response.V0.Patch.graph.removes,\n );\n\n const [added, removed] = await Promise.all(\n [insertsString, removesString].map(async (str) => {\n return this.notificationToQuads(str);\n }),\n );\n\n this.context.dataset.bulk({\n added,\n removed,\n });\n }\n }\n\n async subscribeToNotifications(\n callbacks?: SubscriptionCallbacks<NextGraphNotificationMessage>,\n ): Promise<string> {\n return await this.notificationSubscription.subscribeToNotifications(\n callbacks,\n );\n }\n\n unsubscribeFromNotifications(subscriptionId: string): Promise<void> {\n return this.notificationSubscription.unsubscribeFromNotification(\n subscriptionId,\n );\n }\n\n unsubscribeFromAllNotifications(): Promise<void> {\n return this.notificationSubscription.unsubscribeFromAllNotifications();\n }\n}\n"],"mappings":";;;;;;;;AAwBA,IAAa,oBAAb,cACW,aAEX;CAoBE,YACE,KACA,SACA;AACA,SAAO;AAtBT,OAAgB,OAAO;AACvB,OAAgB,UAAU;AAI1B,OAAQ,UAAmB;AAC3B,OAAQ,UAAmB;AAC3B,OAAQ,UAA+B,KAAA;AAgBrC,OAAK,MAAM;AACX,OAAK,SAAS,IAAI,UAAU,KAAK;AACjC,OAAK,UAAU;AACf,OAAK,2BAA2B,IAAI,kCAClC,MACA,KAAK,eAAe,KAAK,KAAK,EAC9B,KAAK,QACN;;CAGH,YAAqB;AACnB,SAAO,KAAK;;CAGd,YAAqB;AACnB,SAAO,KAAK;;CAGd,cAAuB;AACrB,SAAO,CAAC,KAAK;;CAGf,sBAA+B;AAC7B,SAAO,KAAK,WAAW,CAAC,KAAK;;CAG/B,YAAiC;AAC/B,SAAO,KAAK;;CAGd,WAAgC;AAC9B,SAAO,CAAC,KAAK;;CAGf,8BAAuC;AACrC,SAAO,KAAK,yBAAyB,6BAA6B;;CAGpE,kBACE,KAC4C;EAC5C,MAAM,QAAQ,wBAAwB,WAAW,MAAM,IAAI;AAC3D,OAAK,UAAU;AACf,OAAK,SAAS;AACd,OAAK,KAAK,SAAS;AACnB,SAAO;;CAGT,eAAuB,OAA+B;EACpD,MAAM,UAAU,KAAK,QAAQ;EAC7B,MAAM,YAAY,UAAU,KAAK,IAAI;AACrC,UAAQ,cAAc,KAAA,GAAW,KAAA,GAAW,KAAA,GAAW,UAAU;AACjE,UAAQ,OACN,MAAM,KAAK,WAAW;AACpB,UAAOA,KACL,OAAO,SACP,OAAO,WACP,OAAO,QACP,UACD;IACD,CACH;;CAGH,MAAM,OAEJ;AACA,MAAI;AACF,QAAK,UAAU;AACf,QAAK,KAAK,SAAS;GAGnB,MAAM,eAAe,MAAM,KAAK,QAAQ,U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FA,KACEC,OAAK,SACLA,OAAK,WACLA,OAAK,QACL,UAAU,KAAK,IAAI,CACpB,CACF;KACD;AACF,UAAO;KACN,eAAe,CAAC;;CAIrB,MAAgB,eAAe,UAAwC;AACrE,MAAI,SAAS,GAAG,OAAO;AACrB,OAAI,CAAC,SAAS,GAAG,MAAM,OAAO;AAC5B,SAAK,eAAe,EAAE,CAAC;AACvB;;GAEF,MAAM,WAAW,IAAI,aAAa,CAAC,OACjC,SAAS,GAAG,MAAM,MAAM,QACzB;GACD,MAAM,UAAU,MAAM,KAAK,oBAAoB,SAAS;AACxD,QAAK,eAAe,QAAQ;aACnB,SAAS,GAAG,OAAO,OAAO;GACnC,MAAM,gBAAgB,IAAI,aAAa,CAAC,OACtC,SAAS,GAAG,MAAM,MAAM,QACzB;GACD,MAAM,gBAAgB,IAAI,aAAa,CAAC,OACtC,SAAS,GAAG,MAAM,MAAM,QACzB;GAED,MAAM,CAAC,OAAO,WAAW,MAAM,QAAQ,IACrC,CAAC,eAAe,cAAc,CAAC,IAAI,OAAO,QAAQ;AAChD,WAAO,KAAK,oBAAoB,IAAI;KACpC,CACH;AAED,QAAK,QAAQ,QAAQ,KAAK;IACxB;IACA;IACD,CAAC;;;CAIN,MAAM,yBACJ,WACiB;AACjB,SAAO,MAAM,KAAK,yBAAyB,yBACzC,UACD;;CAGH,6BAA6B,gBAAuC;AAClE,SAAO,KAAK,yBAAyB,4BACnC,eACD;;CAGH,kCAAiD;AAC/C,SAAO,KAAK,yBAAyB,iCAAiC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NextGraphReadSuccess.mjs","names":[],"sources":["../../src/results/NextGraphReadSuccess.ts"],"sourcesContent":["import { ReadSuccess } from \"@ldo/connected\";\nimport type { NextGraphResource } from \"../resources/NextGraphResource\";\n\nexport class NextGraphReadSuccess extends ReadSuccess<NextGraphResource> {\n type = \"nextGraphReadSuccess\" as const;\n}\n"],"mappings":";;AAGA,IAAa,uBAAb,cAA0C,YAA+B;;;cAChE"}
1
+ {"version":3,"file":"NextGraphReadSuccess.mjs","names":[],"sources":["../../src/results/NextGraphReadSuccess.ts"],"sourcesContent":["import { ReadSuccess } from \"@ldo/connected\";\nimport type { NextGraphResource } from \"../resources/NextGraphResource\";\n\nexport class NextGraphReadSuccess extends ReadSuccess<NextGraphResource> {\n type = \"nextGraphReadSuccess\" as const;\n}\n"],"mappings":";;AAGA,IAAa,uBAAb,cAA0C,YAA+B;;;AACvE,OAAA,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldo/connected-nextgraph",
3
- "version": "1.0.0-alpha.45",
3
+ "version": "1.0.0-alpha.46",
4
4
  "description": "A plugin for @ldo/connected to work with the Solid ecosystem.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -43,7 +43,7 @@
43
43
  "homepage": "https://github.com/o-development/ldo/tree/main/packages/solid#readme",
44
44
  "devDependencies": {
45
45
  "@inrupt/solid-client-authn-core": "^3.0.0",
46
- "@ldo/cli": "^1.0.0-alpha.45",
46
+ "@ldo/cli": "^1.0.0-alpha.46",
47
47
  "@solid-notifications/types": "^0.1.2",
48
48
  "@solid/community-server": "8.0.0-alpha.0",
49
49
  "cross-env": "^7.0.3",
@@ -57,11 +57,11 @@
57
57
  "typedoc-plugin-markdown": "^3.17.1"
58
58
  },
59
59
  "dependencies": {
60
- "@ldo/connected": "^1.0.0-alpha.45",
61
- "@ldo/dataset": "^1.0.0-alpha.45",
62
- "@ldo/ldo": "^1.0.0-alpha.45",
63
- "@ldo/rdf-utils": "^1.0.0-alpha.45",
64
- "@ldo/subscribable-dataset": "^1.0.0-alpha.45",
60
+ "@ldo/connected": "^1.0.0-alpha.46",
61
+ "@ldo/dataset": "^1.0.0-alpha.46",
62
+ "@ldo/ldo": "^1.0.0-alpha.46",
63
+ "@ldo/rdf-utils": "^1.0.0-alpha.46",
64
+ "@ldo/subscribable-dataset": "^1.0.0-alpha.46",
65
65
  "@rdfjs/types": "^1.0.1",
66
66
  "@solid-notifications/subscription": "^0.1.2",
67
67
  "cross-fetch": "^3.1.6",
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "340f7bf3871de6c6916dc83eda6bc689e975a5ad"
77
+ "gitHead": "8b7ecb814d7da2f19caa64476a1a21f8eaed52b6"
78
78
  }