azure-storage-promisified
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.2.0"></a> | ||
# [0.2.0](https://github.com/rand0me/azure-storage-promisified/compare/v0.1.2...v0.2.0) (2017-10-06) | ||
### Features | ||
* **TableService:** Implement "deleteEntity" method ([7abaf40](https://github.com/rand0me/azure-storage-promisified/commit/7abaf40)) | ||
<a name="0.1.2"></a> | ||
@@ -7,0 +17,0 @@ ## [0.1.2](https://github.com/rand0me/azure-storage-promisified/compare/v0.1.1...v0.1.2) (2017-10-04) |
@@ -11,2 +11,3 @@ import { TableService, common, services } from 'azure-storage'; | ||
queryEntities<T>(query: services.table.TableQuery, token: TableService.TableContinuationToken): Promise<{}>; | ||
deleteEntity(PartitionKey: string, RowKey: string): Promise<{}>; | ||
} |
@@ -48,2 +48,10 @@ "use strict"; | ||
}; | ||
AzureTable.prototype.deleteEntity = function (PartitionKey, RowKey) { | ||
var _this = this; | ||
return new Promise(function (resolve, reject) { | ||
return _this.service.deleteEntity(_this.table, { PartitionKey: PartitionKey, RowKey: RowKey }, function (err, result) { | ||
return err ? reject(err) : resolve(result); | ||
}); | ||
}); | ||
}; | ||
return AzureTable; | ||
@@ -50,0 +58,0 @@ }()); |
{ | ||
"name": "azure-storage-promisified", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Azure Storage with Promises", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
26759
103