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

@cloudbase/node-sdk

Package Overview
Dependencies
Maintainers
15
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudbase/node-sdk - npm Package Compare versions

Comparing version 3.5.0 to 3.6.0

10

dist/cloudbase.js

@@ -97,4 +97,10 @@ "use strict";

this.extensionMap = new Map();
// 初始化数据模型等 SDK 方法
wx_cloud_client_sdk_1.default.init(this);
// NOTE:try-catch 为防止 init 报错
try {
// 初始化数据模型等 SDK 方法
wx_cloud_client_sdk_1.default.init(this);
}
catch (e) {
// ignore
}
}

@@ -101,0 +107,0 @@ logger() {

10

dist/utils/version.js

@@ -30,4 +30,12 @@ "use strict";

function loadPackage() {
return JSON.parse(fs.readFileSync(path.join(__dirname, '../../package.json')).toString());
try {
return JSON.parse(fs.readFileSync(path.join(__dirname, '../../package.json')).toString());
}
catch (e) {
// 某些场景下可能无法成功加载到 package.json 文件
}
return {
version: 'unknow'
};
}
exports.version = loadPackage().version;
{
"name": "@cloudbase/node-sdk",
"version": "3.5.0",
"version": "3.6.0",
"description": "tencent cloud base server sdk for node.js",

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

@@ -135,4 +135,9 @@ import axios from 'axios'

// 初始化数据模型等 SDK 方法
wxCloudClient.init(this)
// NOTE:try-catch 为防止 init 报错
try {
// 初始化数据模型等 SDK 方法
wxCloudClient.init(this)
} catch (e) {
// ignore
}
}

@@ -139,0 +144,0 @@

@@ -5,5 +5,12 @@ import * as fs from 'fs'

function loadPackage() {
return JSON.parse(fs.readFileSync(path.join(__dirname, '../../package.json')).toString())
try {
return JSON.parse(fs.readFileSync(path.join(__dirname, '../../package.json')).toString())
} catch (e) {
// 某些场景下可能无法成功加载到 package.json 文件
}
return {
version: 'unknow'
}
}
export const version = loadPackage().version
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