diff --git a/docs/classes/Agent.html b/docs/classes/Agent.html index 59e79a2..75fbc87 100644 --- a/docs/classes/Agent.html +++ b/docs/classes/Agent.html @@ -21,7 +21,7 @@

  • diff --git a/docs/classes/Blob.html b/docs/classes/Blob.html index 03c3139..02d8729 100644 --- a/docs/classes/Blob.html +++ b/docs/classes/Blob.html @@ -21,7 +21,7 @@

  • @@ -159,7 +159,7 @@

    Constructor

    Defined in - lib/blob.js:90 + lib/blob.js:89

    @@ -275,7 +275,7 @@

    Methods

    Defined in - lib/blob.js:2385 + lib/blob.js:2395

    @@ -506,7 +506,7 @@

    Returns:

    Defined in - lib/blob.js:711 + lib/blob.js:719

    @@ -599,7 +599,7 @@

    Returns:

    Defined in - lib/blob.js:2073 + lib/blob.js:2083

    @@ -698,7 +698,7 @@

    Returns:

    Defined in - lib/blob.js:884 + lib/blob.js:892

    @@ -789,7 +789,7 @@

    Returns:

    Defined in - lib/blob.js:1646 + lib/blob.js:1654

    @@ -859,6 +859,7 @@

    Returns:

    {
        eTag: '...',                    // The entity tag of the blob
        lastModified: '...',            // The date/time the blob was last modified.
    +   contentType: '...',             // The content type specified for the blob
        contentMD5: '...',              // The MD5 hash fo the blob
        contentEncoding: '...',         // The content encoding of the blob
        contentLanguage: '...',         // The content language of the blob
    @@ -907,7 +908,7 @@ 

    Returns:

    Defined in - lib/blob.js:1953 + lib/blob.js:1963

    @@ -1020,7 +1021,7 @@

    Returns:

    Defined in - lib/blob.js:1717 + lib/blob.js:1727

    @@ -1143,7 +1144,7 @@

    Returns:

    Defined in - lib/blob.js:2363 + lib/blob.js:2373

    @@ -1236,7 +1237,7 @@

    Returns:

    Defined in - lib/blob.js:2293 + lib/blob.js:2303

    @@ -1348,7 +1349,7 @@

    Returns:

    Defined in - lib/blob.js:1065 + lib/blob.js:1073

    @@ -1461,7 +1462,7 @@

    Returns:

    Defined in - lib/blob.js:835 + lib/blob.js:843

    @@ -1550,7 +1551,7 @@

    Returns:

    Defined in - lib/blob.js:990 + lib/blob.js:998

    @@ -1642,7 +1643,7 @@

    Returns:

    Defined in - lib/blob.js:648 + lib/blob.js:656

    @@ -1733,7 +1734,7 @@

    Returns:

    Defined in - lib/blob.js:1365 + lib/blob.js:1373

    @@ -1834,7 +1835,7 @@

    Returns:

    Defined in - lib/blob.js:1264 + lib/blob.js:1272

    @@ -1962,7 +1963,7 @@

    Returns:

    Defined in - lib/blob.js:929 + lib/blob.js:937

    @@ -2063,7 +2064,7 @@

    Returns:

    Defined in - lib/blob.js:1477 + lib/blob.js:1485

    @@ -2205,7 +2206,7 @@

    Returns:

    Defined in - lib/blob.js:2111 + lib/blob.js:2121

    @@ -2317,7 +2318,7 @@

    Returns:

    Defined in - lib/blob.js:2177 + lib/blob.js:2187

    @@ -2692,7 +2693,7 @@

    Returns:

    Defined in - lib/blob.js:2013 + lib/blob.js:2023

    @@ -2811,7 +2812,7 @@

    Returns:

    Defined in - lib/blob.js:1830 + lib/blob.js:1840

    @@ -2958,7 +2959,7 @@

    Returns:

    Defined in - lib/blob.js:1138 + lib/blob.js:1146

    @@ -3080,7 +3081,7 @@

    Returns:

    Defined in - lib/blob.js:772 + lib/blob.js:780

    @@ -3178,7 +3179,7 @@

    Returns:

    Defined in - lib/blob.js:442 + lib/blob.js:450

    diff --git a/docs/classes/Queue.html b/docs/classes/Queue.html index 216aec6..89a7ff4 100644 --- a/docs/classes/Queue.html +++ b/docs/classes/Queue.html @@ -21,7 +21,7 @@

  • @@ -146,7 +146,7 @@

    Constructor

    Defined in - lib/queue.js:51 + lib/queue.js:50

    @@ -361,7 +361,7 @@

    Returns:

    Defined in - lib/queue.js:687 + lib/queue.js:695

    @@ -430,7 +430,7 @@

    Returns:

    Defined in - lib/queue.js:391 + lib/queue.js:399

    @@ -513,7 +513,7 @@

    Returns:

    Defined in - lib/queue.js:657 + lib/queue.js:665

    @@ -600,7 +600,7 @@

    Returns:

    Defined in - lib/queue.js:426 + lib/queue.js:434

    @@ -668,7 +668,7 @@

    Returns:

    Defined in - lib/queue.js:605 + lib/queue.js:613

    @@ -766,7 +766,7 @@

    Returns:

    Defined in - lib/queue.js:443 + lib/queue.js:451

    @@ -842,7 +842,7 @@

    Returns:

    Defined in - lib/queue.js:339 + lib/queue.js:347

    @@ -928,7 +928,7 @@

    Returns:

    Defined in - lib/queue.js:561 + lib/queue.js:569

    @@ -1027,7 +1027,7 @@

    Returns:

    Defined in - lib/queue.js:516 + lib/queue.js:524

    @@ -1338,7 +1338,7 @@

    Returns:

    Defined in - lib/queue.js:483 + lib/queue.js:491

    @@ -1425,7 +1425,7 @@

    Returns:

    Defined in - lib/queue.js:708 + lib/queue.js:716

    diff --git a/docs/classes/Table.html b/docs/classes/Table.html index e639567..278d5ba 100644 --- a/docs/classes/Table.html +++ b/docs/classes/Table.html @@ -21,7 +21,7 @@

  • @@ -152,7 +152,7 @@

    Constructor

    Defined in - lib/table.js:70 + lib/table.js:69

    @@ -374,7 +374,7 @@

    Returns:

    Defined in - lib/table.js:461 + lib/table.js:472

    @@ -446,7 +446,7 @@

    Returns:

    Defined in - lib/table.js:839 + lib/table.js:853

    @@ -552,7 +552,7 @@

    Returns:

    Defined in - lib/table.js:484 + lib/table.js:495

    @@ -615,7 +615,7 @@

    Returns:

    Defined in - lib/table.js:502 + lib/table.js:513

    @@ -696,7 +696,7 @@

    Returns:

    Defined in - lib/table.js:604 + lib/table.js:615

    @@ -802,7 +802,7 @@

    Returns:

    Defined in - lib/table.js:727 + lib/table.js:741

    @@ -884,7 +884,7 @@

    Returns:

    Defined in - lib/table.js:649 + lib/table.js:660

    @@ -980,7 +980,7 @@

    Returns:

    Defined in - lib/table.js:422 + lib/table.js:433

    @@ -1275,7 +1275,7 @@

    Returns:

    Defined in - lib/table.js:758 + lib/table.js:772

    @@ -1383,7 +1383,7 @@

    Operators

    Defined in - lib/table.js:528 + lib/table.js:539

    diff --git a/docs/data.json b/docs/data.json index 2c6a047..966f83b 100644 --- a/docs/data.json +++ b/docs/data.json @@ -3,7 +3,7 @@ "name": "fast-azure-storage", "description": "Fast client library for azure storage services", "url": "https://github.com/taskcluster/fast-azure-storage", - "version": "1.0.0" + "version": "3.1.5" }, "files": { "docs/assets/vendor/bootstrap/js/bootstrap.min.js": { @@ -74,7 +74,7 @@ "namespaces": {}, "tag": "module", "file": "lib/table.js", - "line": 70, + "line": 69, "description": "The `fast-azure-storage` package provides a fast and minimalistic interface\nfor Azure Storage Service." } }, @@ -111,7 +111,7 @@ "extension_for": [], "module": "azure", "file": "lib/blob.js", - "line": 90, + "line": 89, "description": "Blob client class for interacting with Azure Blob Storage.", "is_constructor": 1, "params": [ @@ -133,7 +133,7 @@ "module": "azure", "namespace": "", "file": "lib/queue.js", - "line": 51, + "line": 50, "description": "Queue client class for interacting with Azure Queue Storage.", "is_constructor": 1, "params": [ @@ -155,7 +155,7 @@ "module": "azure", "namespace": "", "file": "lib/table.js", - "line": 70, + "line": 69, "description": "Table client class for interacting with Azure Table Storage.\n\nSubclasses `EventEmitter` and emits the `error` event on failure to refresh\nshared-access-signature, if `options.sas` is a function.", "is_constructor": 1, "params": [ @@ -298,7 +298,7 @@ }, { "file": "lib/blob.js", - "line": 442, + "line": 450, "description": "Sets properties for a storage account’s Blob service endpoint", "itemtype": "method", "name": "setServiceProperties", @@ -317,7 +317,7 @@ }, { "file": "lib/blob.js", - "line": 648, + "line": 656, "description": "Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and\nCORS (Cross-Origin Resource Sharing) rules.", "itemtype": "method", "name": "getServiceProperties", @@ -329,7 +329,7 @@ }, { "file": "lib/blob.js", - "line": 711, + "line": 719, "description": "Create a new container with the given 'name' under the storage account.", "itemtype": "method", "name": "createContainer", @@ -353,7 +353,7 @@ }, { "file": "lib/blob.js", - "line": 772, + "line": 780, "description": "Sets metadata for the specified container.\nOverwrites all existing metadata that is associated with the container.", "itemtype": "method", "name": "setContainerMetadata", @@ -382,7 +382,7 @@ }, { "file": "lib/blob.js", - "line": 835, + "line": 843, "description": "Get the metadata for the container with the given name.\n\nNote, this is a `HEAD` request, so if the container is missing you get an\nerror with `err.statusCode = 404`, but `err.code` property will be\n`ErrorWithoutCode`.", "itemtype": "method", "name": "getContainerMetadata", @@ -406,7 +406,7 @@ }, { "file": "lib/blob.js", - "line": 884, + "line": 892, "description": "Delete container with the given 'name'.\n\nNote, when a container is deleted, a container with the same name cannot be created for at least 30 seconds;\nthe container may not be available for more than 30 seconds if the service is still processing the request.\nPlease see the documentation for more details.", "itemtype": "method", "name": "deleteContainer", @@ -430,7 +430,7 @@ }, { "file": "lib/blob.js", - "line": 929, + "line": 937, "description": "List the containers under the storage account", "itemtype": "method", "name": "listContainers", @@ -449,7 +449,7 @@ }, { "file": "lib/blob.js", - "line": 990, + "line": 998, "description": "Get all user-defined metadata and system properties for the container with the given name.\n\nNote, this is a `HEAD` request, so if the container is missing you get an\nerror with `err.statusCode = 404`, but `err.code` property will be\n`ErrorWithoutCode`.", "itemtype": "method", "name": "getContainerProperties", @@ -473,7 +473,7 @@ }, { "file": "lib/blob.js", - "line": 1065, + "line": 1073, "description": "Gets the permissions for the container with the given name", "itemtype": "method", "name": "getContainerACL", @@ -497,7 +497,7 @@ }, { "file": "lib/blob.js", - "line": 1138, + "line": 1146, "description": "Sets the permissions for the container with the given name.\nThe permissions indicate whether blobs in a container may be accessed publicly.", "itemtype": "method", "name": "setContainerACL", @@ -521,7 +521,7 @@ }, { "file": "lib/blob.js", - "line": 1264, + "line": 1272, "description": "Get the list of blobs under the specified container.", "itemtype": "method", "name": "listBlobs", @@ -545,7 +545,7 @@ }, { "file": "lib/blob.js", - "line": 1365, + "line": 1373, "description": "Establishes and manages a lock on a container for delete operations.\nThe lock duration can be 15 to 60 seconds, or can be infinite.", "itemtype": "method", "name": "leaseContainer", @@ -568,7 +568,7 @@ }, { "file": "lib/blob.js", - "line": 1477, + "line": 1485, "description": "Creates a new block, page, or append blob, or updates the content of an existing block blob.\nUpdating an existing block blob overwrites any existing metadata on the blob,\nand the content of the existing blob is overwritten with the content of the new blob.\n\nNote that a call to a putBlob to create a page blob or an append blob only initializes the blob.\nTo add content to a page blob, call the putPage. To add content to an append blob, call the appendBlock.", "itemtype": "method", "name": "putBlob", @@ -602,7 +602,7 @@ }, { "file": "lib/blob.js", - "line": 1646, + "line": 1654, "description": "Reads or downloads a blob from the system, including its metadata and properties.", "itemtype": "method", "name": "getBlob", @@ -624,14 +624,14 @@ } ], "return": { - "description": "A promise for an object on the form:\n```js\n{\n eTag: '...', // The entity tag of the blob\n lastModified: '...', // The date/time the blob was last modified.\n contentMD5: '...', // The MD5 hash fo the blob\n contentEncoding: '...', // The content encoding of the blob\n contentLanguage: '...', // The content language of the blob\n cacheControl: '...', // The cache control of the blob\n contentDisposition: '...', // The content disposition of the blob\n pageBlobSequenceNumber: '...', // The current sequence number for a page blob.\n type: '...', // The blob type: block, page or append blob.\n blobCommittedBlockCount: '...', // The number of committed blocks present in the blob.\n // This is returned only for append blobs.\n metadata: '...', // Name-value pairs associated with the blob as metadata\n content: '...' // The content\n}\n```", + "description": "A promise for an object on the form:\n```js\n{\n eTag: '...', // The entity tag of the blob\n lastModified: '...', // The date/time the blob was last modified.\n contentType: '...', // The content type specified for the blob\n contentMD5: '...', // The MD5 hash fo the blob\n contentEncoding: '...', // The content encoding of the blob\n contentLanguage: '...', // The content language of the blob\n cacheControl: '...', // The cache control of the blob\n contentDisposition: '...', // The content disposition of the blob\n pageBlobSequenceNumber: '...', // The current sequence number for a page blob.\n type: '...', // The blob type: block, page or append blob.\n blobCommittedBlockCount: '...', // The number of committed blocks present in the blob.\n // This is returned only for append blobs.\n metadata: '...', // Name-value pairs associated with the blob as metadata\n content: '...' // The content\n}\n```", "type": "Promise" }, "class": "Blob" }, { "file": "lib/blob.js", - "line": 1717, + "line": 1727, "description": "Returns all user-defined metadata, standard HTTP properties, and system properties for the blob.", "itemtype": "method", "name": "getBlobProperties", @@ -660,13 +660,13 @@ }, { "file": "lib/blob.js", - "line": 1776, + "line": 1786, "description": "TODO information about:\n- copyCompletionTime,\n- copyStatusDescription,\n- copyStatusDescription,\n- copyId,\n- copyProgress,\n- copySource,\n- copyStatus,\n- copyDestinationSnapshot\n- incrementalCopy\n\nwill be added after the copyBlob will be implemented", "class": "Blob" }, { "file": "lib/blob.js", - "line": 1830, + "line": 1840, "description": "Sets system properties on the blob", "itemtype": "method", "name": "setBlobProperties", @@ -695,7 +695,7 @@ }, { "file": "lib/blob.js", - "line": 1953, + "line": 1963, "description": "Get the metadata for the blob with the given name.\n\nNote, this is a `HEAD` request, so if the container is missing you get an\nerror with `err.statusCode = 404`, but `err.code` property will be\n`ErrorWithoutCode`.", "itemtype": "method", "name": "getBlobMetadata", @@ -724,7 +724,7 @@ }, { "file": "lib/blob.js", - "line": 2013, + "line": 2023, "description": "Sets metadata for the specified blob.\nOverwrites all existing metadata that is associated with that blob.", "itemtype": "method", "name": "setBlobMetadata", @@ -758,7 +758,7 @@ }, { "file": "lib/blob.js", - "line": 2073, + "line": 2083, "description": "Marks the specified blob for deletion. The blob is later deleted during garbage collection.", "itemtype": "method", "name": "deleteBlob", @@ -787,7 +787,7 @@ }, { "file": "lib/blob.js", - "line": 2111, + "line": 2121, "description": "Creates a new block to be committed as part of a blob.", "itemtype": "method", "name": "putBlock", @@ -821,7 +821,7 @@ }, { "file": "lib/blob.js", - "line": 2177, + "line": 2187, "description": "Writes a blob by specifying the list of block IDs that make up the blob.\nIn order to be written as part of a blob, a block must have been successfully written\nto the server in a prior putBlock operation.", "itemtype": "method", "name": "putBlockList", @@ -850,7 +850,7 @@ }, { "file": "lib/blob.js", - "line": 2293, + "line": 2303, "description": "Retrieves the list of committed list blocks (that that have been successfully committed to a given blob with\nputBlockList()), and uncommitted list blocks (that have been uploaded for a blob using Put Block, but that have\nnot yet been committed)", "itemtype": "method", "name": "getBlockList", @@ -879,7 +879,7 @@ }, { "file": "lib/blob.js", - "line": 2363, + "line": 2373, "description": "Generates a base64 string that identifies a block.", "itemtype": "method", "name": "getBlockId", @@ -908,7 +908,7 @@ }, { "file": "lib/blob.js", - "line": 2385, + "line": 2395, "description": "Commits a new block of data to the end of an existing append blob.", "itemtype": "method", "name": "appendBlock", @@ -1046,7 +1046,7 @@ }, { "file": "lib/queue.js", - "line": 339, + "line": 347, "description": "List queues under the storage account.", "itemtype": "method", "name": "listQueues", @@ -1066,7 +1066,7 @@ }, { "file": "lib/queue.js", - "line": 391, + "line": 399, "description": "Create queue with given `name`, returns promise that resolves to `true`, if\nthe queue didn't already exist. Do not rely on this behavior unless you\ndisable the retry logic. Note, if queue exists with different\nmeta-data an error will be thrown.", "itemtype": "method", "name": "createQueue", @@ -1091,7 +1091,7 @@ }, { "file": "lib/queue.js", - "line": 426, + "line": 434, "description": "Delete queue, return promise queue is deleted.\nNote, Azure may take a while to garbage collect the queue, see documentation\nfor relevant details, if you plan to recreate the queue again.", "itemtype": "method", "name": "deleteQueue", @@ -1111,7 +1111,7 @@ }, { "file": "lib/queue.js", - "line": 443, + "line": 451, "description": "Get meta-data for given `queue`. This includes approximate message count,\nnote that the approximate message is an upper-bound on the number of messages\nin the queue.\n\nWarning, this is a `HEAD` request, so if the queue is missing you get an\nerror with `err.statusCode = 404`, but `err.code` property will be\n`ErrorWithoutCode`. The same goes for all other error codes.", "itemtype": "method", "name": "getMetadata", @@ -1131,7 +1131,7 @@ }, { "file": "lib/queue.js", - "line": 483, + "line": 491, "description": "Set meta-data for given `queue`, note that this overwrites all existing\nmeta-data key/value pairs.", "itemtype": "method", "name": "setMetadata", @@ -1156,7 +1156,7 @@ }, { "file": "lib/queue.js", - "line": 516, + "line": 524, "description": "Put a message with XML-safe `text` into `queue` with TTL and visibility-\ntimeout, as given in `options`.\n\nNotice that the `text` must be XML-safe, for JSON it's useful to base64\nencode the message. This is what many other libraries does, so make sense for\ninteroperability. Encoding this way is trivial in node.js:\n```js\nvar text = new Buffer(JSON.stringify(jsonMessage)).toString('base64');\n```", "itemtype": "method", "name": "putMessage", @@ -1186,7 +1186,7 @@ }, { "file": "lib/queue.js", - "line": 561, + "line": 569, "description": "Peek messages from `queue`, returns up to `options.numberOfMessages`, note,\nthat Azure Queue Storage only allows up to 32 messages at once.\n\nNote, Azure may return zero messages giving you an empty array. This is not\nnecessarily proof the that the queue is empty. See REST documentation for\nconsistency levels.", "itemtype": "method", "name": "peekMessages", @@ -1211,7 +1211,7 @@ }, { "file": "lib/queue.js", - "line": 605, + "line": 613, "description": "Get messages from `queue`, returns up to `options.numberOfMessages` of\nmessages, note, that Azure Queue Storage only allows up to 32 messages per\nrequest.\nSee, `deleteMessage` for how to delete messages once you have processed them.\n\nNote, Azure may return zero messages giving you an empty array. This is not\nnecessarily proof the that the queue is empty. See REST documentation for\nconsistency levels.", "itemtype": "method", "name": "getMessages", @@ -1236,7 +1236,7 @@ }, { "file": "lib/queue.js", - "line": 657, + "line": 665, "description": "Delete a message from `queue` using `messageId` and `popReceipt`", "itemtype": "method", "name": "deleteMessage", @@ -1266,7 +1266,7 @@ }, { "file": "lib/queue.js", - "line": 687, + "line": 695, "description": "Clear all messages from `queue`, note this may timeout if there is a lot of\nmessages in the queue, in this case you'll get a error with the code:\n`OperationTimedOut`, and you should retry until the operation is successful.\nSee Azure Queue Storage REST API documentation for details.", "itemtype": "method", "name": "clearMessages", @@ -1286,7 +1286,7 @@ }, { "file": "lib/queue.js", - "line": 708, + "line": 716, "description": "Update a message from `queue` with XML-safe `text` and visibility-timeout,\nas given in `options`.\n\nNotice that the `text` must be XML-safe, for JSON it's useful to base64\nencode the message. This is what many other libraries does, so make sense for\ninteroperability. Encoding this way is trivial in node.js:\n```js\nvar text = new Buffer(JSON.stringify(jsonMessage)).toString('base64');\n```", "itemtype": "method", "name": "updateMessage", @@ -1430,7 +1430,7 @@ }, { "file": "lib/table.js", - "line": 422, + "line": 433, "description": "Query for tables on the storage account.", "itemtype": "method", "name": "queryTables", @@ -1450,7 +1450,7 @@ }, { "file": "lib/table.js", - "line": 461, + "line": 472, "description": "Create table with given `name`.", "itemtype": "method", "name": "createTable", @@ -1470,7 +1470,7 @@ }, { "file": "lib/table.js", - "line": 484, + "line": 495, "description": "Delete table with given `name`", "itemtype": "method", "name": "deleteTable", @@ -1490,7 +1490,7 @@ }, { "file": "lib/table.js", - "line": 502, + "line": 513, "description": "Convert nested array structure to filter string.\nSee `Table.Operators` for details and examples.", "itemtype": "method", "name": "filter", @@ -1510,7 +1510,7 @@ }, { "file": "lib/table.js", - "line": 528, + "line": 539, "description": "Operators and helpers for constructing $filter strings using `Table.filter`.\n\nWe have the following comparison operators:\n - `azure.Table.Operators.Equal`,\n - `azure.Table.Operators.GreaterThan`,\n - `azure.Table.Operators.GreaterThanOrEqual`,\n - `azure.Table.Operators.LessThan`,\n - `azure.Table.Operators.LessThanOrEqual`, and\n - `azure.Table.Operators.NotEqual`.\n\nThey should be used in the middle of a triple as follows:\n`['key1', op.Equal, op.string('my-string')]`.\n\nThe boolean operators `And`, `Not` and `Or` should be used to connect\ntriples made with comparison operators. Note, that each set of array brackets\ntranslates into a parentheses. Boolean operators:\n - `azure.Table.Operators.And`,\n - `azure.Table.Operators.Not`, and\n - `azure.Table.Operators.Or`.\n\nWe also have formatting helpers, `string`, `number`, `bool`, `date` and\n`guid` which takes constant values and encodes them correctly for use in\nfilter expression. It's strongly recommended that you employ these, as Azure\nhas some undocumented and semi obscure escaping rules. Constant formatters:\n - `azure.Table.Operators.string(\"...\")`,\n - `azure.Table.Operators.number(42.2)`,\n - `azure.Table.Operators.bool(true)`,\n - `azure.Table.Operators.date(new Date())`, and\n - `azure.Table.Operators.guid('...')`.\n\nComplete example:\n```js\nvar op = azure.Table.Operators;\nvar filter = azure.Table.filter([\n ['key1', op.Equal, op.string('my-string')],\n op.And,\n ['key2', op.LessThan, op.date(new Date())]\n]) // \"((key1 eq 'my-string') and (key2 le datetime'...'))\"\n```", "itemtype": "attribute", "name": "Operators", @@ -1521,7 +1521,7 @@ }, { "file": "lib/table.js", - "line": 604, + "line": 615, "description": "Get entity from `table` with given `partitionKey` and `rowKey`.", "itemtype": "method", "name": "getEntity", @@ -1556,7 +1556,7 @@ }, { "file": "lib/table.js", - "line": 649, + "line": 660, "description": "Query entities from `table`.", "itemtype": "method", "name": "queryEntitites", @@ -1581,7 +1581,7 @@ }, { "file": "lib/table.js", - "line": 727, + "line": 741, "description": "Insert `entity` into `table`, the `entity` object must be on the format\naccepted by azure table storage. See Azure Table Storage documentation for\ndetails. Essentially, data-types will be inferred if `...@odata.type`\nproperties aren't specified. Also note that `PartitionKey` and `RowKey`\nproperties must be specified.", "itemtype": "method", "name": "insertEntity", @@ -1606,7 +1606,7 @@ }, { "file": "lib/table.js", - "line": 758, + "line": 772, "description": "Update entity from `table` identified by `entity.partitionKey` and\n`entity.rowKey`.\nOptions are **required** for this method and takes form as follows:\n```js\n{\n mode: 'replace' || 'merge' // Replace entity or merge entity\n eTag: '...' || '*' || null // Update specific entity, any or allow insert\n}\n```\n\nIf `options.mode` is `'replace'` the remote entity will be completely\nreplaced by the structure given as `entity`. If `options.mode` is `'merge'`\nproperties from `entity` will overwrite existing properties on remote entity.\n\nIf **`options.eTag` is not given** (or `null`) the remote entity will be\ninserted if it does not exist, and otherwise replaced or merged depending\non `mode`.\n\nIf **`options.eTag` is the string `'*'`** the remote entity will be replaced\nor merged depending on `mode`, but it will not be inserted if it doesn't\nexist.\n\nIf **`options.eTag` is a string** (other than `'*'`) the remote entity will be\nreplaced or merged depending on `mode`, if the ETag of the remote entity\nmatches the string given in `options.eTag`.\n\nCombining `mode` and `eTag` options this method implements the following\noperations:\n * Insert or replace (regardless of existence or ETag),\n * Replace if exists (regardless of ETag),\n * Replace if exists and has given ETag,\n * Insert or merge (regardless of existence or ETag),\n * Merge if exists (regardless of ETag), and\n * Merge if exists and has given ETag.", "itemtype": "method", "name": "updateEntity", @@ -1631,7 +1631,7 @@ }, { "file": "lib/table.js", - "line": 839, + "line": 853, "description": "Delete entity identified by `partitionKey` and `rowKey` from `table`.\nOptions are **required** for this method and takes form as follows:\n```js\n{\n eTag: '...' || '*' // ETag to delete, or '*' to ignore ETag\n}\n```\n\nNote, `options.eTag` is `'*'` will delete the entity regardless of its ETag.", "itemtype": "method", "name": "deleteEntity", @@ -1676,55 +1676,55 @@ }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:711" + "line": " lib/blob.js:719" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:772" + "line": " lib/blob.js:780" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:835" + "line": " lib/blob.js:843" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:884" + "line": " lib/blob.js:892" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:929" + "line": " lib/blob.js:937" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:990" + "line": " lib/blob.js:998" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:1065" + "line": " lib/blob.js:1073" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:1138" + "line": " lib/blob.js:1146" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:1264" + "line": " lib/blob.js:1272" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:1365" + "line": " lib/blob.js:1373" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:1953" + "line": " lib/blob.js:1963" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:2013" + "line": " lib/blob.js:2023" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/blob.js:2111" + "line": " lib/blob.js:2121" }, { "message": "replacing incorrect tag: returns with return", @@ -1736,43 +1736,43 @@ }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:339" + "line": " lib/queue.js:347" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:391" + "line": " lib/queue.js:399" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:426" + "line": " lib/queue.js:434" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:443" + "line": " lib/queue.js:451" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:483" + "line": " lib/queue.js:491" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:516" + "line": " lib/queue.js:524" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:561" + "line": " lib/queue.js:569" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:605" + "line": " lib/queue.js:613" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:657" + "line": " lib/queue.js:665" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/queue.js:687" + "line": " lib/queue.js:695" }, { "message": "replacing incorrect tag: returns with return", @@ -1788,15 +1788,15 @@ }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/table.js:422" + "line": " lib/table.js:433" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/table.js:502" + "line": " lib/table.js:513" }, { "message": "replacing incorrect tag: returns with return", - "line": " lib/table.js:839" + "line": " lib/table.js:853" }, { "message": "Missing item type\nBootstrap.js by @fat & @mdo\nplugins: bootstrap-transition.js, bootstrap-modal.js, bootstrap-dropdown.js, bootstrap-scrollspy.js, bootstrap-tab.js, bootstrap-tooltip.js, bootstrap-popover.js, bootstrap-affix.js, bootstrap-alert.js, bootstrap-button.js, bootstrap-collapse.js, bootstrap-carousel.js, bootstrap-typeahead.js\nCopyright 2012 Twitter, Inc.\nhttp://www.apache.org/licenses/LICENSE-2.0.txt", @@ -1804,7 +1804,7 @@ }, { "message": "Missing item type\nTODO information about:\n- copyCompletionTime,\n- copyStatusDescription,\n- copyStatusDescription,\n- copyId,\n- copyProgress,\n- copySource,\n- copyStatus,\n- copyDestinationSnapshot\n- incrementalCopy\n\nwill be added after the copyBlob will be implemented", - "line": " lib/blob.js:1776" + "line": " lib/blob.js:1786" } ] } \ No newline at end of file diff --git a/docs/files/docs_assets_vendor_bootstrap_js_bootstrap.min.js.html b/docs/files/docs_assets_vendor_bootstrap_js_bootstrap.min.js.html index 1235d6f..43f8bab 100644 --- a/docs/files/docs_assets_vendor_bootstrap_js_bootstrap.min.js.html +++ b/docs/files/docs_assets_vendor_bootstrap_js_bootstrap.min.js.html @@ -21,7 +21,7 @@

  • diff --git a/docs/files/lib_agent.js.html b/docs/files/lib_agent.js.html index 90c4c1c..932b0ca 100644 --- a/docs/files/lib_agent.js.html +++ b/docs/files/lib_agent.js.html @@ -21,7 +21,7 @@

  • diff --git a/docs/files/lib_blob.js.html b/docs/files/lib_blob.js.html index 2a9b994..4a8e4b8 100644 --- a/docs/files/lib_blob.js.html +++ b/docs/files/lib_blob.js.html @@ -21,7 +21,7 @@

  • @@ -84,7 +84,6 @@

    lib/blob.js File

    var assert = require('assert'); var crypto = require('crypto'); var debug = require('debug')('azure:blob'); -var Promise = require('promise'); var utils = require('./utils'); var querystring = require('querystring'); var xml = require('./xml-parser'); @@ -238,6 +237,7 @@

    lib/blob.js File

    agent: agent.globalAgent, retries: 5, delayFactor: 100, + randomizationFactor: 0.25, maxDelay: 30 * 1000, transientErrorCodes: TRANSIENT_ERROR_CODES, accountId: undefined, @@ -502,16 +502,24 @@

    lib/blob.js File

    // Parse error message var data = xml.parseError(res); + var resMSHeaders = {}; + Object.keys(res.headers).forEach(h => { + if (h.startsWith('x-ms-')) { + resMSHeaders[h] = res.headers[h]; + } + }); + // Construct error object - var err = new Error(data.message); - err.name = data.code + 'Error'; - err.code = data.code; - err.statusCode = res.statusCode; - err.message = data.message; - err.retries = retry; + var err = new Error(data.message); + err.name = data.code + 'Error'; + err.code = data.code; + err.statusCode = res.statusCode; + err.message = data.message; + err.retries = retry; + err.resMSHeaders = resMSHeaders; - debug("Error code: %s for %s %s on retry: %s", - err.code, method, path, retry); + debug("Error code: %s (%s) for %s %s on retry: %s", + data.code, res.statusCode, method, path, retry); // Throw the constructed error throw err; @@ -1748,6 +1756,7 @@

    lib/blob.js File

    * { * eTag: '...', // The entity tag of the blob * lastModified: '...', // The date/time the blob was last modified. + * contentType: '...', // The content type specified for the blob * contentMD5: '...', // The MD5 hash fo the blob * contentEncoding: '...', // The content encoding of the blob * contentLanguage: '...', // The content language of the blob @@ -1779,6 +1788,7 @@

    lib/blob.js File

    var responseHeaders = response.headers; return { + contentType: response.headers['content-type'], contentMD5: responseHeaders['content-md5'], contentEncoding: responseHeaders['content-encoding'], contentLanguage: responseHeaders['content-language'], @@ -2550,6 +2560,7 @@

    lib/blob.js File

    }; }); }; +
    diff --git a/docs/files/lib_index.js.html b/docs/files/lib_index.js.html index c02bdc4..99c17c9 100644 --- a/docs/files/lib_index.js.html +++ b/docs/files/lib_index.js.html @@ -21,7 +21,7 @@

  • diff --git a/docs/files/lib_queue.js.html b/docs/files/lib_queue.js.html index 81a1548..507e09f 100644 --- a/docs/files/lib_queue.js.html +++ b/docs/files/lib_queue.js.html @@ -21,7 +21,7 @@

  • @@ -83,7 +83,6 @@

    lib/queue.js File

    var assert = require('assert'); var debug = require('debug')('azure:queue'); -var Promise = require('promise'); var querystring = require('querystring'); var crypto = require('crypto'); var events = require('events'); @@ -199,6 +198,7 @@

    lib/queue.js File

    agent: agent.globalAgent, retries: 5, delayFactor: 100, + randomizationFactor: 0.25, maxDelay: 30 * 1000, transientErrorCodes: TRANSIENT_ERROR_CODES, accountId: undefined, @@ -398,17 +398,25 @@

    lib/queue.js File

    // Parse error message var data = xml.parseError(res); + var resMSHeaders = {}; + Object.keys(res.headers).forEach(h => { + if (h.startsWith('x-ms-')) { + resMSHeaders[h] = res.headers[h]; + } + }); + // Construct error object - var err = new Error(data.message); - err.name = data.code + 'Error'; - err.code = data.code; - err.statusCode = res.statusCode; - err.detail = data.detail; - err.payload = res.payload; - err.retries = retry; - - debug("Error code: %s for %s %s on retry: %s", - err.code, method, path, retry); + var err = new Error(data.message); + err.name = data.code + 'Error'; + err.code = data.code; + err.statusCode = res.statusCode; + err.detail = data.detail; + err.payload = res.payload; + err.retries = retry; + err.resMSHeaders = resMSHeaders; + + debug("Error code: %s (%s) for %s %s on retry: %s", + data.code, res.statusCode, method, path, retry); // Throw the constructed error throw err; diff --git a/docs/files/lib_table.js.html b/docs/files/lib_table.js.html index 8e8cd46..8622fb1 100644 --- a/docs/files/lib_table.js.html +++ b/docs/files/lib_table.js.html @@ -21,7 +21,7 @@

  • @@ -83,7 +83,6 @@

    lib/table.js File

    var assert = require('assert'); var debug = require('debug')('azure:table'); -var Promise = require('promise'); var querystring = require('querystring'); var crypto = require('crypto'); var events = require('events'); @@ -230,6 +229,7 @@

    lib/table.js File

    agent: agent.globalAgent, retries: 5, delayFactor: 100, + randomizationFactor: 0.25, maxDelay: 30 * 1000, transientErrorCodes: TRANSIENT_ERROR_CODES, accountId: undefined, @@ -478,20 +478,31 @@

    lib/table.js File

    message = "No error message given, in payload '" + res.payload + "'" } - // Construct error object - var err = new Error(message); - err.name = code + 'Error'; - err.code = code; - err.statusCode = res.statusCode; - err.payload = res.payload; - err.method = method; - err.path = path; - err.query = query; - err.headers = headers; + var resMSHeaders = {}; + Object.keys(res.headers).forEach(h => { + if (h.startsWith('x-ms-')) { + resMSHeaders[h] = res.headers[h]; + } + }); + + // Construct error object, capturing only the first line in the + // error message, as subsequent lines from Azure are usually just + // a requestId and timestamp. + var err = new Error(message.split('\n')[0]); + err.name = code + 'Error'; + err.code = code; + err.statusCode = res.statusCode; + err.payload = res.payload; + err.method = method; + err.path = path; + err.query = query; + err.headers = headers; + err.resMSHeaders = resMSHeaders; err.requestBody = json; + err.message = message; - debug("Error code: %s for %s %s on retry: %s", - code, method, path, retry); + debug("Error code: %s (%s) for %s %s on retry: %s", + code, res.statusCode, method, path, retry); // Throw the constructed error throw err; @@ -773,7 +784,10 @@

    lib/table.js File

    query.$filter = options.filter; } if (options.top) { - query.$top = '' + options.top; + if (options.top > 1000) { + throw new Error('queryEntities: Too Large Query: top of ' + options.top + ' > 1000'); + } + query.$top = '' + options.top; } if (options.nextPartitionKey) { query.NextPartitionKey = options.nextPartitionKey; diff --git a/docs/index.html b/docs/index.html index 7294e37..84df4c4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -21,7 +21,7 @@

  • diff --git a/docs/modules/azure.html b/docs/modules/azure.html index dfaee48..dd2c8e1 100644 --- a/docs/modules/azure.html +++ b/docs/modules/azure.html @@ -21,7 +21,7 @@

  • @@ -81,7 +81,7 @@

    azure Module

    - Defined in: lib/table.js:70 + Defined in: lib/table.js:69