@objectstack/objectql 3.2.6 → 3.2.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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +8 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/protocol.ts +27 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/objectql@3.2.
|
|
2
|
+
> @objectstack/objectql@3.2.7 build /home/runner/work/spec/spec/packages/objectql
|
|
3
3
|
> tsup --config ../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
17
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m94.28 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m193.23 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 197ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.js [22m[32m96.02 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m194.53 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 197ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 12511ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m77.36 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m77.36 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -788,6 +788,40 @@ var ObjectStackProtocolImplementation = class {
|
|
|
788
788
|
if (options[key] === "true") options[key] = true;
|
|
789
789
|
else if (options[key] === "false") options[key] = false;
|
|
790
790
|
}
|
|
791
|
+
const knownParams = /* @__PURE__ */ new Set([
|
|
792
|
+
"top",
|
|
793
|
+
"skip",
|
|
794
|
+
"limit",
|
|
795
|
+
"offset",
|
|
796
|
+
"sort",
|
|
797
|
+
"orderBy",
|
|
798
|
+
"select",
|
|
799
|
+
"fields",
|
|
800
|
+
"filter",
|
|
801
|
+
"filters",
|
|
802
|
+
"$filter",
|
|
803
|
+
"populate",
|
|
804
|
+
"expand",
|
|
805
|
+
"$expand",
|
|
806
|
+
"distinct",
|
|
807
|
+
"count",
|
|
808
|
+
"aggregations",
|
|
809
|
+
"groupBy",
|
|
810
|
+
"search",
|
|
811
|
+
"context"
|
|
812
|
+
]);
|
|
813
|
+
if (!options.filter) {
|
|
814
|
+
const implicitFilters = {};
|
|
815
|
+
for (const key of Object.keys(options)) {
|
|
816
|
+
if (!knownParams.has(key)) {
|
|
817
|
+
implicitFilters[key] = options[key];
|
|
818
|
+
delete options[key];
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
if (Object.keys(implicitFilters).length > 0) {
|
|
822
|
+
options.filter = implicitFilters;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
791
825
|
const records = await this.engine.find(request.object, options);
|
|
792
826
|
return {
|
|
793
827
|
object: request.object,
|