deesse 0.0.17 → 0.0.21

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,12 @@
1
+ type AdminConfig = {
2
+ defaultLanguage?: string;
3
+ };
4
+ type AuthConfig = {};
5
+ type Config = {
6
+ admin: AdminConfig;
7
+ auth: AuthConfig;
8
+ };
9
+
10
+ declare const buildConfig: (config: Config) => Config;
11
+
12
+ export { buildConfig };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,12 @@
1
- export * from './types';
2
- export * from './db';
3
- export * from './config';
1
+ type AdminConfig = {
2
+ defaultLanguage?: string;
3
+ };
4
+ type AuthConfig = {};
5
+ type Config = {
6
+ admin: AdminConfig;
7
+ auth: AuthConfig;
8
+ };
9
+
10
+ declare const buildConfig: (config: Config) => Config;
11
+
12
+ export { buildConfig };
package/dist/index.js CHANGED
@@ -1,3 +1,35 @@
1
- export * from './types';
2
- export * from './db';
3
- export * from './config';
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ buildConfig: () => buildConfig
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/config/build.ts
28
+ var buildConfig = (config) => {
29
+ return config;
30
+ };
31
+ // Annotate the CommonJS export names for ESM import in node:
32
+ 0 && (module.exports = {
33
+ buildConfig
34
+ });
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/config/build.ts"],"sourcesContent":["export * from './config';\r\n","import { Config } from \"./types\";\n\n\nexport const buildConfig = (config: Config): Config => {\n return config;\n};\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACGO,IAAM,cAAc,CAAC,WAA2B;AACrD,SAAO;AACT;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ // src/config/build.ts
2
+ var buildConfig = (config) => {
3
+ return config;
4
+ };
5
+ export {
6
+ buildConfig
7
+ };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/config/build.ts"],"sourcesContent":["import { Config } from \"./types\";\n\n\nexport const buildConfig = (config: Config): Config => {\n return config;\n};\n\n"],"mappings":";AAGO,IAAM,cAAc,CAAC,WAA2B;AACrD,SAAO;AACT;","names":[]}
package/package.json CHANGED
@@ -1,50 +1,21 @@
1
1
  {
2
2
  "name": "deesse",
3
- "version": "0.0.17",
4
- "type": "module",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
3
+ "version": "0.0.21",
4
+ "description": "The fullstack nextjs framework",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
7
8
  "files": [
8
9
  "dist"
9
10
  ],
10
11
  "scripts": {
11
- "build": "tsc"
12
- },
13
- "exports": {
14
- ".": {
15
- "import": "./dist/index.js",
16
- "types": "./dist/index.d.ts"
17
- },
18
- "./types": {
19
- "import": "./dist/types/index.js",
20
- "types": "./dist/types/index.d.ts"
21
- },
22
- "./config": {
23
- "import": "./dist/config/index.js",
24
- "types": "./dist/config/index.d.ts"
25
- },
26
- "./cms": {
27
- "import": "./dist/cms/index.js",
28
- "types": "./dist/cms/index.d.ts"
29
- },
30
- "./cms/payload": {
31
- "import": "./dist/cms/payload/index.js",
32
- "types": "./dist/cms/payload/index.d.ts"
33
- },
34
- "./cms/payloadcms": {
35
- "import": "./dist/cms/payloadcms/index.js",
36
- "types": "./dist/cms/payloadcms/index.d.ts"
37
- }
38
- },
39
- "devDependencies": {
40
- "typescript": "^5.x.x"
12
+ "build": "tsup",
13
+ "test": "echo \"Error: no test specified\" && exit 1"
41
14
  },
15
+ "author": "",
16
+ "license": "ISC",
42
17
  "dependencies": {
43
- "@payloadcms/next": "^3.60.0",
44
- "@payloadcms/richtext-lexical": "^3.60.0",
45
- "graphql": "^16.11.0",
46
- "payload": "^3.60.0",
47
- "sharp": "^0.34.4",
48
- "zod": "^4.x.x"
18
+ "tsup": "^8.5.0",
19
+ "typescript": "^5.9.3"
49
20
  }
50
21
  }
