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

youzanyun-sdk-nodejs

Package Overview
Dependencies
Maintainers
1
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 1.3.0 to 1.4.0

4

api-client.js

@@ -28,3 +28,3 @@ /**

const Breakdown = require('./breakdown');
const { NEED_PREVENT_BREAKDOWN, OPEN_HOST, QA_OPEN_HOST } = require('./config');
const { NEED_PREVENT_BREAKDOWN, OPEN_HOST, QA_OPEN_HOST, PRE_OPEN_HOST } = require('./config');
const packageJson = require('./package.json');

@@ -35,3 +35,3 @@

this._httpClient = httpClient;
this._openHost = openHost || QA_OPEN_HOST;
this._openHost = openHost || PRE_OPEN_HOST;
this._tokenCache = new TokenCache();

@@ -38,0 +38,0 @@ this._breakdown = new Breakdown();

@@ -5,2 +5,4 @@ exports.OPEN_HOST = 'open.youzanyun.com';

exports.QA_OPEN_HOST = 'bifrost-gateway.qa.s.qima-inc.com';
exports.PRE_TOKEN_HOST = 'bifrost-oauth.pre.s.qima-inc.com';
exports.PRE_OPEN_HOST = 'open-pre.youzanyun.com';
/** 需要防击穿的场景 */

@@ -7,0 +9,0 @@ exports.NEED_PREVENT_BREAKDOWN = [

{
"name": "youzanyun-sdk-nodejs",
"version": "1.3.0",
"version": "1.4.0",
"description": "有赞云 nodejs sdk",

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

const config = require('./config');
const Type_GetCloudToolToken = 'authorization_code';
const Type_RefreshCloudToolToken = 'refresh_token';
const Type_RefreshCloudSelfToken = 'silent';
// const Type_GetCloudToolToken = 'authorization_code';
// const Type_RefreshCloudToolToken = 'refresh_token';
// const Type_RefreshCloudSelfToken = 'silent';
const Type_CloudFunction = 'cloud_function';

@@ -32,3 +32,3 @@

this.httpClient = httpClient;
this.requestTokenUrl = `https://${tokenHost || config.QA_TOKEN_HOST}/auth/token`;
this.requestTokenUrl = `https://${tokenHost || config.PRE_TOKEN_HOST}/auth/token`;
}

@@ -35,0 +35,0 @@

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