ochre-sdk 1.0.0-beta.6 → 1.0.0-beta.7
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/dist/index.d.mts +17 -9
- package/dist/index.mjs +3 -61
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1680,6 +1680,7 @@ type PropertyOptions = {
|
|
|
1680
1680
|
limitToLeafPropertyValues?: boolean;
|
|
1681
1681
|
};
|
|
1682
1682
|
type PropertyContent<T extends ReadonlyArray<string>> = PropertyValueContent<T>["content"];
|
|
1683
|
+
type SearchableProperty<T extends ReadonlyArray<string>> = Property<T> | SingleHierarchyProperty<T>;
|
|
1683
1684
|
/**
|
|
1684
1685
|
* Finds a property by its label UUID in an array of properties.
|
|
1685
1686
|
*
|
|
@@ -1689,6 +1690,7 @@ type PropertyContent<T extends ReadonlyArray<string>> = PropertyValueContent<T>[
|
|
|
1689
1690
|
* @returns The matching Property object, or null if not found
|
|
1690
1691
|
*/
|
|
1691
1692
|
declare function getPropertyByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<Property<T>>, labelUuid: string, options?: PropertyOptions): Property<T> | null;
|
|
1693
|
+
declare function getPropertyByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SingleHierarchyProperty<T>>, labelUuid: string, options?: PropertyOptions): SingleHierarchyProperty<T> | null;
|
|
1692
1694
|
/**
|
|
1693
1695
|
* Retrieves all values for a property with the given label UUID.
|
|
1694
1696
|
*
|
|
@@ -1697,7 +1699,7 @@ declare function getPropertyByLabelUuid<T extends ReadonlyArray<string> = Readon
|
|
|
1697
1699
|
* @param options - Search options, including whether to include nested properties
|
|
1698
1700
|
* @returns Array of property values, or null if property not found
|
|
1699
1701
|
*/
|
|
1700
|
-
declare function getPropertyValuesByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<
|
|
1702
|
+
declare function getPropertyValuesByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SearchableProperty<T>>, labelUuid: string, options?: PropertyOptions): Array<PropertyValueContent<T>> | null;
|
|
1701
1703
|
/**
|
|
1702
1704
|
* Retrieves all value contents for a property with the given label UUID.
|
|
1703
1705
|
*
|
|
@@ -1706,7 +1708,7 @@ declare function getPropertyValuesByLabelUuid<T extends ReadonlyArray<string> =
|
|
|
1706
1708
|
* @param options - Search options, including whether to include nested properties
|
|
1707
1709
|
* @returns Array of property value contents, or null if property not found
|
|
1708
1710
|
*/
|
|
1709
|
-
declare function getPropertyValueContentsByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<
|
|
1711
|
+
declare function getPropertyValueContentsByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SearchableProperty<T>>, labelUuid: string, options?: PropertyOptions): Array<PropertyContent<T>> | null;
|
|
1710
1712
|
/**
|
|
1711
1713
|
* Gets the first value of a property with the given label UUID.
|
|
1712
1714
|
*
|
|
@@ -1715,7 +1717,7 @@ declare function getPropertyValueContentsByLabelUuid<T extends ReadonlyArray<str
|
|
|
1715
1717
|
* @param options - Search options, including whether to include nested properties
|
|
1716
1718
|
* @returns The first property value, or null if property not found
|
|
1717
1719
|
*/
|
|
1718
|
-
declare function getPropertyValueByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<
|
|
1720
|
+
declare function getPropertyValueByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SearchableProperty<T>>, labelUuid: string, options?: PropertyOptions): PropertyValueContent<T> | null;
|
|
1719
1721
|
/**
|
|
1720
1722
|
* Gets the first value content of a property with the given label UUID.
|
|
1721
1723
|
*
|
|
@@ -1724,7 +1726,7 @@ declare function getPropertyValueByLabelUuid<T extends ReadonlyArray<string> = R
|
|
|
1724
1726
|
* @param options - Search options, including whether to include nested properties
|
|
1725
1727
|
* @returns The first property value content, or null if property not found
|
|
1726
1728
|
*/
|
|
1727
|
-
declare function getPropertyValueContentByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<
|
|
1729
|
+
declare function getPropertyValueContentByLabelUuid<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SearchableProperty<T>>, labelUuid: string, options?: PropertyOptions): PropertyContent<T> | null;
|
|
1728
1730
|
/**
|
|
1729
1731
|
* Finds a property by its label name in an array of properties.
|
|
1730
1732
|
*
|
|
@@ -1734,6 +1736,7 @@ declare function getPropertyValueContentByLabelUuid<T extends ReadonlyArray<stri
|
|
|
1734
1736
|
* @returns The matching Property object, or null if not found
|
|
1735
1737
|
*/
|
|
1736
1738
|
declare function getPropertyByLabelName<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<Property<T>>, labelName: string, options?: PropertyOptions): Property<T> | null;
|
|
1739
|
+
declare function getPropertyByLabelName<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SingleHierarchyProperty<T>>, labelName: string, options?: PropertyOptions): SingleHierarchyProperty<T> | null;
|
|
1737
1740
|
/**
|
|
1738
1741
|
* Finds a property by its label name and all values.
|
|
1739
1742
|
*
|
|
@@ -1744,6 +1747,7 @@ declare function getPropertyByLabelName<T extends ReadonlyArray<string> = Readon
|
|
|
1744
1747
|
* @returns The matching Property object, or null if not found or all values do not match
|
|
1745
1748
|
*/
|
|
1746
1749
|
declare function getPropertyByLabelNameAndValues<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<Property<T>>, labelName: string, values: ReadonlyArray<PropertyValueContent<T>>, options?: PropertyOptions): Property<T> | null;
|
|
1750
|
+
declare function getPropertyByLabelNameAndValues<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SingleHierarchyProperty<T>>, labelName: string, values: ReadonlyArray<PropertyValueContent<T>>, options?: PropertyOptions): SingleHierarchyProperty<T> | null;
|
|
1747
1751
|
/**
|
|
1748
1752
|
* Finds a property by its label name and all value contents.
|
|
1749
1753
|
*
|
|
@@ -1754,6 +1758,7 @@ declare function getPropertyByLabelNameAndValues<T extends ReadonlyArray<string>
|
|
|
1754
1758
|
* @returns The matching Property object, or null if not found or all value contents do not match
|
|
1755
1759
|
*/
|
|
1756
1760
|
declare function getPropertyByLabelNameAndValueContents<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<Property<T>>, labelName: string, valueContents: ReadonlyArray<PropertyContent<T>>, options?: PropertyOptions): Property<T> | null;
|
|
1761
|
+
declare function getPropertyByLabelNameAndValueContents<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SingleHierarchyProperty<T>>, labelName: string, valueContents: ReadonlyArray<PropertyContent<T>>, options?: PropertyOptions): SingleHierarchyProperty<T> | null;
|
|
1757
1762
|
/**
|
|
1758
1763
|
* Finds a property by its label name and one value.
|
|
1759
1764
|
*
|
|
@@ -1764,6 +1769,7 @@ declare function getPropertyByLabelNameAndValueContents<T extends ReadonlyArray<
|
|
|
1764
1769
|
* @returns The matching Property object, or null if not found or value does not match
|
|
1765
1770
|
*/
|
|
1766
1771
|
declare function getPropertyByLabelNameAndValue<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<Property<T>>, labelName: string, value: PropertyValueContent<T>, options?: PropertyOptions): Property<T> | null;
|
|
1772
|
+
declare function getPropertyByLabelNameAndValue<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SingleHierarchyProperty<T>>, labelName: string, value: PropertyValueContent<T>, options?: PropertyOptions): SingleHierarchyProperty<T> | null;
|
|
1767
1773
|
/**
|
|
1768
1774
|
* Finds a property by its label name and one value content.
|
|
1769
1775
|
*
|
|
@@ -1774,6 +1780,7 @@ declare function getPropertyByLabelNameAndValue<T extends ReadonlyArray<string>
|
|
|
1774
1780
|
* @returns The matching Property object, or null if not found or value content does not match
|
|
1775
1781
|
*/
|
|
1776
1782
|
declare function getPropertyByLabelNameAndValueContent<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<Property<T>>, labelName: string, valueContent: PropertyContent<T>, options?: PropertyOptions): Property<T> | null;
|
|
1783
|
+
declare function getPropertyByLabelNameAndValueContent<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SingleHierarchyProperty<T>>, labelName: string, valueContent: PropertyContent<T>, options?: PropertyOptions): SingleHierarchyProperty<T> | null;
|
|
1777
1784
|
/**
|
|
1778
1785
|
* Retrieves all values for a property with the given label name.
|
|
1779
1786
|
*
|
|
@@ -1782,7 +1789,7 @@ declare function getPropertyByLabelNameAndValueContent<T extends ReadonlyArray<s
|
|
|
1782
1789
|
* @param options - Search options, including whether to include nested properties
|
|
1783
1790
|
* @returns Array of property values, or null if property not found
|
|
1784
1791
|
*/
|
|
1785
|
-
declare function getPropertyValuesByLabelName<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<
|
|
1792
|
+
declare function getPropertyValuesByLabelName<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SearchableProperty<T>>, labelName: string, options?: PropertyOptions): Array<PropertyValueContent<T>> | null;
|
|
1786
1793
|
/**
|
|
1787
1794
|
* Gets the first value of a property with the given label name.
|
|
1788
1795
|
*
|
|
@@ -1791,7 +1798,7 @@ declare function getPropertyValuesByLabelName<T extends ReadonlyArray<string> =
|
|
|
1791
1798
|
* @param options - Search options, including whether to include nested properties
|
|
1792
1799
|
* @returns The first property value, or null if property not found
|
|
1793
1800
|
*/
|
|
1794
|
-
declare function getPropertyValueByLabelName<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<
|
|
1801
|
+
declare function getPropertyValueByLabelName<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SearchableProperty<T>>, labelName: string, options?: PropertyOptions): PropertyValueContent<T> | null;
|
|
1795
1802
|
/**
|
|
1796
1803
|
* Gets the first value content of a property with the given label name.
|
|
1797
1804
|
*
|
|
@@ -1800,7 +1807,7 @@ declare function getPropertyValueByLabelName<T extends ReadonlyArray<string> = R
|
|
|
1800
1807
|
* @param options - Search options, including whether to include nested properties
|
|
1801
1808
|
* @returns The first property value content, or null if property not found
|
|
1802
1809
|
*/
|
|
1803
|
-
declare function getPropertyValueContentByLabelName<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<
|
|
1810
|
+
declare function getPropertyValueContentByLabelName<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SearchableProperty<T>>, labelName: string, options?: PropertyOptions): PropertyContent<T> | null;
|
|
1804
1811
|
/**
|
|
1805
1812
|
* Gets all unique properties from an array of properties.
|
|
1806
1813
|
*
|
|
@@ -1809,6 +1816,7 @@ declare function getPropertyValueContentByLabelName<T extends ReadonlyArray<stri
|
|
|
1809
1816
|
* @returns Array of unique properties
|
|
1810
1817
|
*/
|
|
1811
1818
|
declare function getUniqueProperties<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<Property<T>>, options?: PropertyOptions): Array<Property<T>>;
|
|
1819
|
+
declare function getUniqueProperties<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SingleHierarchyProperty<T>>, options?: PropertyOptions): Array<SingleHierarchyProperty<T>>;
|
|
1812
1820
|
/**
|
|
1813
1821
|
* Gets all unique property label names from an array of properties.
|
|
1814
1822
|
*
|
|
@@ -1816,7 +1824,7 @@ declare function getUniqueProperties<T extends ReadonlyArray<string> = ReadonlyA
|
|
|
1816
1824
|
* @param options - Search options, including whether to include nested properties
|
|
1817
1825
|
* @returns Array of unique property label names
|
|
1818
1826
|
*/
|
|
1819
|
-
declare function getUniquePropertyLabelNames<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<
|
|
1827
|
+
declare function getUniquePropertyLabelNames<T extends ReadonlyArray<string> = ReadonlyArray<string>>(properties: ReadonlyArray<SearchableProperty<T>>, options?: PropertyOptions): Array<string>;
|
|
1820
1828
|
/**
|
|
1821
1829
|
* Get the leaf property values from an array of property values.
|
|
1822
1830
|
*
|
|
@@ -1834,7 +1842,7 @@ declare function getLeafPropertyValues<T extends ReadonlyArray<string> = Readonl
|
|
|
1834
1842
|
* @param options - Search options, including whether to include nested properties
|
|
1835
1843
|
* @returns True if the property matches the filter criteria, false otherwise
|
|
1836
1844
|
*/
|
|
1837
|
-
declare function filterProperties<T extends ReadonlyArray<string> = ReadonlyArray<string>>(property:
|
|
1845
|
+
declare function filterProperties<T extends ReadonlyArray<string> = ReadonlyArray<string>>(property: SearchableProperty<T>, filter: {
|
|
1838
1846
|
labelName: string;
|
|
1839
1847
|
value: PropertyValueContent<T>;
|
|
1840
1848
|
}, options?: PropertyOptions): boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -5201,6 +5201,7 @@ function searchPropertyResult(properties, options, findDirectResult, transformNe
|
|
|
5201
5201
|
const directResult = findDirectResult(properties);
|
|
5202
5202
|
if (directResult !== null) return directResult;
|
|
5203
5203
|
if (options.includeNestedProperties) for (const property of properties) {
|
|
5204
|
+
if (!("properties" in property)) continue;
|
|
5204
5205
|
const nestedResult = searchPropertyResult(property.properties, options, findDirectResult, transformNestedResult);
|
|
5205
5206
|
if (nestedResult !== null) {
|
|
5206
5207
|
const transformedResult = transformNestedResult != null ? transformNestedResult(nestedResult) : nestedResult;
|
|
@@ -5263,17 +5264,9 @@ function getFirstPropertyValueContentResult(values, limitToLeafPropertyValues) {
|
|
|
5263
5264
|
function visitProperties(properties, includeNestedProperties, visit) {
|
|
5264
5265
|
for (const property of properties) {
|
|
5265
5266
|
visit(property);
|
|
5266
|
-
if (includeNestedProperties) visitProperties(property.properties, includeNestedProperties, visit);
|
|
5267
|
+
if (includeNestedProperties && "properties" in property) visitProperties(property.properties, includeNestedProperties, visit);
|
|
5267
5268
|
}
|
|
5268
5269
|
}
|
|
5269
|
-
/**
|
|
5270
|
-
* Finds a property by its label UUID in an array of properties.
|
|
5271
|
-
*
|
|
5272
|
-
* @param properties - Array of properties to search through
|
|
5273
|
-
* @param labelUuid - The property label UUID to search for
|
|
5274
|
-
* @param options - Search options, including whether to include nested properties
|
|
5275
|
-
* @returns The matching Property object, or null if not found
|
|
5276
|
-
*/
|
|
5277
5270
|
function getPropertyByLabelUuid(properties, labelUuid, options = DEFAULT_OPTIONS) {
|
|
5278
5271
|
const { includeNestedProperties } = withDefaultOptions(options);
|
|
5279
5272
|
return searchPropertyResult(properties, { includeNestedProperties }, (currentProperties) => findPropertyByLabelUuid(currentProperties, labelUuid));
|
|
@@ -5350,27 +5343,10 @@ function getPropertyValueContentByLabelUuid(properties, labelUuid, options = DEF
|
|
|
5350
5343
|
return getFirstPropertyValueContentResult(values, limitToLeafPropertyValues);
|
|
5351
5344
|
});
|
|
5352
5345
|
}
|
|
5353
|
-
/**
|
|
5354
|
-
* Finds a property by its label name in an array of properties.
|
|
5355
|
-
*
|
|
5356
|
-
* @param properties - Array of properties to search through
|
|
5357
|
-
* @param labelName - The property label name to search for
|
|
5358
|
-
* @param options - Search options, including whether to include nested properties
|
|
5359
|
-
* @returns The matching Property object, or null if not found
|
|
5360
|
-
*/
|
|
5361
5346
|
function getPropertyByLabelName(properties, labelName, options = DEFAULT_OPTIONS) {
|
|
5362
5347
|
const { includeNestedProperties } = withDefaultOptions(options);
|
|
5363
5348
|
return searchPropertyResult(properties, { includeNestedProperties }, (currentProperties) => findPropertyByLabelName(currentProperties, labelName));
|
|
5364
5349
|
}
|
|
5365
|
-
/**
|
|
5366
|
-
* Finds a property by its label name and all values.
|
|
5367
|
-
*
|
|
5368
|
-
* @param properties - Array of properties to search through
|
|
5369
|
-
* @param labelName - The property label name to search for
|
|
5370
|
-
* @param values - The property values to search for
|
|
5371
|
-
* @param options - Search options, including whether to include nested properties
|
|
5372
|
-
* @returns The matching Property object, or null if not found or all values do not match
|
|
5373
|
-
*/
|
|
5374
5350
|
function getPropertyByLabelNameAndValues(properties, labelName, values, options = DEFAULT_OPTIONS) {
|
|
5375
5351
|
const { includeNestedProperties, limitToLeafPropertyValues } = withDefaultOptions(options);
|
|
5376
5352
|
return searchPropertyResult(properties, { includeNestedProperties }, (currentProperties) => {
|
|
@@ -5378,15 +5354,6 @@ function getPropertyByLabelNameAndValues(properties, labelName, values, options
|
|
|
5378
5354
|
return null;
|
|
5379
5355
|
}, (nestedResult) => getNormalizedProperty(nestedResult, limitToLeafPropertyValues));
|
|
5380
5356
|
}
|
|
5381
|
-
/**
|
|
5382
|
-
* Finds a property by its label name and all value contents.
|
|
5383
|
-
*
|
|
5384
|
-
* @param properties - Array of properties to search through
|
|
5385
|
-
* @param labelName - The property label name to search for
|
|
5386
|
-
* @param valueContents - The value contents to search for
|
|
5387
|
-
* @param options - Search options, including whether to include nested properties
|
|
5388
|
-
* @returns The matching Property object, or null if not found or all value contents do not match
|
|
5389
|
-
*/
|
|
5390
5357
|
function getPropertyByLabelNameAndValueContents(properties, labelName, valueContents, options = DEFAULT_OPTIONS) {
|
|
5391
5358
|
const { includeNestedProperties, limitToLeafPropertyValues } = withDefaultOptions(options);
|
|
5392
5359
|
return searchPropertyResult(properties, { includeNestedProperties }, (currentProperties) => {
|
|
@@ -5394,15 +5361,6 @@ function getPropertyByLabelNameAndValueContents(properties, labelName, valueCont
|
|
|
5394
5361
|
return null;
|
|
5395
5362
|
}, (nestedResult) => getNormalizedProperty(nestedResult, limitToLeafPropertyValues));
|
|
5396
5363
|
}
|
|
5397
|
-
/**
|
|
5398
|
-
* Finds a property by its label name and one value.
|
|
5399
|
-
*
|
|
5400
|
-
* @param properties - Array of properties to search through
|
|
5401
|
-
* @param labelName - The property label name to search for
|
|
5402
|
-
* @param value - The property value to search for
|
|
5403
|
-
* @param options - Search options, including whether to include nested properties
|
|
5404
|
-
* @returns The matching Property object, or null if not found or value does not match
|
|
5405
|
-
*/
|
|
5406
5364
|
function getPropertyByLabelNameAndValue(properties, labelName, value, options = DEFAULT_OPTIONS) {
|
|
5407
5365
|
const { includeNestedProperties, limitToLeafPropertyValues } = withDefaultOptions(options);
|
|
5408
5366
|
return searchPropertyResult(properties, { includeNestedProperties }, (currentProperties) => {
|
|
@@ -5410,15 +5368,6 @@ function getPropertyByLabelNameAndValue(properties, labelName, value, options =
|
|
|
5410
5368
|
return null;
|
|
5411
5369
|
}, (nestedResult) => getNormalizedProperty(nestedResult, limitToLeafPropertyValues));
|
|
5412
5370
|
}
|
|
5413
|
-
/**
|
|
5414
|
-
* Finds a property by its label name and one value content.
|
|
5415
|
-
*
|
|
5416
|
-
* @param properties - Array of properties to search through
|
|
5417
|
-
* @param labelName - The property label name to search for
|
|
5418
|
-
* @param valueContent - The value content to search for
|
|
5419
|
-
* @param options - Search options, including whether to include nested properties
|
|
5420
|
-
* @returns The matching Property object, or null if not found or value content does not match
|
|
5421
|
-
*/
|
|
5422
5371
|
function getPropertyByLabelNameAndValueContent(properties, labelName, valueContent, options = DEFAULT_OPTIONS) {
|
|
5423
5372
|
const { includeNestedProperties, limitToLeafPropertyValues } = withDefaultOptions(options);
|
|
5424
5373
|
return searchPropertyResult(properties, { includeNestedProperties }, (currentProperties) => {
|
|
@@ -5480,13 +5429,6 @@ function getPropertyValueContentByLabelName(properties, labelName, options = DEF
|
|
|
5480
5429
|
return getFirstPropertyValueContentResult(values, limitToLeafPropertyValues);
|
|
5481
5430
|
});
|
|
5482
5431
|
}
|
|
5483
|
-
/**
|
|
5484
|
-
* Gets all unique properties from an array of properties.
|
|
5485
|
-
*
|
|
5486
|
-
* @param properties - Array of properties to get unique properties from
|
|
5487
|
-
* @param options - Search options, including whether to include nested properties
|
|
5488
|
-
* @returns Array of unique properties
|
|
5489
|
-
*/
|
|
5490
5432
|
function getUniqueProperties(properties, options = DEFAULT_OPTIONS) {
|
|
5491
5433
|
const { includeNestedProperties, limitToLeafPropertyValues } = withDefaultOptions(options);
|
|
5492
5434
|
const uniqueProperties = [];
|
|
@@ -5549,7 +5491,7 @@ function filterProperties(property, filter, options = DEFAULT_OPTIONS) {
|
|
|
5549
5491
|
const values = getPropertyValuesResult(property.values, limitToLeafPropertyValues, false);
|
|
5550
5492
|
for (const value of values) if (contentMatchesFilter(value.content, filter.value.content)) return true;
|
|
5551
5493
|
}
|
|
5552
|
-
if (includeNestedProperties) {
|
|
5494
|
+
if (includeNestedProperties && "properties" in property) {
|
|
5553
5495
|
for (const nestedProperty of property.properties) if (filterProperties(nestedProperty, filter, {
|
|
5554
5496
|
includeNestedProperties: true,
|
|
5555
5497
|
limitToLeafPropertyValues
|
package/package.json
CHANGED