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

cos-nodejs-sdk-v5

Package Overview
Dependencies
Maintainers
3
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cos-nodejs-sdk-v5 - npm Package Compare versions

Comparing version 2.0.15 to 2.0.16

2

demo/demo.js

@@ -43,3 +43,3 @@ var fs = require('fs');

cos.putBucket({
Bucket: 'testnew',
Bucket: 'test1',
Region: config.Region

@@ -46,0 +46,0 @@ }, function (err, data) {

{
"name": "cos-nodejs-sdk-v5",
"version": "2.0.15",
"version": "2.0.16",
"description": "cos nodejs sdk v5",

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

@@ -255,7 +255,6 @@ 'use strict';

// 兼容带有 AppId 的 Bucket
var appId, bucket = params.Bucket;
if (bucket && bucket.indexOf('-') > -1) {
var arr = bucket.split('-');
appId = arr[1];
bucket = arr[0];
var appId, m, bucket = params.Bucket;
if (bucket && (m = bucket.match(/^(.+)-(\d+)$/))) {
appId = m[2];
bucket = m[1];
params.AppId = appId;

@@ -262,0 +261,0 @@ params.Bucket = bucket;

@@ -168,3 +168,3 @@ var fs = require('fs');

}, function (err, data) {
assert.equal(true, data.Name === Bucket || data.Name === Bucket + '-' + config.AppId);
assert.equal(true, data.Name === Bucket + '-' + config.AppId);
assert.equal(data.Contents.constructor, Array);

@@ -171,0 +171,0 @@ done();

Sorry, the diff of this file is too big to display

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