octoflare
Advanced tools
Comparing version 0.0.0 to 0.1.0
@@ -13,3 +13,3 @@ import { App } from 'octokit'; | ||
appId: env.OCTOFLARE_APP_ID, | ||
privateKey: env.OCTOFLARE_APP_PRIVATE_KEY_PKCS8 | ||
privateKey: env.OCTOFLARE_PRIVATE_KEY_PKCS8 | ||
}); | ||
@@ -16,0 +16,0 @@ try { |
export type InternalEnv = { | ||
OCTOFLARE_APP_ID: string; | ||
OCTOFLARE_APP_PRIVATE_KEY_PKCS8: string; | ||
OCTOFLARE_APP_WEBHOOK_SECRET: string; | ||
OCTOFLARE_PRIVATE_KEY_PKCS8: string; | ||
OCTOFLARE_WEBHOOK_SECRET: string; | ||
}; |
@@ -24,3 +24,3 @@ import crypto from 'node:crypto'; | ||
const signature = crypto | ||
.createHmac('sha256', env.OCTOFLARE_APP_WEBHOOK_SECRET) | ||
.createHmac('sha256', env.OCTOFLARE_WEBHOOK_SECRET) | ||
.update(body) | ||
@@ -27,0 +27,0 @@ .digest('hex'); |
{ | ||
"name": "octoflare", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"description": "A framework for building GitHub Apps with Cloudflare Worker", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -8,3 +8,3 @@ # octoflare | ||
```sh | ||
npm i octoflare-app | ||
npm i octoflare | ||
``` | ||
@@ -16,5 +16,5 @@ | ||
// src/index.js | ||
import { octoflare } from 'octoflare-app' | ||
import { octoflare } from 'octoflare' | ||
export default octoflare((request, env, { app, payload }) => { | ||
export default octoflare(({ request, env, app, payload }) => { | ||
// Application Code | ||
@@ -32,2 +32,2 @@ }) | ||
[Type Definition](./src/types/OctoflareApp.ts) | ||
[Type Definition](./src/types/OctoflareHandler.ts) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6026