New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mpserverless-sdk-core

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mpserverless-sdk-core - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

3

dist/index.d.ts

@@ -13,2 +13,3 @@ import Client from './client';

authToken?: string;
appAuthToken?: string;
}

@@ -31,2 +32,4 @@ export interface FunctionResponse<R> {

params: T & BaseParams;
appId?: string;
isvAppId?: string;
}

@@ -33,0 +36,0 @@ export interface ServerlessFunction {

@@ -83,6 +83,12 @@ "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 authToken = params.authToken, appAuthToken = params.appAuthToken, appId = params.appId, isvAppId = params.isvAppId;
delete params.appAuthToken;
delete params.appId;
delete params.isvAppId;
delete params.authToken;
var args = {
method: method,
params: __assign({ $config: {} }, params)
params: __assign({ $config: {} }, params),
appId: undefined,
isvAppId: undefined
};

@@ -95,2 +101,11 @@ if (notify && notify.url) {

}
if (appAuthToken) {
args.params.$config.appAuthToken = appAuthToken;
}
if (appId) {
args.appId = appId;
}
if (isvAppId) {
args.isvAppId = isvAppId;
}
if (env) {

@@ -97,0 +112,0 @@ args.params.$config.env = env;

2

package.json
{
"name": "mpserverless-sdk-core",
"version": "0.0.15",
"version": "0.0.16",
"description": "Alipay mini program Serverless SDK Core",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -17,2 +17,3 @@ import Client from './client';

authToken?: string;
appAuthToken?: string;
}

@@ -38,2 +39,4 @@

params: T & BaseParams;
appId?: string;
isvAppId?: string;
}

@@ -67,3 +70,7 @@

} = this.config;
const { authToken } = params;
const { authToken, appAuthToken, appId, isvAppId } = params;
delete params.appAuthToken;
delete params.appId;
delete params.isvAppId;
delete params.authToken;
const args = {

@@ -74,3 +81,5 @@ method,

...params,
}
},
appId: undefined,
isvAppId: undefined
};

@@ -85,2 +94,11 @@ if (notify && notify.url) {

}
if(appAuthToken) {
args.params.$config.appAuthToken = appAuthToken;
}
if(appId) {
args.appId = appId;
}
if(isvAppId) {
args.isvAppId = isvAppId;
}
if (env) {

@@ -87,0 +105,0 @@ args.params.$config.env = env;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc