Skip to content

Commit 8a0c24e

Browse files
committed
"version bump"
1 parent d2464a3 commit 8a0c24e

31 files changed

Lines changed: 125 additions & 88 deletions

File tree

examples/with-entries/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dev": "ts-node src/scripts/serve.ts"
1212
},
1313
"dependencies": {
14-
"@stackpress/ingest": "0.10.3"
14+
"@stackpress/ingest": "0.10.4"
1515
},
1616
"devDependencies": {
1717
"@types/node": "25.3.5",

examples/with-google/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@google-cloud/functions-framework": "3.4.5",
13-
"@stackpress/ingest": "0.10.3"
13+
"@stackpress/ingest": "0.10.4"
1414
},
1515
"devDependencies": {
1616
"@types/node": "25.3.5",

examples/with-handlebars/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dev": "ts-node src/server.ts"
99
},
1010
"dependencies": {
11-
"@stackpress/ingest": "0.10.3",
11+
"@stackpress/ingest": "0.10.4",
1212
"handlebars": "4.7.8"
1313
},
1414
"devDependencies": {

examples/with-handlebars/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ app.view.render = (filePath, props) => {
1212
const template = handlebars.compile(contents);
1313
return template(props);
1414
};
15-
app.view.engine = (filePath, req, res, ctx) => {
15+
app.view.engine = (filePath, { req, res, ctx }) => {
1616
const html = ctx.view.render(filePath, { name: req.data.get('name') });
1717
if (typeof html === 'string') {
1818
res.html(html);

examples/with-http/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dev": "ts-node src/server.ts"
99
},
1010
"dependencies": {
11-
"@stackpress/ingest": "0.10.3"
11+
"@stackpress/ingest": "0.10.4"
1212
},
1313
"devDependencies": {
1414
"@types/node": "25.3.5",

examples/with-imports/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dev": "ts-node src/scripts/serve.ts"
1212
},
1313
"dependencies": {
14-
"@stackpress/ingest": "0.10.3"
14+
"@stackpress/ingest": "0.10.4"
1515
},
1616
"devDependencies": {
1717
"@types/node": "25.3.5",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Request, Response } from '@stackpress/ingest';
1+
import { action } from '@stackpress/ingest';
22

3-
export default function NotFound(req: Request, res: Response) {
3+
export default action(function NotFound({ res }) {
44
if (!res.code && !res.status && !res.sent) {
55
//send the response
66
res.html('Not Found');
77
}
8-
};
8+
});
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Status } from '@stackpress/lib'
2-
import { Request, Response, Exception } from '@stackpress/ingest';
1+
import { Status } from '@stackpress/lib';
2+
import { action, Exception } from '@stackpress/ingest';
33

4-
export default function ErrorResponse(req: Request, res: Response) {
4+
export default action(function ErrorResponse({ res }) {
55
try {
66
throw Exception.for('Not implemented');
77
} catch (e) {
@@ -13,4 +13,4 @@ export default function ErrorResponse(req: Request, res: Response) {
1313
stack: error.trace()
1414
});
1515
}
16-
};
16+
});
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Request, Response } from '@stackpress/ingest';
1+
import { action } from '@stackpress/ingest';
22
import Error from '../error';
33

4-
export default function ErrorResponse(req: Request, res: Response) {
4+
export default action(function ErrorResponse() {
55
Error('Not implemented');
6-
};
6+
});
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import fs from 'fs';
22
import path from 'path';
3-
import { Request, Response } from '@stackpress/ingest';
3+
import { action } from '@stackpress/ingest';
44

5-
export default async function Icon(req: Request, res: Response) {
5+
export default action(async function Icon({ res }) {
66
if (res.code || res.status || res.body) return;
77
const file = path.resolve(process.cwd(), 'icon.png');
88
if (fs.existsSync(file)) {
99
res.set('image/png', fs.createReadStream(file));
1010
}
11-
};
11+
});

0 commit comments

Comments
 (0)