@tripsam/onboarding 1.0.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.
package/dist/index.cjs ADDED
@@ -0,0 +1,44 @@
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
+ VerifyEmail: () => verify_email_exports
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/verify-email.ts
28
+ var verify_email_exports = {};
29
+ __export(verify_email_exports, {
30
+ checkMe: () => checkMe,
31
+ login: () => login
32
+ });
33
+ var import_zod = require("zod");
34
+ var checkMe = import_zod.z.object({
35
+ email: import_zod.z.email("invalid").nonempty("required").trim().toLowerCase()
36
+ });
37
+ var login = import_zod.z.object({
38
+ username: import_zod.z.string().min(1, { message: "required" }).trim().toLowerCase(),
39
+ password: import_zod.z.string().min(1, { message: "required" })
40
+ });
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ VerifyEmail
44
+ });
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const checkMe: z.ZodObject<{
4
+ email: z.ZodEmail;
5
+ }, z.core.$strip>;
6
+ type SafeCheckMe = z.output<typeof checkMe>;
7
+ declare const login: z.ZodObject<{
8
+ username: z.ZodString;
9
+ password: z.ZodString;
10
+ }, z.core.$strip>;
11
+ type SafeLogin = z.output<typeof login>;
12
+
13
+ type verifyEmail_SafeCheckMe = SafeCheckMe;
14
+ type verifyEmail_SafeLogin = SafeLogin;
15
+ declare const verifyEmail_checkMe: typeof checkMe;
16
+ declare const verifyEmail_login: typeof login;
17
+ declare namespace verifyEmail {
18
+ export { type verifyEmail_SafeCheckMe as SafeCheckMe, type verifyEmail_SafeLogin as SafeLogin, verifyEmail_checkMe as checkMe, verifyEmail_login as login };
19
+ }
20
+
21
+ export { verifyEmail as VerifyEmail };
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const checkMe: z.ZodObject<{
4
+ email: z.ZodEmail;
5
+ }, z.core.$strip>;
6
+ type SafeCheckMe = z.output<typeof checkMe>;
7
+ declare const login: z.ZodObject<{
8
+ username: z.ZodString;
9
+ password: z.ZodString;
10
+ }, z.core.$strip>;
11
+ type SafeLogin = z.output<typeof login>;
12
+
13
+ type verifyEmail_SafeCheckMe = SafeCheckMe;
14
+ type verifyEmail_SafeLogin = SafeLogin;
15
+ declare const verifyEmail_checkMe: typeof checkMe;
16
+ declare const verifyEmail_login: typeof login;
17
+ declare namespace verifyEmail {
18
+ export { type verifyEmail_SafeCheckMe as SafeCheckMe, type verifyEmail_SafeLogin as SafeLogin, verifyEmail_checkMe as checkMe, verifyEmail_login as login };
19
+ }
20
+
21
+ export { verifyEmail as VerifyEmail };
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ // src/verify-email.ts
8
+ var verify_email_exports = {};
9
+ __export(verify_email_exports, {
10
+ checkMe: () => checkMe,
11
+ login: () => login
12
+ });
13
+ import { z } from "zod";
14
+ var checkMe = z.object({
15
+ email: z.email("invalid").nonempty("required").trim().toLowerCase()
16
+ });
17
+ var login = z.object({
18
+ username: z.string().min(1, { message: "required" }).trim().toLowerCase(),
19
+ password: z.string().min(1, { message: "required" })
20
+ });
21
+ export {
22
+ verify_email_exports as VerifyEmail
23
+ };
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@tripsam/onboarding",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.cjs"
13
+ }
14
+ },
15
+ "files": ["dist/"],
16
+ "scripts": {
17
+ "build": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --clean --splitting false",
18
+ "clean": "rimraf dist",
19
+ "prepublishOnly": "npm run clean && npm run build"
20
+ },
21
+ "peerDependencies": {
22
+ "zod": "^4.0.0"
23
+ },
24
+ "devDependencies": {
25
+ "tsup": "^8.0.0",
26
+ "typescript": "^5.5.4",
27
+ "rimraf": "^5.0.0",
28
+ "zod": "^4.1.11"
29
+ },
30
+ "publishConfig": { "access": "public" }
31
+ }