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

octoflare

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

octoflare - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0

dist/types/CompleteCheckRun.d.ts

4

dist/types/DispatchWorkflow.d.ts
import { Octokit } from 'octokit';
export type DispatchWorkflow = (dispatch_params: NonNullable<Parameters<Octokit['rest']['actions']['createWorkflowDispatch']>[0]>) => Promise<unknown>;
type createWorkflowDispatch = Octokit['rest']['actions']['createWorkflowDispatch'];
export type DispatchWorkflow = (dispatch_params: NonNullable<Parameters<createWorkflowDispatch>[0]>) => ReturnType<createWorkflowDispatch>;
export {};
import { Octokit } from 'octokit';
import { CompleteCheckRun } from './CompleteCheckRun.js';
import { DispatchWorkflow } from './DispatchWorkflow.js';

@@ -7,3 +8,6 @@ export type OctoflareInstallation = {

token: string;
createCheckRun: (params: NonNullable<Parameters<Octokit['rest']['checks']['create']>[0]>) => Promise<DispatchWorkflow>;
createCheckRun: (params: NonNullable<Parameters<Octokit['rest']['checks']['create']>[0]>) => Promise<{
completeCheckRun: CompleteCheckRun;
dispatchWorkflow: DispatchWorkflow;
}>;
};

@@ -32,6 +32,13 @@ import memoize from 'lodash/memoize.js';

onCreateCheck(check_run_id);
return async (dispatch_params) => {
const octokit = await getRepoInstallation(dispatch_params);
const completeCheckRun = ((params) => kit.rest.checks.update({
check_run_id,
owner: params.owner,
repo: params.repo,
status: 'completed',
...params
}));
const dispatchWorkflow = (async (params) => {
const octokit = await getRepoInstallation(params);
return octokit.rest.actions.createWorkflowDispatch({
...dispatch_params,
...params,
inputs: {

@@ -42,5 +49,9 @@ token,

check_run_id,
...dispatch_params.inputs
...params.inputs
}
});
});
return {
completeCheckRun,
dispatchWorkflow
};

@@ -47,0 +58,0 @@ }

{
"name": "octoflare",
"version": "0.6.1",
"version": "0.7.0",
"description": "A framework for building GitHub Apps with Cloudflare Worker",

@@ -5,0 +5,0 @@ "type": "module",

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