@strapi/utils 5.0.0-rc.0 → 5.0.0-rc.10
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 +6 -7
- package/dist/provider-factory.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -517,16 +517,6 @@ const providerFactory = (options = {}) => {
|
|
|
517
517
|
get(key) {
|
|
518
518
|
return state.registry.get(key);
|
|
519
519
|
},
|
|
520
|
-
getWhere(filters2 = {}) {
|
|
521
|
-
const items = this.values();
|
|
522
|
-
const filtersEntries = Object.entries(filters2);
|
|
523
|
-
if (filtersEntries.length === 0) {
|
|
524
|
-
return items;
|
|
525
|
-
}
|
|
526
|
-
return items.filter((item) => {
|
|
527
|
-
return filtersEntries.every(([key, value]) => item[key] === value);
|
|
528
|
-
});
|
|
529
|
-
},
|
|
530
520
|
values() {
|
|
531
521
|
return Array.from(state.registry.values());
|
|
532
522
|
},
|