memd-cli 2.0.0 → 2.0.1

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/main.js CHANGED
@@ -347,6 +347,11 @@ function spawnPager(text, options) {
347
347
  }
348
348
  });
349
349
 
350
+ // Ignore EPIPE on stdin - expected when user quits pager before all content is consumed
351
+ pager.stdin.on('error', (err) => {
352
+ if (err.code !== 'EPIPE') throw err;
353
+ });
354
+
350
355
  pager.stdin.write(text);
351
356
  pager.stdin.end();
352
357
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memd-cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "main": "main.js",
6
6
  "bin": {