Skip to content

Commit e2ac275

Browse files
authored
Feature/storage stream (#86)
* refactor(core): rename getStream to getAsStream and implement S3 stream retrieval - Updated Local and S3Storage drivers to rename the method getStream to getAsStream for consistency. - Implemented the getAsStream method in S3Storage to retrieve file streams from S3, including error handling for better reliability. * chore(core): bump version to 0.1.61 * refactor(cli): update SWC file transformer to use tsConfigPath - Refactored the SWC file transformer to accept tsConfigPath instead of ParsedCommandLine directly. - Updated build and start-server commands to align with the new parameter structure. * chore(cli): bump version to 0.0.22 * chore(ts-node): bump version to 0.0.3 and update package-lock.json * chore(core): bump version to 0.1.62 and update reply logic - Updated package version to 0.1.62 in package.json. - Modified reply.ts to improve response handling by removing unnecessary send call when no data is present.
1 parent 7ba36a1 commit e2ac275

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/lib/rest/http-server/reply.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class Reply {
4242
return res.stream(dataFromHandler.getStream());
4343
}
4444

45-
if (!dataFromHandler) return res.send();
45+
if (!dataFromHandler) return;
4646

4747
/**
4848
* Default to JSON

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@intentjs/core",
3-
"version": "0.1.61",
3+
"version": "0.1.62",
44
"description": "Core module for Intent",
55
"repository": {
66
"type": "git",

packages/ts-node/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@intentjs/ts-node",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "A custom ts-node flavour for IntentJS.",
55
"type": "module",
66
"keywords": [
@@ -32,10 +32,10 @@
3232
},
3333
"homepage": "https://github.com/intentjs/intent#readme",
3434
"dependencies": {
35-
"ts-loader": "^9.5.2"
35+
"ts-loader": "^9.5.2",
36+
"ts-node": "^10.9.2"
3637
},
3738
"devDependencies": {
38-
"@types/node": "^22.15.21",
39-
"ts-node": "^10.9.2"
39+
"@types/node": "^22.15.21"
4040
}
4141
}

0 commit comments

Comments
 (0)