deesse 0.0.8 → 0.0.10

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.
@@ -0,0 +1 @@
1
+ export declare const buildConfig: () => void;
@@ -0,0 +1 @@
1
+ export const buildConfig = () => { };
@@ -0,0 +1,2 @@
1
+ import type { NextConfig } from 'next';
2
+ export declare const withDeesse: (nextConfig: NextConfig) => NextConfig;
@@ -0,0 +1,3 @@
1
+ export const withDeesse = (nextConfig) => {
2
+ return nextConfig;
3
+ };
@@ -0,0 +1 @@
1
+ export type Config = {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type Context = {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import zod from 'zod';
2
+ import type { Context } from './context';
3
+ export declare function query<T extends zod.ZodType>({ args, handler }: {
4
+ args: T;
5
+ handler: (ctx: Context, validatedArgs: zod.infer<T>) => Promise<unknown>;
6
+ }): Promise<unknown>;
7
+ export declare function mutation<T extends zod.ZodType>({ args, handler }: {
8
+ args: T;
9
+ handler: (ctx: Context, validatedArgs: zod.infer<T>) => Promise<unknown>;
10
+ }): Promise<unknown>;
@@ -0,0 +1,18 @@
1
+ export function query({ args, handler }) {
2
+ try {
3
+ const validatedArgs = args.parse({});
4
+ return handler({}, validatedArgs);
5
+ }
6
+ catch (error) {
7
+ throw error;
8
+ }
9
+ }
10
+ export function mutation({ args, handler }) {
11
+ try {
12
+ const validatedArgs = args.parse({});
13
+ return handler({}, validatedArgs);
14
+ }
15
+ catch (error) {
16
+ throw error;
17
+ }
18
+ }
@@ -0,0 +1 @@
1
+ export * from './functions';
@@ -0,0 +1 @@
1
+ export * from './functions';
package/dist/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './types';
2
+ export * from './db';
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export * from './types';
2
+ export * from './db';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deesse",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -22,5 +22,8 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "typescript": "^5.x.x"
25
+ },
26
+ "dependencies": {
27
+ "zod": "^3.25.76"
25
28
  }
26
29
  }