barnard59-base 2.1.0 → 2.2.0

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/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
- # v1.0.0
1
+ # barnard59-base
2
+
3
+ ## 2.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e0b6f85: Added an operation to read standard input
2
8
 
3
9
  ## 2.1.0
4
10
 
package/index.js CHANGED
@@ -8,5 +8,5 @@ export { default as limit } from './limit.js'
8
8
  export { default as map } from './map.js'
9
9
  export { default as nul } from './nul.js'
10
10
  export { default as offset } from './offset.js'
11
- export { default as stdout } from './stdout.js'
11
+ export * from './process.js'
12
12
  export { default as toString } from './toString.js'
package/manifest.ttl CHANGED
@@ -98,7 +98,14 @@
98
98
  rdfs:label "stdout";
99
99
  rdfs:comment "Writes the incoming data to stdout and also forwards the data to the stream output.";
100
100
  code:implementedBy [ a code:EcmaScriptModule;
101
- code:link <node:barnard59-base/stdout.js#default>
101
+ code:link <node:barnard59-base/process.js#stdout>
102
+ ].
103
+
104
+ <stdin> a p:Operation, p:Writable, p:Readable;
105
+ rdfs:label "stdin";
106
+ rdfs:comment "Reads from standard input";
107
+ code:implementedBy [ a code:EcmaScriptModule;
108
+ code:link <node:barnard59-base/process.js#stdin>
102
109
  ].
103
110
 
104
111
  <toString> a p:Operation, p:WritableObjectMode, p:Readable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barnard59-base",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Linked Data pipelines",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -8,8 +8,10 @@ class StdOut extends Transform {
8
8
  }
9
9
  }
10
10
 
11
- function factory() {
11
+ export function stdout() {
12
12
  return new StdOut()
13
13
  }
14
14
 
15
- export default factory
15
+ export function stdin() {
16
+ return process.stdin
17
+ }