fix: jsonp handler rename

This commit is contained in:
guokai.jgk 2020-11-03 23:05:55 +08:00
parent dcdcf287af
commit cf3a61a8e8
8 changed files with 9 additions and 9 deletions

View File

@ -1 +0,0 @@
export type * from '../../es/handlers/fetch';

View File

@ -1 +0,0 @@
module.exports = require('../../lib/handlers/fetch').default;

View File

@ -1 +0,0 @@
export type * from '../../es/handlers/mtop';

View File

@ -1 +0,0 @@
module.exports = require('../../lib/handlers/mtop').default;

View File

@ -1 +0,0 @@
export type * from '../../es/handlers/url-params';

View File

@ -1 +0,0 @@
module.exports = require('../../lib/handlers/url-params').default;

View File

@ -19,13 +19,19 @@ import { create } from '@ali/lowcode-datasource-engine/interpret';
// 面向出码,需要给处理过后的内容
import { create } from '@ali/lowcode-datasource-engine/runtime';
import { createFetchHandler } from '@ali/lowcode-datasource-fetch-handler';
import { createMtopHandler } from '@ali/lowcode-datasource-mtop-handler';
// dataSource 可以是 schema 协议内容 或者是运行时的转化后的配置内容 (出码专用)
// context 上下文(setState 为必选)
const dsf = create(dataSource, context, {
const dataSourceEngine = create(dataSource, context, {
requestHandlersMap: { // 可选参数,以下内容为当前默认的内容
urlParams: handlersMap.urlParams('?bar=1&test=2'),
mtop: mtophandlers,
fetch: createFetchHandler,
mtop: createMtopHandler
},
});

View File

@ -1,5 +1,5 @@
{
"name": "@ali/datasource-jsonp-handler",
"name": "@ali/lowcode-datasource-jsonp-handler",
"version": "1.0.0-alpha.1",
"main": "lib/index.js",
"module": "es/index.js",