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

azurite

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azurite - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

26

lib/routes/BlobRoute.js

@@ -23,13 +23,13 @@ 'use strict';

module.exports = (app) => {
app.route(`/${env.emulatedStorageAccountName}/:container/:blob`)
app.route(`/${env.emulatedStorageAccountName}/:container/*?`)
.get((req, res) => {
if (req.query.comp === 'blocklist') {
// GET BLockList
getBlockListHandler.process(req, res, req.params.container, req.params.blob);
getBlockListHandler.process(req, res, req.params.container, req.params[0]);
} else if (req.query.comp === 'metadata') {
// GET Blob Metadata
getBlobMetadataHandler.process(req, res, req.params.container, req.params.blob);
getBlobMetadataHandler.process(req, res, req.params.container, req.params[0]);
} else {
// GET Blob
getBlobHandler.process(req, res, req.params.container, req.params.blob);
getBlobHandler.process(req, res, req.params.container, req.params[0]);
}

@@ -39,3 +39,3 @@ })

// Get Blob Properties
getBlobPropertiesHandler.process(req, res, req.params.container, req.params.blob);
getBlobPropertiesHandler.process(req, res, req.params.container, req.params[0]);
})

@@ -47,17 +47,17 @@ .post((req, res) => {

if (req.query.comp === 'block') {
putBlockHandler.process(req, res, req.params.container, req.params.blob, req.query.blockid);
putBlockHandler.process(req, res, req.params.container, req.params[0], req.query.blockid);
} else if (req.query.comp === 'blocklist') {
putBlockListHandler.process(req, res, req.params.container, req.params.blob, req.body);
putBlockListHandler.process(req, res, req.params.container, req.params[0], req.body);
} else if (req.query.comp === 'page') {
putPageHandler.process(req, res, req.params.container, req.params.blob, req.body);
putPageHandler.process(req, res, req.params.container, req.params[0], req.body);
} else if (blobType === 'AppendBlob' && req.query.comp === 'appendblock') {
getPutAppendBlobHandler.process(req, res, req.params.container, req.params.blob, req.body);
getPutAppendBlobHandler.process(req, res, req.params.container, req.params[0], req.body);
} else if (blobType) {
putBlobHandler.process(req, res, req.params.container, req.params.blob, blobType);
putBlobHandler.process(req, res, req.params.container, req.params[0], blobType);
} else if (req.query.comp === 'metadata') {
// Set Blob Metadata
setBlobMetadataHandler.process(req, res, req.params.container, req.params.blob);
setBlobMetadataHandler.process(req, res, req.params.container, req.params[0]);
} else if (req.query.comp === 'properties') {
// Set Blob Properties
setBlobPropertiesHandler.process(req, res, req.params.container, req.params.blob);
setBlobPropertiesHandler.process(req, res, req.params.container, req.params[0]);
} else {

@@ -68,4 +68,4 @@ res.status(400).send('Not supported.');

.delete((req, res) => {
deleteBlobHandler.process(req, res, req.params.container, req.params.blob);
deleteBlobHandler.process(req, res, req.params.container, req.params[0]);
});
}
{
"name": "azurite",
"version": "0.6.1",
"version": "0.6.2",
"description": "A lightweight server clone of Azure Blob Storage that simulates most of the commands supported by it with minimal dependencies.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -9,3 +9,3 @@ # Azurite

# Installation
$ npm install -g Azurite
$ npm install -g azurite

@@ -12,0 +12,0 @@ $ azurite -l path/to/localfolder

@@ -122,3 +122,3 @@ const chai = require('chai'),

describe('Put BlockList', () => {
const putBlockListBlobName = 'putBlockListBlobName';
const putBlockListBlobName = 'dir/putBlockListBlobName';
it('should create a block blob from a list of blocks', () => {

@@ -125,0 +125,0 @@ const optionsBlockBlob = {

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