mpserverless-sdk-core
Advanced tools
Comparing version 0.0.3 to 0.0.5
@@ -29,2 +29,7 @@ import * as $tea from '@alicloud/tea-typescript'; | ||
}>; | ||
static invokeFunctionWithPageExe(openApiName: string, params: { | ||
[key: string]: any; | ||
}): Promise<{ | ||
string: any; | ||
}>; | ||
static invokePreFunction(preFunctionName: string, openApiName: string, params: { | ||
@@ -31,0 +36,0 @@ [key: string]: any; |
@@ -42,2 +42,10 @@ "use strict"; | ||
} | ||
static async invokeFunctionWithPageExe(openApiName, params) { | ||
const args = { | ||
'method': openApiName, | ||
params | ||
}; | ||
let response = await this.invoker.function.invoke("alipay-openapi", args); | ||
return response.result; | ||
} | ||
static async invokePreFunction(preFunctionName, openApiName, params) { | ||
@@ -44,0 +52,0 @@ const args = { |
{ | ||
"name": "mpserverless-sdk-core", | ||
"version": "0.0.3", | ||
"version": "0.0.5", | ||
"description": "Alipay miniprogram Serverless SDK Core", | ||
@@ -5,0 +5,0 @@ "main": "dist/client.js", |
@@ -51,3 +51,13 @@ // This file is auto-generated, don't edit it | ||
static async invokeFunctionWithPageExe(openApiName: string, params: { [key: string]: any }): Promise<{ string }> { | ||
const args = { | ||
'method': openApiName, | ||
params | ||
}; | ||
let response = await this.invoker.function.invoke("alipay-openapi", args); | ||
return response.result; | ||
} | ||
static async invokePreFunction(preFunctionName: string, openApiName: string, params: { [key: string]: any }): Promise<{ [key: string]: any }> { | ||
@@ -54,0 +64,0 @@ const args = { |
Sorry, the diff of this file is not supported yet
6231
154