cacache 10.0.1 → 10.0.2

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
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ <a name="10.0.2"></a>
6
+ ## [10.0.2](https://github.com/zkat/cacache/compare/v10.0.1...v10.0.2) (2018-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ls:** deleted entries could cause a premature stream EOF ([347dc36](https://github.com/zkat/cacache/commit/347dc36))
12
+
13
+
14
+
5
15
  <a name="10.0.1"></a>
6
16
  ## [10.0.1](https://github.com/zkat/cacache/compare/v10.0.0...v10.0.1) (2017-11-15)
7
17
 
@@ -116,9 +116,10 @@ function lsStream (cache) {
116
116
  }, new Map())
117
117
 
118
118
  return getKeyToEntry.then(reduced => {
119
- return Array.from(reduced.values()).map(
120
- entry => stream.push(formatEntry(cache, entry))
121
- )
119
+ for (let entry of reduced.values()) {
120
+ const formatted = formatEntry(cache, entry)
121
+ formatted && stream.push(formatted)
122
+ }
122
123
  }).catch({code: 'ENOENT'}, nop)
123
124
  })
124
125
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cacache",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "cache-version": {
5
5
  "content": "2",
6
6
  "index": "5"