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.
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -3
- package/dist/index.js +35 -3
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +11 -40
- package/dist/cms/payload/index.d.ts +0 -1
- package/dist/cms/payload/index.js +0 -1
- package/dist/cms/payloadcms/index.d.ts +0 -2
- package/dist/cms/payloadcms/index.js +0 -2
- package/dist/config/build-config.d.ts +0 -2
- package/dist/config/build-config.js +0 -4
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -1
- package/dist/config/next-config.d.ts +0 -2
- package/dist/config/next-config.js +0 -4
- package/dist/config/types.d.ts +0 -4
- package/dist/config/types.js +0 -1
- package/dist/db/context.d.ts +0 -1
- package/dist/db/context.js +0 -1
- package/dist/db/functions.d.ts +0 -10
- package/dist/db/functions.js +0 -18
- package/dist/db/index.d.ts +0 -1
- package/dist/db/index.js +0 -1
- package/dist/emails/index.d.ts +0 -3
- package/dist/emails/index.js +0 -3
- package/dist/emails/resend/index.d.ts +0 -1
- package/dist/emails/resend/index.js +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.js +0 -2
- package/dist/types/maybe.d.ts +0 -14
- package/dist/types/maybe.js +0 -11
- package/dist/types/result.d.ts +0 -15
- package/dist/types/result.js +0 -12
package/dist/index.d.mts
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 @@
|
|
|
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.
|
|
4
|
-
"
|
|
5
|
-
"main": "
|
|
6
|
-
"
|
|
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": "
|
|
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
|
-
"
|
|
44
|
-
"
|
|
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';
|
package/dist/config/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './build-config';
|
package/dist/config/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './build-config';
|
package/dist/config/types.d.ts
DELETED
package/dist/config/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/db/context.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Context = {};
|
package/dist/db/context.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/db/functions.d.ts
DELETED
|
@@ -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>;
|
package/dist/db/functions.js
DELETED
|
@@ -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
|
-
}
|
package/dist/db/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './functions';
|
package/dist/db/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './functions';
|
package/dist/emails/index.d.ts
DELETED
package/dist/emails/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "resend";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "resend";
|
package/dist/types/index.d.ts
DELETED
package/dist/types/index.js
DELETED
package/dist/types/maybe.d.ts
DELETED
|
@@ -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;
|
package/dist/types/maybe.js
DELETED
package/dist/types/result.d.ts
DELETED
|
@@ -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>;
|
package/dist/types/result.js
DELETED