bfj 7.0.0 → 7.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/HISTORY.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # History
2
2
 
3
+ ## 7.0.1
4
+
5
+ ### Bug fixes
6
+
7
+ * match: prevent mismatched properties when minDepth is set (4efaf1a)
8
+
3
9
  ## 7.0.0
4
10
 
5
11
  ### Breaking changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bfj",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Big-friendly JSON. Asynchronous streaming functions for large JSON data sets.",
5
5
  "homepage": "https://gitlab.com/philbooth/bfj",
6
6
  "bugs": "https://gitlab.com/philbooth/bfj/issues",
package/src/match.js CHANGED
@@ -160,6 +160,10 @@ function match (stream, selector, options = {}) {
160
160
  }
161
161
 
162
162
  function property (name) {
163
+ if (scopes.length < minDepth) {
164
+ return
165
+ }
166
+
163
167
  properties.push(name)
164
168
  }
165
169