mpserverless-sdk-core
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -12,2 +12,3 @@ import Client from './client'; | ||
env?: Env; | ||
authToken?: string; | ||
} | ||
@@ -14,0 +15,0 @@ export interface FunctionResponse<R> { |
@@ -83,2 +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; | ||
var args = { | ||
@@ -91,2 +92,5 @@ method: method, | ||
} | ||
if (authToken) { | ||
args.params.$config.authToken = authToken; | ||
} | ||
if (env) { | ||
@@ -93,0 +97,0 @@ args.params.$config.env = env; |
{ | ||
"name": "mpserverless-sdk-core", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Alipay mini program Serverless SDK Core", | ||
@@ -11,3 +11,3 @@ "main": "dist/index.js", | ||
}, | ||
"author": "zhongyu", | ||
"author": "dersoncheng", | ||
"license": "ISC", | ||
@@ -20,3 +20,10 @@ "dependencies": { | ||
"src" | ||
] | ||
], | ||
"devDependencies": { | ||
"@types/node": "^12.12.26", | ||
"nyc": "^15.0.0", | ||
"source-map-support": "^0.5.16", | ||
"ts-node": "^8.6.2", | ||
"typescript": "^3.7.5" | ||
} | ||
} |
// This file is auto-generated, don't edit it | ||
import { Readable } from 'stream'; | ||
import * as $tea from '@alicloud/tea-typescript'; | ||
@@ -4,0 +3,0 @@ |
@@ -16,2 +16,3 @@ import Client from './client'; | ||
env?: Env; | ||
authToken?: string; | ||
} | ||
@@ -65,2 +66,3 @@ | ||
} = this.config; | ||
const { authToken } = params; | ||
const args = { | ||
@@ -78,2 +80,5 @@ method, | ||
} | ||
if(authToken) { | ||
args.params.$config.authToken = authToken; | ||
} | ||
if (env) { | ||
@@ -80,0 +85,0 @@ args.params.$config.env = env; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18924
394
5
2