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
8
Versions
85
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 2.0.0-beta.4 to 2.0.0-beta.5

6

lib/cloudbase.js

@@ -85,3 +85,3 @@ "use strict";

// 设置旧实例
CloudBase.oldInstance = tcb_admin_node_1.default.init(config);
this.oldInstance = tcb_admin_node_1.default.init(config);
}

@@ -99,3 +99,3 @@ database(dbConfig = {}) {

}
return new database_1.Db(Object.assign(Object.assign(Object.assign({}, this.config), dbConfig), { _oldDbInstance: CloudBase.oldInstance.database(dbConfig) }));
return new database_1.Db(Object.assign(Object.assign(Object.assign({}, this.config), dbConfig), { _oldDbInstance: this.oldInstance.database(dbConfig) }));
}

@@ -201,3 +201,3 @@ /**

// 默认使用旧tcb实例对象
const oldInstance = CloudBase.oldInstance;
const oldInstance = self.oldInstance;
const functionName = func.name;

@@ -204,0 +204,0 @@ const oldFunc = oldInstance[functionName];

{
"name": "@cloudbase/node-sdk",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"description": "tencent cloud base server sdk for node.js",

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

@@ -25,3 +25,2 @@ import { Db } from '@cloudbase/database'

export class CloudBase {
public static oldInstance: any
public static scfContext: IContext

@@ -138,3 +137,3 @@ public static parseContext(context: IContext): IContext {

// 设置旧实例
CloudBase.oldInstance = tcb.init(config)
this.oldInstance = tcb.init(config)
}

@@ -158,3 +157,3 @@

...dbConfig,
_oldDbInstance: CloudBase.oldInstance.database(dbConfig)
_oldDbInstance: this.oldInstance.database(dbConfig)
})

@@ -282,3 +281,3 @@ }

// 默认使用旧tcb实例对象
const oldInstance = CloudBase.oldInstance
const oldInstance = self.oldInstance
const functionName = func.name

@@ -285,0 +284,0 @@

@@ -5,3 +5,2 @@ import { Db } from '@cloudbase/database';

export declare class CloudBase {
static oldInstance: any;
static scfContext: IContext;

@@ -8,0 +7,0 @@ static parseContext(context: IContext): IContext;

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