Socket
Socket
Sign inDemoInstall

@alicloud/tea-util

Package Overview
Dependencies
2
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.4 to 1.4.5

3

ChangeLog.txt

@@ -0,1 +1,4 @@

2022-11-16 Version: 1.4.5
1. Support ca params for server and client
2020-03-03 Version: 1.2.3

@@ -2,0 +5,0 @@ 1. Release version 1.2.3

@@ -7,2 +7,5 @@ /// <reference types="node" />

ignoreSSL?: boolean;
key?: string;
cert?: string;
ca?: string;
maxAttempts?: number;

@@ -9,0 +12,0 @@ backoffPolicy?: string;

@@ -39,2 +39,5 @@ "use strict";

ignoreSSL: 'ignoreSSL',
key: 'key',
cert: 'cert',
ca: 'ca',
maxAttempts: 'max_attempts',

@@ -56,2 +59,5 @@ backoffPolicy: 'backoff_policy',

ignoreSSL: 'boolean',
key: 'string',
cert: 'string',
ca: 'string',
maxAttempts: 'number',

@@ -58,0 +64,0 @@ backoffPolicy: 'string',

2

package.json
{
"name": "@alicloud/tea-util",
"version": "1.4.4",
"version": "1.4.5",
"description": "",

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

@@ -11,2 +11,5 @@ import { Readable } from 'stream';

ignoreSSL?: boolean;
key?: string;
cert?: string;
ca?: string;
maxAttempts?: number;

@@ -26,2 +29,5 @@ backoffPolicy?: string;

ignoreSSL: 'ignoreSSL',
key: 'key',
cert: 'cert',
ca: 'ca',
maxAttempts: 'max_attempts',

@@ -44,2 +50,5 @@ backoffPolicy: 'backoff_policy',

ignoreSSL: 'boolean',
key: 'string',
cert: 'string',
ca: 'string',
maxAttempts: 'number',

@@ -137,3 +146,3 @@ backoffPolicy: 'string',

static toFormString(val: {[key: string]: any}): string {
static toFormString(val: { [key: string]: any }): string {
return querystring.stringify(val);

@@ -177,3 +186,3 @@ }

static stringifyMapValue(m: {[key: string]: any} ): {[key: string]: string} {
static stringifyMapValue(m: { [key: string]: any }): { [key: string]: string } {
if (!m) {

@@ -183,3 +192,3 @@ return m;

const result: {[key: string]: string} = {};
const result: { [key: string]: string } = {};
for (const [key, value] of Object.entries(m)) {

@@ -194,3 +203,3 @@ if (typeof value === 'undefined' || value === null) {

static anyifyMapValue(m: { [key: string]: string }): {[key: string]: any } {
static anyifyMapValue(m: { [key: string]: string }): { [key: string]: any } {
return m;

@@ -220,5 +229,5 @@ }

static assertAsMap(value: any): {[key: string]: any} {
static assertAsMap(value: any): { [key: string]: any } {
if (value && typeof value === 'object' && !Array.isArray(value)) {
return value as {[key: string]: any};
return value as { [key: string]: any };
}

@@ -243,3 +252,3 @@ throw new Error(`The value is not a object`);

static getUserAgent(userAgent: string): string {
if(!userAgent || !userAgent.length){
if (!userAgent || !userAgent.length) {
return DEFAULT_USER_AGENT;

@@ -266,3 +275,3 @@ }

static validateModel(m: $tea.Model): void {
}

@@ -269,0 +278,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc