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

azure-blob-storage

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-blob-storage - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

36

lib/datablob.js

@@ -120,4 +120,4 @@ 'use strict';

debug('Failed to validate the blob content against schema with id: \n ' + this.container.schema.id + ', errors: ' + result.errors);
error = new _customerrors.SchemaValidationError('Failed to validate the blob content against schema with id: \n ' + this.container.schema.id);
debug('Failed to validate the blob content against schema with id:\n ' + this.container.schema.id + ', errors: ' + result.errors);
error = new _customerrors.SchemaValidationError('Failed to validate the blob content against schema with id:\n ' + this.container.schema.id);

@@ -469,11 +469,13 @@ error.content = content;

clonedContent = _lodash2.default.cloneDeep(content);
_context6.next = 7;
return modifier(clonedContent);
modifier(clonedContent);
case 7:
modifiedContent = clonedContent;
// 3. validate against the schema
_context6.next = 9;
_context6.next = 10;
return _this2._validateJSON(clonedContent);
case 9:
case 10:

@@ -483,14 +485,14 @@ // 4. update the resource

_context6.next = 12;
_context6.next = 13;
return _this2.blobService.putBlob(_this2.container.name, _this2.name, options, _this2._serialize(modifiedContent));
case 12:
case 13:
result = _context6.sent;
_this2.eTag = result.eTag;
_context6.next = 27;
_context6.next = 28;
break;
case 16:
_context6.prev = 16;
case 17:
_context6.prev = 17;
_context6.t0 = _context6['catch'](0);

@@ -507,3 +509,3 @@

if (!(attemptsLeft === 0)) {
_context6.next = 23;
_context6.next = 24;
break;

@@ -515,11 +517,11 @@ }

case 23:
_context6.next = 25;
case 24:
_context6.next = 26;
return (0, _utils.sleep)((0, _utils.computeDelay)(attemptsLeft, _this2.container.updateDelayFactor, _this2.container.updateRandomizationFactor, _this2.container.updateMaxDelay));
case 25:
_context6.next = 27;
case 26:
_context6.next = 28;
return attemptModify();
case 27:
case 28:
case 'end':

@@ -529,3 +531,3 @@ return _context6.stop();

}
}, _callee6, _this2, [[0, 16]]);
}, _callee6, _this2, [[0, 17]]);
}));

@@ -532,0 +534,0 @@

{
"name": "azure-blob-storage",
"version": "2.0.3",
"version": "2.1.0",
"author": "Elena Solomon <elenasolomon28@gmail.com>",

@@ -5,0 +5,0 @@ "description": "azure-blob-storage",

@@ -50,5 +50,5 @@ import assert from 'assert';

if (!result.valid) {
debug(`Failed to validate the blob content against schema with id:
debug(`Failed to validate the blob content against schema with id:
${this.container.schema.id}, errors: ${result.errors}`);
let error = new SchemaValidationError(`Failed to validate the blob content against schema with id:
let error = new SchemaValidationError(`Failed to validate the blob content against schema with id:
${this.container.schema.id}`);

@@ -220,3 +220,3 @@ error.content = content;

let clonedContent = _.cloneDeep(content);
modifier(clonedContent);
await modifier(clonedContent);
modifiedContent = clonedContent;

@@ -223,0 +223,0 @@

Sorry, the diff of this file is not supported yet

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