Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

youzanyun-sdk-nodejs

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youzanyun-sdk-nodejs - npm Package Compare versions

Comparing version 2.0.0-beta.4 to 2.0.0-beta.5

2

lib/http-client.js

@@ -75,2 +75,4 @@ "use strict";

res = this._doRequest(Object.assign(options, {
url: `${requestUrl.pathname}${requestUrl.search}`,
baseURL: this.proxyHost,
headers

@@ -77,0 +79,0 @@ }));

2

package.json
{
"name": "youzanyun-sdk-nodejs",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "有赞云 nodejs sdk",

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

@@ -12,12 +12,16 @@ const https = require('https');

const envProxyToken = env['YOUZAN_PROXY_TOKEN'] || env['youzan_proxy_token'];
const envNonProxyHosts = (env['YOUZAN_PROXY_NONPROXYHOSTS'] || env['youzan_proxy_nonProxyHosts'] || '').split(',');
const envNonProxyHosts = (
env['YOUZAN_PROXY_NONPROXYHOSTS'] ||
env['youzan_proxy_nonProxyHosts'] ||
''
).split(',');
class HttpClient {
constructor({
enableProxy = envEnableProxy,
proxyHost = envProxyHost,
proxyToken = envProxyToken,
nonProxyHosts = envNonProxyHosts,
rejectUnauthorized,
} = {}) {
enableProxy = envEnableProxy,
proxyHost = envProxyHost,
proxyToken = envProxyToken,
nonProxyHosts = envNonProxyHosts,
rejectUnauthorized,
} = {}) {
this.enableProxy = enableProxy;

@@ -65,2 +69,4 @@ this.proxyHost = proxyHost;

Object.assign(options, {
url: `${requestUrl.pathname}${requestUrl.search}`,
baseURL: this.proxyHost,
headers,

@@ -67,0 +73,0 @@ }),

@@ -8,3 +8,3 @@ process.env.OPENSDK_CLIENTID = 'a4a06f27443a541400';

const sdk = require('./src');
const sdk = require('./lib');

@@ -11,0 +11,0 @@ const http_main_handler = async () => {

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