postgresdk 0.2.1-alpha.0 → 0.2.1-alpha.1
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/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -2
package/dist/cli.js
CHANGED
@@ -2041,7 +2041,7 @@ ${registrations}
|
|
2041
2041
|
|
2042
2042
|
router.get("/sdk/files/:path{.*}", (c) => {
|
2043
2043
|
const path = c.req.param("path");
|
2044
|
-
const content = SDK_MANIFEST.files[path];
|
2044
|
+
const content = SDK_MANIFEST.files[path as keyof typeof SDK_MANIFEST.files];
|
2045
2045
|
if (!content) {
|
2046
2046
|
return c.text("File not found", 404);
|
2047
2047
|
}
|
package/dist/index.js
CHANGED
@@ -1804,7 +1804,7 @@ ${registrations}
|
|
1804
1804
|
|
1805
1805
|
router.get("/sdk/files/:path{.*}", (c) => {
|
1806
1806
|
const path = c.req.param("path");
|
1807
|
-
const content = SDK_MANIFEST.files[path];
|
1807
|
+
const content = SDK_MANIFEST.files[path as keyof typeof SDK_MANIFEST.files];
|
1808
1808
|
if (!content) {
|
1809
1809
|
return c.text("File not found", 404);
|
1810
1810
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "postgresdk",
|
3
|
-
"version": "0.2.1-alpha.
|
3
|
+
"version": "0.2.1-alpha.1",
|
4
4
|
"description": "Generate a typed server/client SDK from a Postgres schema (includes, Zod, Hono).",
|
5
5
|
"type": "module",
|
6
6
|
"bin": {
|
@@ -22,10 +22,11 @@
|
|
22
22
|
},
|
23
23
|
"scripts": {
|
24
24
|
"build": "bun build src/cli.ts src/index.ts --outdir dist --target node --format esm --external=pg --external=zod --external=hono --external=node:* && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
25
|
-
"test": "bun test:init && bun test:gen && bun test:pull",
|
25
|
+
"test": "bun test:init && bun test:gen && bun test:pull && bun test:typecheck",
|
26
26
|
"test:init": "bun test/test-init.ts",
|
27
27
|
"test:gen": "bun test/test-gen.ts",
|
28
28
|
"test:pull": "bun test/test-pull.ts",
|
29
|
+
"test:typecheck": "bun test/test-typecheck.ts",
|
29
30
|
"prepublishOnly": "npm run build",
|
30
31
|
"publish:patch": "./publish.sh",
|
31
32
|
"publish:minor": "./publish.sh",
|