interaqt 0.4.4 → 0.4.5

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 CHANGED
@@ -9045,10 +9045,15 @@ class Ae {
9045
9045
  async retrieveData(t) {
9046
9046
  let e;
9047
9047
  if (C.is(this.interaction.data) || P.is(this.interaction.data)) {
9048
- const r = this.interaction.data.name, { modifier: i, attributeQuery: s } = Object.fromEntries(
9049
- this.interaction.query?.items?.map((n) => [n.name, n.value]) || []
9050
- ), a = { ...t.query?.modifier || {}, ...i || {} }, o = t.query?.attributeQuery || [];
9051
- e = await this.system.storage.find(r, t.query?.match, a, o);
9048
+ const r = this.interaction.data.name, i = Object.fromEntries(
9049
+ this.interaction.query?.items?.map((d) => [d.name, d.value]) || []
9050
+ ), s = i.modifier;
9051
+ i.attributeQuery;
9052
+ let a = i.match, o;
9053
+ a && typeof a == "object" && "raw" in a ? o = a : a && (o = R.fromValue(a));
9054
+ const n = { ...t.query?.modifier || {}, ...s || {} }, c = t.query?.attributeQuery || [];
9055
+ let l = t.query?.match;
9056
+ o && l ? l = o.and(l) : o && (l = o), e = await this.system.storage.find(r, l, n, c);
9052
9057
  } else
9053
9058
  v(!1, `unknown data type ${this.interaction.data}`);
9054
9059
  return e;