@mstuercke/api-utils 6.1.1 → 6.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstuercke/api-utils",
3
- "version": "6.1.1",
3
+ "version": "6.1.2",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -40,30 +40,30 @@
40
40
  },
41
41
  "scripts": {
42
42
  "test:unit": "bun test",
43
- "compile": "tsc",
43
+ "typeCheck": "tsc",
44
44
  "bump:major": "npm version major --git-tag-version false",
45
45
  "bump:minor": "npm version minor --git-tag-version false",
46
46
  "bump:patch": "npm version patch --git-tag-version false",
47
47
  "release": "bun run scripts/release.ts"
48
48
  },
49
49
  "dependencies": {
50
- "path-to-regexp": "^7.0.0"
50
+ "path-to-regexp": "^8.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@aws-sdk/client-apigatewaymanagementapi": "^3.438.0",
54
54
  "@trpc/server": "^11.0.0-rc.390",
55
- "@types/aws-lambda": "^8.10.138"
55
+ "@types/aws-lambda": "8.10.145"
56
56
  },
57
57
  "devDependencies": {
58
- "@mstuercke/bun-utils": "6.2.20",
58
+ "@mstuercke/bun-utils": "7.0.6",
59
59
  "@trpc/server": "^11.0.0-rc.390",
60
- "@types/aws-lambda": "^8.10.138",
61
- "@types/bun": "^1.1.3",
62
- "@types/path-to-regexp": "^1.7.0",
63
- "@types/react": "^18.3.3",
64
- "aws-sdk-client-mock": "^4.0.1",
65
- "typescript": "^5.4.5",
66
- "zod": "^3.23.8"
60
+ "@types/aws-lambda": "8.10.145",
61
+ "@types/bun": "1.1.10",
62
+ "@types/path-to-regexp": "1.7.0",
63
+ "@types/react": "18.3.10",
64
+ "aws-sdk-client-mock": "4.0.2",
65
+ "typescript": "5.6.2",
66
+ "zod": "3.23.8"
67
67
  },
68
68
  "publishConfig": {
69
69
  "registry": "https://registry.npmjs.org/"
@@ -65,6 +65,8 @@ export const awsLambdaTrpcSubscriptionRequestHandler = <Router extends AnyTRPCRo
65
65
  type: 'subscription',
66
66
  ctx: (await createContext?.(event)) || {},
67
67
  getRawInput: async () => request.params.input,
68
+ input: request.params.input,
69
+ signal: undefined,
68
70
  })
69
71
 
70
72
  if (!isObservable(procedure)) {
@@ -84,6 +86,7 @@ export const awsLambdaTrpcSubscriptionRequestHandler = <Router extends AnyTRPCRo
84
86
  },
85
87
  error: (err) => {
86
88
  console.error(err)
89
+ // TODO: respond with error
87
90
  messageQueue.push({
88
91
  id: request.id,
89
92
  result: {type: 'stopped'},