@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.
Files changed (46) hide show
  1. package/.editorconfig +9 -0
  2. package/__tests__/channels.test.ts +1 -38
  3. package/examples/echo/.idea/echo.iml +9 -0
  4. package/examples/echo/.idea/misc.xml +6 -0
  5. package/examples/echo/.idea/modules.xml +8 -0
  6. package/examples/echo/.idea/vcs.xml +7 -0
  7. package/examples/echo/.swls/config.json +1 -0
  8. package/examples/echo/index.ttl +3 -0
  9. package/examples/echo/minimal.ttl +90 -0
  10. package/examples/echo/pipeline.ttl +22 -4
  11. package/examples/echo/processors.ttl +5 -7
  12. package/examples/echo/shacl.ttl +9 -0
  13. package/examples/echo/shape.ttl +1339 -0
  14. package/examples/echo/src/processors.ts +3 -4
  15. package/examples/echo/test.ttl +9 -12
  16. package/file:/home/silvius/Projects/mumo-pipeline/ldes/http_3A_2F_2Fdata.mumo.be_2Fstreams_2Fnodes_2Fdefault/root/index.trig +3 -0
  17. package/index.ttl +29 -21
  18. package/ldes/http_3A_2F_2Fdata.mumo.be_2Fstreams_2Fnodes_2Fdefault/root/index.trig +3 -0
  19. package/lib/client.js +2 -2
  20. package/lib/index.d.ts +3 -0
  21. package/lib/index.js +4 -1
  22. package/lib/jsonld.js +4 -3
  23. package/lib/logger.d.ts +3 -1
  24. package/lib/logger.js +23 -1
  25. package/lib/reader.d.ts +2 -1
  26. package/lib/reader.js +7 -16
  27. package/lib/reexports.d.ts +3 -0
  28. package/lib/reexports.js +4 -0
  29. package/lib/runner.d.ts +4 -3
  30. package/lib/runner.js +30 -20
  31. package/lib/testUtils.d.ts +24 -0
  32. package/lib/testUtils.js +150 -0
  33. package/lib/tsconfig.tsbuildinfo +1 -1
  34. package/lib/writer.d.ts +2 -1
  35. package/lib/writer.js +1 -1
  36. package/minimal.ttl +99 -0
  37. package/package.json +3 -3
  38. package/src/client.ts +15 -15
  39. package/src/index.ts +4 -0
  40. package/src/jsonld.ts +5 -2
  41. package/src/logger.ts +27 -1
  42. package/src/reader.ts +9 -15
  43. package/src/reexports.ts +6 -0
  44. package/src/runner.ts +51 -40
  45. package/src/testUtils.ts +196 -0
  46. 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
- private readonly uri: string
23
+ readonly uri: string
23
24
  private readonly client: RunnerClient
24
25
  private readonly write: Writable
25
26
  private readonly logger: Logger