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.10.1 to 0.10.2

bin/blob

11

lib/cli.js

@@ -20,5 +20,12 @@ 'use strict';

art += 'Azurite, Version ' + version + os.EOL;
art += 'A lightweight server clone of Azure Blob Storage' + os.EOL;
art += `Azurite is listening on ${env.port}` + os.EOL;
art += 'A lightweight server clone of Azure Storage' + os.EOL;
console.log(chalk.cyan(art));
}
exports.blobStorageStatus = () => {
console.log(chalk.cyan(`Azure Blob Storage Emulator listening on port ${env.blobStoragePort}`));
}
exports.queueStorageStatus = () => {
console.log(chalk.cyan(`Azure Queue Storage Emulator listening on port ${env.queueStoragePort}`));
}

14

lib/env.js

@@ -19,9 +19,13 @@ 'use strict';

initialized = true;
this.azuriteRootPath = options.l || options.location || process.cwd();
this.azuriteWorkspacePath = options.l || options.location || process.cwd();
this.azuriteRootPath = path.join(__dirname, '..');
this.silent = options.s || options.silent;
this.dbName = '__azurite_db__.json';
this.localStoragePath = path.join(this.azuriteRootPath, '__blobstorage__');
this.azuriteDBPath = path.join(this.azuriteRootPath, this.dbName);
this.localStoragePath = path.join(this.azuriteWorkspacePath, '__blobstorage__');
this.azuriteDBPath = path.join(this.azuriteWorkspacePath, this.dbName);
this.emulatedStorageAccountName = 'devstoreaccount1';
this.port = options.p || options.port || 10000;
this.blobStoragePort = options.p || options.blobPort || 10000;
this.queueStoragePort = options.q || options.queuebPort || 10001;
this.blobModulePath = path.join(this.azuriteRootPath, 'bin', 'blob');
this.queueModulePath = path.join(this.azuriteRootPath, 'bin', 'queue');
return fs.mkdirsAsync(this.localStoragePath)

@@ -39,3 +43,3 @@ }

webStorageUri(id) {
return `http://localhost:${this.port}/blobs/${id}`;
return `http://localhost:${this.blobStoragePort}/blobs/${id}`;
}

@@ -42,0 +46,0 @@

@@ -16,2 +16,3 @@ 'use strict';

module.exports = {
// BLOB
ContainerNotFound: new ErrorCode('ContainerNotFound', 404, 'The specified container does not exist.'),

@@ -53,3 +54,6 @@ ContainerAlreadyExists: new ErrorCode('ContainerAlreadyExists', 409, 'The specified container already exists.'),

NoPendingCopyOperation: new ErrorCode('NoPendingCopyOperation', 409, 'There is currently no pending copy operation.'),
InvalidBlockList: new ErrorCode('InvalidBlockList', 400, 'The specified block list is invalid.')
InvalidBlockList: new ErrorCode('InvalidBlockList', 400, 'The specified block list is invalid.'),
// QUEUE
OutOfRangeInput: new ErrorCode('OutOfRangeInput', 400, 'One of the request inputs is out of range.')
}

@@ -18,11 +18,11 @@ 'use strict';

BlockListType = require('./Constants').BlockListType,
StorageEntityGenerator = require('./model/StorageEntityGenerator'),
AzuriteBlobRequest = require('./model/AzuriteBlobRequest'),
StorageEntityGenerator = require('./model/blob/StorageEntityGenerator'),
AzuriteBlobRequest = require('./model/blob/AzuriteBlobRequest'),
CombinedStream = require('combined-stream'),
ContainerProxy = require('./model/ContainerProxy'),
BlobProxy = require('./model/BlobProxy'),
N = require('./model/HttpHeaderNames'),
ContainerRequest = require('./model/AzuriteContainerRequest'),
AzuriteResponse = require('./model/AzuriteResponse'),
BlobRequest = require('./model/AzuriteBlobRequest'),
ContainerProxy = require('./model/blob/ContainerProxy'),
BlobProxy = require('./model/blob/BlobProxy'),
N = require('./model/blob/HttpHeaderNames'),
ContainerRequest = require('./model/blob/AzuriteContainerRequest'),
AzuriteResponse = require('./model/blob/AzuriteResponse'),
BlobRequest = require('./model/blob/AzuriteBlobRequest'),
SnapshotTimeManager = require('./SnapshotTimeManager'),

@@ -169,3 +169,3 @@ CopyOperationsManager = require('./CopyOperationsManager'),

});
const includeParams = query.include.split(',');
const includeParams = query.include ? query.include.split(',') : [];
if (!includeParams.includes('snapshots')) {

@@ -172,0 +172,0 @@ condition.push({

{
"name": "azurite",
"version": "0.10.1",
"version": "0.10.2",
"description": "A lightweight server clone of Azure Blob Storage that simulates most of the commands supported by it with minimal dependencies.",

@@ -16,3 +16,3 @@ "scripts": {

},
"main": "lib/Azurite.js",
"main": "./bin/azurite",
"bin": {

@@ -19,0 +19,0 @@ "azurite": "./bin/azurite"

# 0.10
## 0.10.2
- fixes [#95](https://github.com/arafato/azurite/issues/95)
## 0.10.1

@@ -3,0 +5,0 @@ - fixes [#93](https://github.com/arafato/azurite/issues/93)

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

fs = BbPromise.promisifyAll(require("fs-extra")),
Azurite = require('./../lib/Azurite'),
Azurite = require('./../lib/AzuriteBlob'),
rp = require('request-promise'),

@@ -10,0 +10,0 @@ path = require('path');

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

fs = BbPromise.promisifyAll(require("fs-extra")),
Azurite = require('./../lib/Azurite'),
Azurite = require('./../lib/AzuriteBlob'),
rp = require('request-promise'),

@@ -9,0 +9,0 @@ path = require('path');

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