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

fast-azure-storage

Package Overview
Dependencies
Maintainers
8
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-azure-storage - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

23

lib/xml-parser.js

@@ -25,4 +25,7 @@ const xml2js = require('xml2js');

return obj;
}
};
// ensure a thing is an array, returning an empty array if it's undefined
const array = obj => obj ? obj : [];
/* Parse queue error, return: {message, code, detail} */

@@ -67,3 +70,3 @@ exports.parseError = function parseError(res) {

const queues = getValue(xml, 'EnumerationResults', 'Queues', 0, 'Queue');
const queues = array(getValue(xml, 'EnumerationResults', 'Queues', 0, 'Queue'));

@@ -98,3 +101,3 @@ const result = {

const xml = parseString(res.payload);
const msgs = getValue(xml, 'QueueMessagesList', 'QueueMessage');
const msgs = array(getValue(xml, 'QueueMessagesList', 'QueueMessage'));
return msgs.map(function(msg) {

@@ -114,3 +117,3 @@ return {

const xml = parseString(res.payload);
const msgs = getValue(xml, 'QueueMessagesList', 'QueueMessage');
const msgs = array(getValue(xml, 'QueueMessagesList', 'QueueMessage'));
return msgs.map(function(msg) {

@@ -133,3 +136,3 @@ return {

const xml = parseString(res.payload);
const containers = getValue(xml, 'EnumerationResults', 'Containers', 0, 'Container');
const containers = array(getValue(xml, 'EnumerationResults', 'Containers', 0, 'Container'));

@@ -201,3 +204,3 @@ // Construct results

const xml = parseString(response.payload);
const signedIdentifiers = getValue(xml, 'SignedIdentifiers', 'SignedIdentifier');
const signedIdentifiers = array(getValue(xml, 'SignedIdentifiers', 'SignedIdentifier'));

@@ -247,3 +250,3 @@ // Construct results

const xml = parseString(response.payload);
const blobs = getValue(xml, 'EnumerationResults', 'Blobs', 0, 'Blob');
const blobs = array(getValue(xml, 'EnumerationResults', 'Blobs', 0, 'Blob'));

@@ -343,3 +346,3 @@ const result = {blobs: []};

const committedBlocks = getValue(xml, 'BlockList', 'CommittedBlocks', 0, 'Block');
const committedBlocks = array(getValue(xml, 'BlockList', 'CommittedBlocks', 0, 'Block'));
if (committedBlocks) {

@@ -349,3 +352,3 @@ result.committedBlocks = committedBlocks.map(getBlockInfo);

const uncommittedBlocks = getValue(xml, 'BlockList', 'UncommittedBlocks', 0, 'Block');
const uncommittedBlocks = array(getValue(xml, 'BlockList', 'UncommittedBlocks', 0, 'Block'));
if (uncommittedBlocks) {

@@ -423,3 +426,3 @@ result.uncommittedBlocks = uncommittedBlocks.map(getBlockInfo);

const corsRules = getValue(xml, 'StorageServiceProperties', 'Cors', 0, 'CorsRule');
const corsRules = array(getValue(xml, 'StorageServiceProperties', 'Cors', 0, 'CorsRule'));
if (corsRules) {

@@ -426,0 +429,0 @@ result.corsRules = corsRules.map(function(rule) {

{
"name": "fast-azure-storage",
"version": "3.0.0",
"version": "3.0.1",
"author": "Jonas Finnemann Jensen <jopsen@gmail.com>, Elena Solomon <elenasolomon28@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Fast client library for azure storage services",

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