Skip to content

Commit

Permalink
fix: use Request instead of IRequestStrict for Client#handle
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilloftheshadow committed Sep 3, 2024
1 parent 99fe164 commit df41a14
Show file tree
Hide file tree
Showing 9 changed files with 6,700 additions and 5 deletions.
6,667 changes: 6,667 additions & 0 deletions apps/cloudo/.wrangler/tmp/deploy-PFMdGv/index.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions apps/cloudo/.wrangler/tmp/deploy-PFMdGv/index.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions packages/carbon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @buape/carbon

## 0.1.3

### Patch Changes

- fix: use Request instead of IRequestStrict for Client#handle

## 0.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/carbon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@buape/carbon",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",
"main": "./dist/src/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/carbon/src/classes/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class Client {
* @param ctx Cloudflare Workers only. The execution context of the request, provided in the fetch handler from CF.
* @returns A response to send back to the client.
*/
public async handle(req: IRequestStrict, ctx?: ExecutionContext) {
public async handle(req: Request, ctx?: ExecutionContext) {
const isValid = await this.validateInteraction(req)
if (!isValid) {
return new Response("Invalid request signature", { status: 401 })
Expand Down Expand Up @@ -226,7 +226,7 @@ export class Client {
* Validate the interaction request
* @param req The request to validate
*/
private async validateInteraction(req: IRequestStrict) {
private async validateInteraction(req: Request) {
if (req.method !== "POST") {
throw new StatusError(405)
}
Expand Down
7 changes: 7 additions & 0 deletions packages/linked-roles/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @buape/carbon-linked-roles

## 0.1.3

### Patch Changes

- Updated dependencies
- @buape/carbon@0.1.3

## 0.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/linked-roles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@buape/carbon-linked-roles",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",
"main": "./dist/src/index.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions packages/nodejs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @buape/carbon-nodejs

## 0.1.3

### Patch Changes

- Updated dependencies
- @buape/carbon@0.1.3

## 0.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@buape/carbon-nodejs",
"version": "0.1.2",
"version": "0.1.3",
"type": "module",
"main": "./dist/src/index.js",
"scripts": {
Expand Down

0 comments on commit df41a14

Please sign in to comment.