@rdfc/js-runner 2.0.0-alpha.1 → 2.0.0-alpha.11
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.
- package/.editorconfig +9 -0
- package/__tests__/channels.test.ts +1 -38
- package/examples/echo/.idea/echo.iml +9 -0
- package/examples/echo/.idea/misc.xml +6 -0
- package/examples/echo/.idea/modules.xml +8 -0
- package/examples/echo/.idea/vcs.xml +7 -0
- package/examples/echo/.swls/config.json +1 -0
- package/examples/echo/index.ttl +3 -0
- package/examples/echo/minimal.ttl +90 -0
- package/examples/echo/pipeline.ttl +22 -4
- package/examples/echo/processors.ttl +5 -7
- package/examples/echo/shacl.ttl +9 -0
- package/examples/echo/shape.ttl +1339 -0
- package/examples/echo/src/processors.ts +3 -4
- package/examples/echo/test.ttl +9 -12
- package/file:/home/silvius/Projects/mumo-pipeline/ldes/http_3A_2F_2Fdata.mumo.be_2Fstreams_2Fnodes_2Fdefault/root/index.trig +3 -0
- package/index.ttl +29 -21
- package/ldes/http_3A_2F_2Fdata.mumo.be_2Fstreams_2Fnodes_2Fdefault/root/index.trig +3 -0
- package/lib/client.js +2 -2
- package/lib/index.d.ts +3 -0
- package/lib/index.js +4 -1
- package/lib/jsonld.js +4 -3
- package/lib/logger.d.ts +3 -1
- package/lib/logger.js +23 -1
- package/lib/reader.d.ts +2 -1
- package/lib/reader.js +7 -16
- package/lib/reexports.d.ts +3 -0
- package/lib/reexports.js +4 -0
- package/lib/runner.d.ts +4 -3
- package/lib/runner.js +30 -20
- package/lib/testUtils.d.ts +24 -0
- package/lib/testUtils.js +150 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/writer.d.ts +2 -1
- package/lib/writer.js +1 -1
- package/minimal.ttl +99 -0
- package/package.json +3 -3
- package/src/client.ts +15 -15
- package/src/index.ts +4 -0
- package/src/jsonld.ts +5 -2
- package/src/logger.ts +27 -1
- package/src/reader.ts +9 -15
- package/src/reexports.ts +6 -0
- package/src/runner.ts +51 -40
- package/src/testUtils.ts +196 -0
- package/src/writer.ts +2 -1
package/src/writer.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Any } from './reader'
|
|
|
5
5
|
|
|
6
6
|
type Writable = (msg: OrchestratorMessage) => Promise<unknown>
|
|
7
7
|
export interface Writer {
|
|
8
|
+
readonly uri: string
|
|
8
9
|
buffer(buffer: Uint8Array): Promise<void>
|
|
9
10
|
|
|
10
11
|
stream(buffer: AsyncIterable<Uint8Array>): Promise<void>
|
|
@@ -19,7 +20,7 @@ export interface Writer {
|
|
|
19
20
|
}
|
|
20
21
|
const encoder = new TextEncoder()
|
|
21
22
|
export class WriterInstance implements Writer {
|
|
22
|
-
|
|
23
|
+
readonly uri: string
|
|
23
24
|
private readonly client: RunnerClient
|
|
24
25
|
private readonly write: Writable
|
|
25
26
|
private readonly logger: Logger
|