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

@alethio/cms-plugin-api

Package Overview
Dependencies
Maintainers
6
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alethio/cms-plugin-api - npm Package Compare versions

Comparing version 1.0.0-beta.7 to 1.0.0-beta.8

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# v1.0.0-beta.8
- Add definitions for data source dependencies (@alethio/cms@1.0.0-beta.12+)
# v1.0.0-beta.7

@@ -2,0 +6,0 @@

@@ -0,3 +1,21 @@

import { IDataAdapterRefConfig } from "./IDataAdapterConfig";
export interface IDataSource {
init(): Promise<void>;
/**
* Simple adapter dependencies when we depend on data from other plugins
*
* Only simple adapters are supported, meaning they must
* - not depend on a data source being already initialized
* - have a root contextType ({}),
* - have no nested dependencies
*/
dependencies?: IDataAdapterRefConfig[];
/**
* Initializes the data source, performing any async operations needed to make the data source functional
*
* [cms v1.0.0-beta.12+]: If a dependencies array was specified, data loaded from each depending adapter is also passed to this method
*
* @param depData A map of adapter URIs to data returned by respective adapter. Adapter alias is also supported as key
*/
init(depData: Map<string, unknown>): Promise<void>;
}

2

package.json
{
"name": "@alethio/cms-plugin-api",
"version": "1.0.0-beta.7",
"version": "1.0.0-beta.8",
"types": "index",

@@ -5,0 +5,0 @@ "description": "TypeScript definitions for Alethio CMS plugin API",

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