mpserverless-sdk-core
Advanced tools
Comparing version
@@ -31,4 +31,2 @@ import Client from './client'; | ||
params: T & BaseParams; | ||
appId?: string; | ||
isvAppId?: string; | ||
} | ||
@@ -35,0 +33,0 @@ export interface ServerlessFunction { |
@@ -83,3 +83,3 @@ "use strict"; | ||
var _a = this.config, _b = _a.notify, notify = _b === void 0 ? null : _b, _c = _a.env, env = _c === void 0 ? null : _c; | ||
var authToken = params.authToken, appAuthToken = params.appAuthToken, appId = params.appId, isvAppId = params.isvAppId; | ||
var authToken = params.authToken, appAuthToken = params.appAuthToken; | ||
delete params.appAuthToken; | ||
@@ -92,4 +92,2 @@ delete params.appId; | ||
params: __assign({ $config: {} }, params), | ||
appId: undefined, | ||
isvAppId: undefined | ||
}; | ||
@@ -105,8 +103,2 @@ if (notify && notify.url) { | ||
} | ||
if (appId) { | ||
args.appId = appId; | ||
} | ||
if (isvAppId) { | ||
args.isvAppId = isvAppId; | ||
} | ||
if (env) { | ||
@@ -113,0 +105,0 @@ args.params.$config.env = env; |
{ | ||
"name": "mpserverless-sdk-core", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "Alipay mini program Serverless SDK Core", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -38,4 +38,2 @@ import Client from './client'; | ||
params: T & BaseParams; | ||
appId?: string; | ||
isvAppId?: string; | ||
} | ||
@@ -69,3 +67,3 @@ | ||
} = this.config; | ||
const { authToken, appAuthToken, appId, isvAppId } = params; | ||
const { authToken, appAuthToken } = params; | ||
delete params.appAuthToken; | ||
@@ -81,4 +79,2 @@ delete params.appId; | ||
}, | ||
appId: undefined, | ||
isvAppId: undefined | ||
}; | ||
@@ -96,8 +92,2 @@ if (notify && notify.url) { | ||
} | ||
if(appId) { | ||
args.appId = appId; | ||
} | ||
if(isvAppId) { | ||
args.isvAppId = isvAppId; | ||
} | ||
if (env) { | ||
@@ -104,0 +94,0 @@ args.params.$config.env = env; |
Sorry, the diff of this file is not supported yet
19687
-3.52%410
-4.65%