From 133b9b5fcdd3da75f54acd7df8cc63791bc54e28 Mon Sep 17 00:00:00 2001 From: Toshimitsu Takahashi Date: Mon, 26 Aug 2019 23:23:50 +0900 Subject: [PATCH 1/3] Fix send without callback for createReadStream --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 9ec7448..ac30787 100644 --- a/index.js +++ b/index.js @@ -48,6 +48,10 @@ function extendError(AWS, opts) { const origSend = AWS.Request.prototype.send; AWS.Request.prototype.send = function sendEx(callback) { + if (!callback) { + return origSend.call(this) + } + const req = this; let runStack = null; if (needRunAt) runStack = getRunStack(arguments.callee).slice(2); From 3dab558c53b67f7546c8d36acc10b5bf00eef439 Mon Sep 17 00:00:00 2001 From: Toshimitsu Takahashi Date: Mon, 26 Aug 2019 23:24:03 +0900 Subject: [PATCH 2/3] Place npmignore --- .npmignore | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e07b503 --- /dev/null +++ b/.npmignore @@ -0,0 +1,6 @@ +.travis.yml +.vscode/ +.nyc_output/ +test/ +example/ +coverage/ From 4a038cafcc9971717f017fd685d1dc0ee828f9a9 Mon Sep 17 00:00:00 2001 From: Toshimitsu Takahashi Date: Mon, 26 Aug 2019 23:24:13 +0900 Subject: [PATCH 3/3] Bump 1.6.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7ecd090..45cd090 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "extend-aws-error", - "version": "0.5.0", + "version": "0.6.0", "description": "Extend AWS SDK request error with the request information", "main": "extend_aws_error.js", "scripts": {