@strapi/utils 5.0.0-rc.8 → 5.0.0-rc.9
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.js
CHANGED
|
@@ -544,16 +544,6 @@ const providerFactory = (options = {}) => {
|
|
|
544
544
|
get(key) {
|
|
545
545
|
return state.registry.get(key);
|
|
546
546
|
},
|
|
547
|
-
getWhere(filters2 = {}) {
|
|
548
|
-
const items = this.values();
|
|
549
|
-
const filtersEntries = Object.entries(filters2);
|
|
550
|
-
if (filtersEntries.length === 0) {
|
|
551
|
-
return items;
|
|
552
|
-
}
|
|
553
|
-
return items.filter((item) => {
|
|
554
|
-
return filtersEntries.every(([key, value]) => item[key] === value);
|
|
555
|
-
});
|
|
556
|
-
},
|
|
557
547
|
values() {
|
|
558
548
|
return Array.from(state.registry.values());
|
|
559
549
|
},
|