@strapi/utils 4.25.7 → 4.25.8
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.js +0 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -10
- package/dist/index.mjs.map +1 -1
- package/dist/provider-factory.d.ts +8 -9
- package/dist/provider-factory.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1043,16 +1043,6 @@ const providerFactory = (options = {}) => {
|
|
|
1043
1043
|
get(key2) {
|
|
1044
1044
|
return state.registry.get(key2);
|
|
1045
1045
|
},
|
|
1046
|
-
getWhere(filters2 = {}) {
|
|
1047
|
-
const items = this.values();
|
|
1048
|
-
const filtersEntries = Object.entries(filters2);
|
|
1049
|
-
if (filtersEntries.length === 0) {
|
|
1050
|
-
return items;
|
|
1051
|
-
}
|
|
1052
|
-
return items.filter((item) => {
|
|
1053
|
-
return filtersEntries.every(([key2, value2]) => item[key2] === value2);
|
|
1054
|
-
});
|
|
1055
|
-
},
|
|
1056
1046
|
values() {
|
|
1057
1047
|
return Array.from(state.registry.values());
|
|
1058
1048
|
},
|