@@ -1 +0,0 @@
1
- export * from 'payload';
@@ -1 +0,0 @@
1
- export * from 'payload';
@@ -1,2 +0,0 @@
1
- export * from '@payloadcms/next';
2
- export * from '@payloadcms/richtext-lexical';
@@ -1,2 +0,0 @@
1
- export * from '@payloadcms/next';
2
- export * from '@payloadcms/richtext-lexical';
@@ -1,2 +0,0 @@
1
- import { Config } from "./types";
2
- export declare const buildConfig: (config: Config) => Promise<import("payload").SanitizedConfig>;
@@ -1,4 +0,0 @@
1
- import { buildConfig as buildPayloadConfig } from 'payload';
2
- export const buildConfig = (config) => {
3
- return buildPayloadConfig(config.payload);
4
- };
@@ -1 +0,0 @@
1
- export * from './build-config';
@@ -1 +0,0 @@
1
- export * from './build-config';
@@ -1,2 +0,0 @@
1
- import type { NextConfig } from 'next';
2
- export declare const withDeesse: (nextConfig: NextConfig) => NextConfig;
@@ -1,4 +0,0 @@
1
- import { withPayload } from '@payloadcms/next';
2
- export const withDeesse = (nextConfig) => {
3
- return withPayload(nextConfig);
4
- };
@@ -1,4 +0,0 @@
1
- import { Config as PayloadConfig } from "payload";
2
- export type Config = {
3
- payload: PayloadConfig;
4
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export type Context = {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
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>;
@@ -1,18 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export * from './functions';
package/dist/db/index.js DELETED
@@ -1 +0,0 @@
1
- export * from './functions';
@@ -1,3 +0,0 @@
1
- import { Resend } from "resend";
2
- declare const resend: Resend;
3
- export { resend };
@@ -1,3 +0,0 @@
1
- import { Resend } from "resend";
2
- const resend = new Resend(process.env.RESEND_API_KEY);
3
- export { resend };
@@ -1 +0,0 @@
1
- export * from "resend";
@@ -1 +0,0 @@
1
- export * from "resend";
@@ -1,2 +0,0 @@
1
- export * from './result';
2
- export * from './maybe';
@@ -1,2 +0,0 @@
1
- export * from './result';
2
- export * from './maybe';
@@ -1,14 +0,0 @@
1
- /**
2
- * Maybe type implementation
3
- * Represents a value that might be present (Some) or absent (None)
4
- */
5
- export type Maybe<T> = Some<T> | None;
6
- export type Some<T> = {
7
- readonly _tag: 'Some';
8
- readonly value: T;
9
- };
10
- export type None = {
11
- readonly _tag: 'None';
12
- };
13
- export declare const some: <T>(value: T) => Some<T>;
14
- export declare const none: () => None;
@@ -1,11 +0,0 @@
1
- /**
2
- * Maybe type implementation
3
- * Represents a value that might be present (Some) or absent (None)
4
- */
5
- export const some = (value) => ({
6
- _tag: 'Some',
7
- value
8
- });
9
- export const none = () => ({
10
- _tag: 'None'
11
- });
@@ -1,15 +0,0 @@
1
- /**
2
- * Result type implementation
3
- * Represents a value that can be successful (Ok) or contain an error (Err)
4
- */
5
- export type Result<T, E = Error> = Ok<T, E> | Err<T, E>;
6
- export type Ok<T, E> = {
7
- readonly _tag: 'Ok';
8
- readonly value: T;
9
- };
10
- export type Err<T, E> = {
11
- readonly _tag: 'Err';
12
- readonly error: E;
13
- };
14
- export declare const ok: <T, E = Error>(value: T) => Ok<T, E>;
15
- export declare const err: <T, E = Error>(error: E) => Err<T, E>;
@@ -1,12 +0,0 @@
1
- /**
2
- * Result type implementation
3
- * Represents a value that can be successful (Ok) or contain an error (Err)
4
- */
5
- export const ok = (value) => ({
6
- _tag: 'Ok',
7
- value
8
- });
9
- export const err = (error) => ({
10
- _tag: 'Err',
11
- error
12
- });