Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@octokit/webhooks-definitions

Package Overview
Dependencies
Maintainers
2
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/webhooks-definitions - npm Package Compare versions

Comparing version 3.34.3 to 3.35.0

schema.d.ts

7

package.json
{
"name": "@octokit/webhooks-definitions",
"version": "3.34.3",
"version": "3.35.0",
"description": "machine-readable, always up-to-date GitHub Webhooks specifications",

@@ -13,2 +13,3 @@ "keywords": [],

"index.json",
"schema.d.ts",
"schema.json"

@@ -18,3 +19,5 @@ ],

"build": "ts-node -T bin/octokit-webhooks.ts check --cached",
"build:all": "npm run -s build:webhooks && npm run -s build:schema && npm run -s build:types",
"build:schema": "ts-node -T bin/octokit-schema.ts",
"build:types": "ts-node -T bin/octokit-types.ts",
"build:webhooks": "ts-node -T bin/octokit-webhooks.ts update",

@@ -38,2 +41,3 @@ "lint": "prettier --check '{bin,lib}/*.ts' '*.{ts,md}' '{payload-examples,payload-schemas}/**/*.json' 'payload-schemas/*.ts' *.md package.json index.json",

"@types/json-schema": "^7.0.6",
"@types/lodash": "^4.14.167",
"@types/node": "^14.14.20",

@@ -46,2 +50,3 @@ "@types/prettier": "^2.1.6",

"json-diff": "^0.5.3",
"json-schema-to-typescript": "^10.1.2",
"prettier": "^2.0.5",

@@ -48,0 +53,0 @@ "semantic-release": "^17.0.0",

@@ -257,2 +257,16 @@ # Octokit Webhooks

## Importing types
This package ships with types for the webhook events generated from the respective json schemas, which you can use like so:
```typescript
import { IssuesOpenedEvent } from "@octokit/webhooks-definitions/schema";
const handleIssuesOpenedEvent = (event: IssuesOpenedEvent) => {
console.log(
`${event.sender.login} opened "${event.issue.title}" on ${event.repository.full_name}`
);
};
```
## How it works

@@ -259,0 +273,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc