@openspecui/server 3.5.1 → 3.6.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -3193,7 +3193,7 @@ const specRouter = router({
3193
3193
  return ctx.documentService.readSpec(input.id);
3194
3194
  }),
3195
3195
  getRaw: publicProcedure.input(z.object({ id: z.string() })).query(async ({ ctx, input }) => {
3196
- return ctx.adapter.readSpecRaw(input.id);
3196
+ return (await ctx.documentService.readSpecRaw(input.id, "view", "processed"))?.markdown ?? null;
3197
3197
  }),
3198
3198
  save: publicProcedure.input(z.object({
3199
3199
  id: z.string(),
@@ -3212,7 +3212,9 @@ const specRouter = router({
3212
3212
  return createReactiveSubscriptionWithInput((id) => ctx.documentService.readSpec(id))(input.id);
3213
3213
  }),
3214
3214
  subscribeRaw: publicProcedure.input(z.object({ id: z.string() })).subscription(({ ctx, input }) => {
3215
- return createReactiveSubscriptionWithInput((id) => ctx.adapter.readSpecRaw(id))(input.id);
3215
+ return createReactiveSubscriptionWithInput(async (id) => {
3216
+ return (await ctx.documentService.readSpecRaw(id, "view", "processed"))?.markdown ?? null;
3217
+ })(input.id);
3216
3218
  })
3217
3219
  });
3218
3220
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openspecui/server",
3
- "version": "3.5.1",
3
+ "version": "3.6.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.mjs",
6
6
  "exports": {