abhi-medium-blog 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.
Files changed (2) hide show
  1. package/dist/index.js +25 -0
  2. package/package.json +32 -0
package/dist/index.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ 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
+ username: zod_1.default.string().email(),
10
+ password: zod_1.default.string().min(6),
11
+ name: zod_1.default.string().optional()
12
+ });
13
+ exports.signinInput = zod_1.default.object({
14
+ username: zod_1.default.string().email(),
15
+ password: zod_1.default.string().min(6),
16
+ });
17
+ exports.createBlogInput = zod_1.default.object({
18
+ title: zod_1.default.string(),
19
+ content: zod_1.default.string(),
20
+ });
21
+ exports.editBlogInput = zod_1.default.object({
22
+ title: zod_1.default.string(),
23
+ content: zod_1.default.string(),
24
+ id: zod_1.default.number()
25
+ });
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "abhi-medium-blog",
3
+ "version": "1.0.0",
4
+ "description": "Medium-style blog backend built with Hono, Prisma, and Cloudflare Workers",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "require": "./dist/index.js",
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ }
13
+ },
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "start": "node dist/index.js"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/abhisek7154/The-Forgotten-Archive.git"
24
+ },
25
+ "keywords": ["cloudflare", "prisma", "hono", "blog"],
26
+ "author": "Abhisek sahoo",
27
+ "license": "ISC",
28
+ "bugs": {
29
+ "url": "https://github.com/abhisek7154/The-Forgotten-Archive/issues"
30
+ },
31
+ "homepage": "https://github.com/abhisek7154/The-Forgotten-Archive#readme"
32
+ }