@gnosticdev/hono-actions 1.0.2 → 1.0.3
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 +1 -1
- package/dist/index.js +4 -4
- package/package.json +9 -3
package/dist/index.d.ts
CHANGED
|
@@ -129,7 +129,7 @@ type ActionErrorCode = 'INPUT_VALIDATION_ERROR' | 'EXTERNAL_API_ERROR' | 'INTERN
|
|
|
129
129
|
declare class HonoActionError<TSchema extends v.ObjectSchema<v.ObjectEntries, v.ErrorMessage<v.ObjectIssue> | undefined>, TMessage extends string, TCode extends ActionErrorCode, TIssue extends v.InferIssue<TSchema>> extends Error {
|
|
130
130
|
code: TCode;
|
|
131
131
|
issue?: TIssue;
|
|
132
|
-
constructor({ message, code, issue }: {
|
|
132
|
+
constructor({ message, code, issue, }: {
|
|
133
133
|
message: TMessage;
|
|
134
134
|
code: TCode;
|
|
135
135
|
issue?: TIssue;
|
package/dist/index.js
CHANGED
|
@@ -84,15 +84,15 @@ function defineHonoAction({ path: path2, schema, handler }) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// src/integration.ts
|
|
87
|
+
import fs from "fs/promises";
|
|
88
|
+
import path from "path";
|
|
89
|
+
import { z } from "astro/zod";
|
|
87
90
|
import {
|
|
88
91
|
addVirtualImports,
|
|
89
92
|
createResolver,
|
|
90
93
|
defineIntegration
|
|
91
94
|
} from "astro-integration-kit";
|
|
92
|
-
import { z } from "astro/zod";
|
|
93
95
|
import fg from "fast-glob";
|
|
94
|
-
import fs from "fs/promises";
|
|
95
|
-
import path from "path";
|
|
96
96
|
|
|
97
97
|
// src/integration-files.ts
|
|
98
98
|
function generateRouter(opts) {
|
|
@@ -130,7 +130,7 @@ var getAstroHandler = (adapter) => {
|
|
|
130
130
|
case "cloudflare":
|
|
131
131
|
return `
|
|
132
132
|
// Generated by Hono Actions Integration
|
|
133
|
-
import router from '
|
|
133
|
+
import router from './router.js'
|
|
134
134
|
import type { APIContext, APIRoute } from 'astro'
|
|
135
135
|
|
|
136
136
|
const handler: APIRoute<APIContext> = async (ctx) => {
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"astro-integration-kit": "^0.19.0",
|
|
9
9
|
"fast-glob": "^3.3.3",
|
|
10
10
|
"hono": "^4.9.4",
|
|
11
|
+
"release-it": "^19.0.4",
|
|
11
12
|
"valibot": "^1.1.0"
|
|
12
13
|
},
|
|
13
14
|
"description": "Type-safe Hono server actions with build-in validation",
|
|
@@ -54,9 +55,14 @@
|
|
|
54
55
|
"scripts": {
|
|
55
56
|
"build": "tsup",
|
|
56
57
|
"dev": "tsup --watch",
|
|
57
|
-
"prepublishOnly": "bun run build"
|
|
58
|
+
"prepublishOnly": "bun run build",
|
|
59
|
+
"release": "release-it",
|
|
60
|
+
"release:patch": "release-it patch",
|
|
61
|
+
"release:minor": "release-it minor",
|
|
62
|
+
"release:major": "release-it major",
|
|
63
|
+
"publish": "bun run release"
|
|
58
64
|
},
|
|
59
65
|
"type": "module",
|
|
60
66
|
"types": "dist/index.d.ts",
|
|
61
|
-
"version": "1.0.
|
|
62
|
-
}
|
|
67
|
+
"version": "1.0.3"
|
|
68
|
+
}
|