abhi-medium-blog 1.0.6 → 1.0.7

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.ts CHANGED
@@ -1,4 +1,4 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  export declare const signupInput: z.ZodObject<{
3
3
  email: z.ZodString;
4
4
  password: z.ZodString;
package/dist/index.js CHANGED
@@ -1,25 +1,25 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.editBlogInput = exports.createBlogInput = exports.signinInput = exports.signupInput = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- exports.signupInput = zod_1.default.object({
9
- email: zod_1.default.string().email(),
10
- password: zod_1.default.string().min(6),
11
- name: zod_1.default.string().optional(),
4
+ const zod_1 = require("zod");
5
+ /* =========================
6
+ Runtime Zod Schemas
7
+ ========================= */
8
+ exports.signupInput = zod_1.z.object({
9
+ email: zod_1.z.string().email(),
10
+ password: zod_1.z.string().min(6),
11
+ name: zod_1.z.string().optional(),
12
12
  });
13
- exports.signinInput = zod_1.default.object({
14
- email: zod_1.default.string().email(),
15
- password: zod_1.default.string().min(6),
13
+ exports.signinInput = zod_1.z.object({
14
+ email: zod_1.z.string().email(),
15
+ password: zod_1.z.string().min(6),
16
16
  });
17
- exports.createBlogInput = zod_1.default.object({
18
- title: zod_1.default.string(),
19
- content: zod_1.default.string(),
17
+ exports.createBlogInput = zod_1.z.object({
18
+ title: zod_1.z.string(),
19
+ content: zod_1.z.string(),
20
20
  });
21
- exports.editBlogInput = zod_1.default.object({
22
- id: zod_1.default.string(), // Prisma Post.id is a uuid string
23
- title: zod_1.default.string(),
24
- content: zod_1.default.string(),
21
+ exports.editBlogInput = zod_1.z.object({
22
+ id: zod_1.z.string().uuid(),
23
+ title: zod_1.z.string(),
24
+ content: zod_1.z.string(),
25
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abhi-medium-blog",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Medium-style blog backend built with Hono, Prisma, and Cloudflare Workers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -33,5 +33,8 @@
33
33
  "bugs": {
34
34
  "url": "https://github.com/abhisek7154/The-Forgotten-Archive/issues"
35
35
  },
36
- "homepage": "https://github.com/abhisek7154/The-Forgotten-Archive#readme"
36
+ "homepage": "https://github.com/abhisek7154/The-Forgotten-Archive#readme",
37
+ "devDependencies": {
38
+ "typescript": "^5.9.3"
39
+ }
37
40
  }