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

alipay-cloud-sdk-test

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alipay-cloud-sdk-test - npm Package Compare versions

Comparing version 1.0.3 to 1.0.5

8

dist/client.d.ts

@@ -11,5 +11,2 @@ import * as $CloudKernel from 'alipay-cloud-sdk-kernel';

uniqueId: string;
constructor(map?: {
[key: string]: any;
});
static names(): {

@@ -21,6 +18,9 @@ [key: string]: string;

};
constructor(map?: {
[key: string]: any;
});
}
export default class Client {
constructor(config: $CloudKernel.Config);
detectContent(content: string): AlipaySecurityRiskContentDetectResponse;
detectContent(content: string): Promise<AlipaySecurityRiskContentDetectResponse>;
}

@@ -46,21 +46,9 @@ "use strict";

constructor(config) {
if (config.mpserverless) {
console.info("存在mpserverless");
}
else {
console.info("不存在mpserverless");
}
if (config.mpserverless.function) {
console.info("存在function");
}
else {
console.info("不存在function");
}
alipay_cloud_sdk_kernel_1.default.setConfig(config);
}
detectContent(content) {
async detectContent(content) {
let params = {
content: content,
};
return $tea.cast(alipay_cloud_sdk_kernel_1.default.invokeFunction("alipay.security.risk.content.detect", params), new AlipaySecurityRiskContentDetectResponse({}));
return $tea.cast(await alipay_cloud_sdk_kernel_1.default.invokeFunction("alipay.security.risk.content.detect", params), new AlipaySecurityRiskContentDetectResponse({}));
}

@@ -67,0 +55,0 @@ }

{
"name": "alipay-cloud-sdk-test",
"version": "1.0.3",
"version": "1.0.5",
"description": "Alipay Cloud SDK for Test",

@@ -15,3 +15,3 @@ "main": "dist/client.js",

"@alicloud/tea-typescript": "^1.5.1",
"alipay-cloud-sdk-kernel": "^1.1.2"
"alipay-cloud-sdk-kernel": "^1.1.3"
},

@@ -18,0 +18,0 @@ "files": [

// This file is auto-generated, don't edit it
import CloudKernel, * as $CloudKernel from 'alipay-cloud-sdk-kernel';
import { Readable } from 'stream';
import * as $tea from '@alicloud/tea-typescript';

@@ -13,7 +14,2 @@

uniqueId: string;
constructor(map?: { [key: string]: any }) {
super(map);
}
static names(): { [key: string]: string } {

@@ -42,2 +38,6 @@ return {

}
constructor(map?: { [key: string]: any }) {
super(map);
}
}

@@ -49,14 +49,2 @@

constructor(config: $CloudKernel.Config) {
if (config.mpserverless) {
console.info("存在mpserverless");
} else {
console.info("不存在mpserverless");
}
if (config.mpserverless.function) {
console.info("存在function");
} else {
console.info("不存在function");
}
CloudKernel.setConfig(config);

@@ -66,9 +54,9 @@ }

detectContent(content: string): AlipaySecurityRiskContentDetectResponse {
let params: { [key: string]: any } = {
async detectContent(content: string): Promise<AlipaySecurityRiskContentDetectResponse> {
let params : {[key: string ]: any} = {
content: content,
};
return $tea.cast<AlipaySecurityRiskContentDetectResponse>(CloudKernel.invokeFunction("alipay.security.risk.content.detect", params), new AlipaySecurityRiskContentDetectResponse({}));
return $tea.cast<AlipaySecurityRiskContentDetectResponse>(await CloudKernel.invokeFunction("alipay.security.risk.content.detect", params), new AlipaySecurityRiskContentDetectResponse({}));
}
}

Sorry, the diff of this file is not supported yet

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