
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@appthen/lowcode-datasource-engine
Advanced tools
低代码引擎数据源核心代码
[原理介绍](https://yuque.antfin-inc.com/docs/share/6ba9dab7-0712-4302-a5bb-b17d4a5f8505?# 《DataSource Engine》)
[fetch流程图](https://yuque.antfin-inc.com/docs/share/e9baef9a-3586-40fc-8708-eaeee0d7937e?# 《fetch 流程》)
// 面向运行时渲染,直接给 schema
import { create } from '@alilc/lowcode-datasource-engine/interpret';
// 面向出码,需要给处理过后的内容
import { create } from '@alilc/lowcode-datasource-engine/runtime';
import { createFetchHandler } from '@alilc/lowcode-datasource-fetch-handler';
import { createMtopHandler } from '@alilc/lowcode-datasource-mtop-handler';
// dataSource 可以是 schema 协议内容 或者是运行时的转化后的配置内容 (出码专用)
// context 上下文(setState 为必选)
const dataSourceEngine = create(dataSource, context, {
requestHandlersMap: { // 可选参数,以下内容为当前默认的内容
urlParams: handlersMap.urlParams('?bar=1&test=2'),
fetch: createFetchHandler,
mtop: createMtopHandler
},
});
console.log(dsf.dataSourceMap) // 符合集团协议的 datasourceMap https://yuque.antfin-inc.com/mo/spec/spec-low-code-building-schema#QUSn5
dsf.dataSourceMap['id'].load() // 加载
dsf.dataSourceMap['id'].status // 获取状态
dsf.dataSourceMap['id'].data // 获取数据
dsf.dataSourceMap['id'].error // 获取错误信息
dsf.reloadDataSource(); // 刷新所有数据源
FAQs
DataSource Engine for disscode
The npm package @appthen/lowcode-datasource-engine receives a total of 8 weekly downloads. As such, @appthen/lowcode-datasource-engine popularity was classified as not popular.
We found that @appthen/lowcode-datasource-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.