@objectstack/runtime 3.2.1 → 3.2.2
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 +10 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/http-dispatcher.test.ts +3 -3
- package/src/http-dispatcher.ts +4 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/runtime@3.2.
|
|
2
|
+
> @objectstack/runtime@3.2.2 build /home/runner/work/spec/spec/packages/runtime
|
|
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.js [22m[32m60.
|
|
14
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m133.
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
16
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m62.
|
|
17
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[
|
|
18
|
-
[32mCJS[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m60.47 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m133.78 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 148ms
|
|
16
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m62.41 KB[39m
|
|
17
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m133.84 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 174ms
|
|
19
19
|
[34mDTS[39m Build start
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 7626ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m21.77 KB[39m
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m21.77 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -601,21 +601,21 @@ var HttpDispatcher = class {
|
|
|
601
601
|
* Handles Analytics requests
|
|
602
602
|
* path: sub-path after /analytics/
|
|
603
603
|
*/
|
|
604
|
-
async handleAnalytics(path, method, body,
|
|
604
|
+
async handleAnalytics(path, method, body, _context) {
|
|
605
605
|
const analyticsService = await this.getService(import_system.CoreServiceName.enum.analytics);
|
|
606
606
|
if (!analyticsService) return { handled: false };
|
|
607
607
|
const m = method.toUpperCase();
|
|
608
608
|
const subPath = path.replace(/^\/+/, "");
|
|
609
609
|
if (subPath === "query" && m === "POST") {
|
|
610
|
-
const result = await analyticsService.query(body
|
|
610
|
+
const result = await analyticsService.query(body);
|
|
611
611
|
return { handled: true, response: this.success(result) };
|
|
612
612
|
}
|
|
613
613
|
if (subPath === "meta" && m === "GET") {
|
|
614
|
-
const result = await analyticsService.
|
|
614
|
+
const result = await analyticsService.getMeta();
|
|
615
615
|
return { handled: true, response: this.success(result) };
|
|
616
616
|
}
|
|
617
617
|
if (subPath === "sql" && m === "POST") {
|
|
618
|
-
const result = await analyticsService.generateSql(body
|
|
618
|
+
const result = await analyticsService.generateSql(body);
|
|
619
619
|
return { handled: true, response: this.success(result) };
|
|
620
620
|
}
|
|
621
621
|
return { handled: false };
|