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

@frontastic/extension-types

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontastic/extension-types - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

2

package.json
{
"name": "@frontastic/extension-types",
"version": "0.0.9",
"version": "0.0.10",
"description": "Type definitions required for backend extension development with Frontastic",

@@ -5,0 +5,0 @@ "main": "./src/ts/exports.ts",

@@ -47,2 +47,9 @@ /*

} from './basicComponentValues';
export type { ExtensionRegistry, ActionHandler, DataSourceHandler, DynamicPageHandler } from './extensions';
export type {
ExtensionRegistry,
DataSourceRegistry,
ActionRegistry,
ActionHandler,
DataSourceHandler,
DynamicPageHandler
} from './extensions';
import {
ActionContext,
DataSourceConfiguration,

@@ -12,11 +13,15 @@ DataSourceContext,

export interface ExtensionRegistry {
'data-sources': {
[dataSourceType: string]: DataSourceHandler;
'data-sources'?: DataSourceRegistry;
actions?: ActionRegistry;
'dynamic-page-handler'?: DynamicPageHandler;
}
export interface DataSourceRegistry {
[dataSourceType: string]: DataSourceHandler;
}
export interface ActionRegistry {
[actionNamespace: string]: {
[actionIdentifier: string]: ActionHandler;
};
actions: {
[actionNamespace: string]: {
[actionIdentifier: string]: ActionHandler;
};
};
'dynamic-page-handler': DynamicPageHandler;
}

@@ -29,3 +34,3 @@

export interface ActionHandler {
(request: Request): Promise<Response> | Response;
(request: Request, actionContext: ActionContext): Promise<Response> | Response;
}

@@ -32,0 +37,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