@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @objectstack/runtime@3.2.1 build /home/runner/work/spec/spec/packages/runtime
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
  CLI Building entry: src/index.ts
@@ -10,13 +10,13 @@
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
12
  CJS Build start
13
- ESM dist/index.js 60.56 KB
14
- ESM dist/index.js.map 133.94 KB
15
- ESM ⚡️ Build success in 138ms
16
- CJS dist/index.cjs 62.50 KB
17
- CJS dist/index.cjs.map 134.00 KB
18
- CJS ⚡️ Build success in 145ms
13
+ ESM dist/index.js 60.47 KB
14
+ ESM dist/index.js.map 133.78 KB
15
+ ESM ⚡️ Build success in 148ms
16
+ CJS dist/index.cjs 62.41 KB
17
+ CJS dist/index.cjs.map 133.84 KB
18
+ CJS ⚡️ Build success in 174ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 7219ms
20
+ DTS ⚡️ Build success in 7626ms
21
21
  DTS dist/index.d.ts 21.77 KB
22
22
  DTS dist/index.d.cts 21.77 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @objectstack/runtime
2
2
 
3
+ ## 3.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [46defbb]
8
+ - @objectstack/spec@3.2.2
9
+ - @objectstack/core@3.2.2
10
+ - @objectstack/rest@3.2.2
11
+ - @objectstack/types@3.2.2
12
+
3
13
  ## 3.2.1
4
14
 
5
15
  ### Patch Changes
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, context) {
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, { request: context.request });
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.getMetadata({ request: context.request });
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, { request: context.request });
618
+ const result = await analyticsService.generateSql(body);
619
619
  return { handled: true, response: this.success(result) };
620
620
  }
621
621
  return { handled: false };