hono-adapter-aws-lambda 1.3.1 → 1.3.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.mts +1 -1
- package/dist/index.mjs +3 -5
- package/package.json +18 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Env, Schema, Hono } from 'hono';
|
|
2
1
|
import { LambdaEvent, LambdaTriggerEvent } from '@namesmt/utils-lambda';
|
|
3
2
|
export { LambdaEvent, LambdaRequestEvent, LambdaTriggerEvent } from '@namesmt/utils-lambda';
|
|
3
|
+
import { Env, Schema, Hono } from 'hono';
|
|
4
4
|
import { Handler, APIGatewayProxyResult, APIGatewayProxyStructuredResultV2 } from 'aws-lambda';
|
|
5
5
|
export { Context as LambdaContext } from 'aws-lambda';
|
|
6
6
|
import * as hono_types from 'hono/types';
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { pipeline } from 'node:stream/promises';
|
|
1
|
+
import { Readable } from 'stream';
|
|
2
|
+
import { pipeline } from 'stream/promises';
|
|
4
3
|
import { decodeBase64, encodeBase64 } from 'hono/utils/encode';
|
|
5
4
|
import { Hono } from 'hono';
|
|
6
5
|
import { mergePath } from 'hono/utils/url';
|
|
@@ -254,7 +253,7 @@ class TriggerEventProcessor {
|
|
|
254
253
|
}
|
|
255
254
|
}
|
|
256
255
|
const triggerProcessor = new TriggerEventProcessor();
|
|
257
|
-
const triggerPathUUID = `${process.env.
|
|
256
|
+
const triggerPathUUID = `${process.env.HONO_TRIGGER_SALT}-${Date.now()}-${Math.random()}`;
|
|
258
257
|
function getTriggerPath(path) {
|
|
259
258
|
return mergePath(triggerPathUUID, path);
|
|
260
259
|
}
|
|
@@ -317,7 +316,6 @@ function minimalEvent(method, path, baseEvent) {
|
|
|
317
316
|
return event;
|
|
318
317
|
}
|
|
319
318
|
|
|
320
|
-
globalThis.crypto ??= crypto;
|
|
321
319
|
async function writableWriteReadable(writer, reader) {
|
|
322
320
|
let readResult = await reader.read();
|
|
323
321
|
while (!readResult.done) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono-adapter-aws-lambda",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
5
|
-
"packageManager": "pnpm@10.
|
|
4
|
+
"version": "1.3.3",
|
|
5
|
+
"packageManager": "pnpm@10.11.0",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "NamesMT <dangquoctrung123@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"prepublishOnly": "pnpm run build"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"hono": ">=4.
|
|
56
|
+
"hono": ">=4.7.11"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"hono": {
|
|
@@ -61,26 +61,31 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@namesmt/utils-lambda": "^0.1.
|
|
64
|
+
"@namesmt/utils-lambda": "^0.1.4",
|
|
65
65
|
"@types/aws-lambda": "^8.10.149"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@antfu/eslint-config": "^
|
|
69
|
-
"@types/node": "^20.17.
|
|
70
|
-
"@vitest/coverage-v8": "^
|
|
71
|
-
"eslint": "^9.
|
|
68
|
+
"@antfu/eslint-config": "^4.13.2",
|
|
69
|
+
"@types/node": "^20.17.57",
|
|
70
|
+
"@vitest/coverage-v8": "^3.1.4",
|
|
71
|
+
"eslint": "^9.28.0",
|
|
72
72
|
"klona": "^2.0.6",
|
|
73
|
-
"lint-staged": "^
|
|
74
|
-
"simple-git-hooks": "^2.
|
|
75
|
-
"tsx": "^4.19.
|
|
73
|
+
"lint-staged": "^16.1.0",
|
|
74
|
+
"simple-git-hooks": "^2.13.0",
|
|
75
|
+
"tsx": "^4.19.4",
|
|
76
76
|
"typescript": "^5.8.3",
|
|
77
77
|
"unbuild": "^3.5.0",
|
|
78
|
-
"vitest": "^
|
|
78
|
+
"vitest": "^3.1.4"
|
|
79
79
|
},
|
|
80
80
|
"pnpm": {
|
|
81
81
|
"overrides": {
|
|
82
82
|
"is-core-module": "npm:@nolyfill/is-core-module@^1.0.39"
|
|
83
|
-
}
|
|
83
|
+
},
|
|
84
|
+
"onlyBuiltDependencies": [
|
|
85
|
+
"esbuild",
|
|
86
|
+
"simple-git-hooks",
|
|
87
|
+
"unrs-resolver"
|
|
88
|
+
]
|
|
84
89
|
},
|
|
85
90
|
"simple-git-hooks": {
|
|
86
91
|
"pre-commit": "pnpm lint-staged"
|