@squiz/resource-browser 1.67.0 → 1.67.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @squiz/resource-browser
2
2
 
3
+ ## 1.67.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9e4cad8: Fixed minor issue with finding best matched lineage in resource browser
8
+
3
9
  ## 1.67.0
4
10
 
5
11
  ### Minor Changes
@@ -19,7 +19,7 @@ const findBestMatchLineage = (source, resource) => {
19
19
  // * Full lineage is: 1 > 10 > 100 > 1000 > 10000
20
20
  // * The source has a node with an ID of: 100
21
21
  // * The returned lineage will be: 100 > 1000 > 10000
22
- return lineage.resourceIds.slice(rootNodeIndex, lineage.resourceIds.length - rootNodeIndex + 1);
22
+ return lineage.resourceIds.slice(rootNodeIndex);
23
23
  }
24
24
  }
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/resource-browser",
3
- "version": "1.67.0",
3
+ "version": "1.67.1",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "private": false,
@@ -21,7 +21,7 @@ export const findBestMatchLineage = (source: Source, resource: Resource): string
21
21
  // * Full lineage is: 1 > 10 > 100 > 1000 > 10000
22
22
  // * The source has a node with an ID of: 100
23
23
  // * The returned lineage will be: 100 > 1000 > 10000
24
- return lineage.resourceIds.slice(rootNodeIndex, lineage.resourceIds.length - rootNodeIndex + 1);
24
+ return lineage.resourceIds.slice(rootNodeIndex);
25
25
  }
26
26
  }
27
27
  }