New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.9.2 to 0.9.3

44

lib/StorageManager.js

@@ -378,6 +378,6 @@ 'use strict';

validationContext.run(BlobLeaseUsageValidation, {
usage: 'write',
leaseId: options.blob.httpProps['x-ms-lease-id'],
blob: (parentBlobResult.length === 0) ? undefined : parentBlobResult[0]
}, parentBlobResult.length === 0); // skip if blob has not been created yet
usage: 'write',
leaseId: options.blob.httpProps['x-ms-lease-id'],
blob: (parentBlobResult.length === 0) ? undefined : parentBlobResult[0]
}, parentBlobResult.length === 0); // skip if blob has not been created yet

@@ -465,6 +465,6 @@ delete options.blob.httpProps['Content-Length'];

validationContext.run(BlobLeaseUsageValidation, {
usage: 'write',
leaseId: blob.httpProps['x-ms-lease-id'],
blob: (blobResult.length === 0) ? undefined : blobResult[0]
}, blobResult.length === 0); // Skip if blob has not been created yet
usage: 'write',
leaseId: blob.httpProps['x-ms-lease-id'],
blob: (blobResult.length === 0) ? undefined : blobResult[0]
}, blobResult.length === 0); // Skip if blob has not been created yet

@@ -591,6 +591,6 @@ delete blob.httpProps['Content-Length'];

validationContext.run(BlobLeaseUsageValidation, {
usage: 'write',
leaseId: blob.httpProps['x-ms-lease-id'],
blob: blobToUpdate
});
usage: 'write',
leaseId: blob.httpProps['x-ms-lease-id'],
blob: blobToUpdate
});

@@ -617,2 +617,6 @@ blobToUpdate.metaProps = blob.metaProps;

collection: this.db.getCollection(containerName)
})
.run(BlobCommittedVal, {
requestBlob: requestBlob,
collection: this.db.getCollection(containerName)
});

@@ -625,6 +629,6 @@ const res = this._getCollectionAndBlob(containerName, requestBlob.publicName()),

validationContext.run(BlobLeaseUsageValidation, {
usage: 'read',
leaseId: requestBlob.httpProps['x-ms-lease-id'],
blob: blob
});
usage: 'read',
leaseId: requestBlob.httpProps['x-ms-lease-id'],
blob: blob
});
// Since auto-update of LokiJS is active, we clone httpProps.

@@ -661,6 +665,6 @@ // Otherwise attributes such as Content-Length would be updated and possibly used for

validationContext.run(BlobLeaseUsageValidation, {
usage: 'write',
leaseId: blob.httpProps['x-ms-lease-id'],
blob: blobToUpdate
});
usage: 'write',
leaseId: blob.httpProps['x-ms-lease-id'],
blob: blobToUpdate
});

@@ -667,0 +671,0 @@ blobToUpdate.httpProps = blob.httpProps;

{
"name": "azurite",
"version": "0.9.2",
"version": "0.9.3",
"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": {

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