Comparing version 1.6.0 to 1.6.1
@@ -18,3 +18,3 @@ 'use strict'; | ||
res.set(response.httpProps); | ||
let xml = js2xmlparser.parse('SignedIdentifiers', response.payload); | ||
let xml = js2xmlparser.parse('SignedIdentifiers', response.proxy.original.signedIdentifiers || {}); | ||
xml = xml.replace(`<?xml version='1.0'?>`, `<?xml version="1.0" encoding="utf-8"?>`); | ||
@@ -21,0 +21,0 @@ res.status(200).send(xml); |
@@ -73,2 +73,32 @@ 'use strict'; | ||
} | ||
if (blob.original.snapshot) { | ||
modelBlob.Snapshot = blob.original.snapshotDate; | ||
} else { | ||
delete modelBlob.Snapshot; | ||
} | ||
if (blob.original.copyId) { | ||
modelBlob.Properties.CopyId = blob.original.copyId; | ||
modelBlob.Properties.CopyStatus = blob.original.copyStatus; | ||
modelBlob.Properties.CopySource = blob.original.copySource; | ||
modelBlob.Properties.CopyProgress = blob.original.copyProgress; | ||
modelBlob.Properties.CopyCompletionTime = blob.original.copyCompletionTime; | ||
blob.original.copyStatusDescription | ||
? modelBlob.Properties.CopyStatusDescription = blob.original.copyStatusDescription | ||
: delete modelBlob.Properties.CopyStatusDescription; | ||
} else { | ||
delete modelBlob.Properties.CopyId; | ||
delete modelBlob.Properties.CopyStatus; | ||
delete modelBlob.Properties.CopySource; | ||
delete modelBlob.Properties.CopyProgress; | ||
delete modelBlob.Properties.CopyCompletionTime; | ||
delete modelBlob.Properties.CopyStatusDescription; | ||
} | ||
this.CopyId; | ||
this.CopyStatus; | ||
this.CopySource; | ||
this.CopyProgress; | ||
this.CopyCompletionTime; | ||
this.CopyStatusDescription; | ||
modelBlob.Properties['Last-Modified'] = blob.lastModified(); | ||
@@ -75,0 +105,0 @@ modelBlob.Properties['Etag'] = blob.original.etag |
@@ -23,4 +23,3 @@ 'use strict'; | ||
this.Name = name; | ||
// Snapshot feature has not been implemented yet | ||
// this.Snapshot = ''; | ||
this.Snapshot; | ||
this.Properties = new Properties(blobType); | ||
@@ -46,2 +45,8 @@ this.Metadata = {}; | ||
this.ServerEncrypted = false; | ||
this.CopyId; | ||
this.CopyStatus; | ||
this.CopySource; | ||
this.CopyProgress; | ||
this.CopyCompletionTime; | ||
this.CopyStatusDescription; | ||
} | ||
@@ -48,0 +53,0 @@ } |
{ | ||
"name": "azurite", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"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": { |
# 1.0 | ||
## 1.6.1 | ||
- fixes [#123](https://github.com/arafato/azurite/issues/123): Blob Storage Bugfix | ||
- fixes [#122](https://github.com/arafato/azurite/issues/122): Blob Storage Bugfix | ||
## 1.6.0 | ||
@@ -3,0 +6,0 @@ - fixes [#121](https://github.com/arafato/azurite/issues/121): Queue Storage: Adds support for ListQueues |
301757
5756