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

@giteeteam/apps-api

Package Overview
Dependencies
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giteeteam/apps-api - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

10

dist/resolver/index.d.ts
export type ResolverPayload = Record<string, any>;
export type ResolverCallbackParams = {
payload: ResolverPayload;
applicationId?: string;
sessionToken?: string;
env?: Record<string, any>;
};
export type ResolverCallback = (params: ResolverCallbackParams) => Promise<void>;
export type ResolverCallback = (params: ResolverCallbackParams) => Promise<any>;
export declare class Resolver {

@@ -12,6 +15,9 @@ private functions;

sanitizeObject(object: Record<string, any>): any;
getDefinitions(): ({ _resolverMethod, payload }: {
getDefinitions(): ({ _resolverMethod, payload, applicationId, sessionToken, env, }: {
_resolverMethod: string;
payload: ResolverPayload;
applicationId: string;
sessionToken?: string | undefined;
env?: Record<string, any> | undefined;
}) => Promise<any>;
}

@@ -25,6 +25,9 @@ export class Resolver {

getDefinitions() {
const resolve = async ({ _resolverMethod, payload }) => {
const resolve = async ({ _resolverMethod, payload, applicationId, sessionToken, env, }) => {
const cb = this.getFunction(_resolverMethod);
const result = await cb({
payload: payload || {},
applicationId,
sessionToken,
env,
});

@@ -31,0 +34,0 @@ if (typeof result === 'object') {

2

package.json
{
"name": "@giteeteam/apps-api",
"version": "0.4.1",
"version": "0.4.2",
"description": "Giteeteam Apps API",

@@ -5,0 +5,0 @@ "keywords": [

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