From d0e76bb4a8f619a650aa8b78886f200af3ca6a24 Mon Sep 17 00:00:00 2001
From: Jason Miller
Date: Mon, 30 Jul 2018 14:44:51 -0400
Subject: [PATCH 1/7] update badge size
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 9fa8cbc..712df7c 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-
+
From c4cae70d8d1536d675c39f29e25cfae0a14047fb Mon Sep 17 00:00:00 2001
From: Kari Husa
Date: Thu, 2 Aug 2018 13:27:28 +0300
Subject: [PATCH 2/7] Use null as request body if options.body is undefined
This fixes an issue with IE11 http delete when body is missing.
(See also: https://github.com/axios/axios/issues/248)
---
src/index.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/index.js b/src/index.js
index 934c7ce..ff46e61 100644
--- a/src/index.js
+++ b/src/index.js
@@ -17,7 +17,8 @@ export default typeof fetch=='function' ? fetch.bind() : function(url, options)
request.onerror = reject;
- request.send(options.body);
+ let requestBody = typeof options.body !== 'undefined' ? options.body : null;
+ request.send(requestBody);
function response() {
let keys = [],
From 069e3a9c47b686868737acbf20f0f4f815e7557b Mon Sep 17 00:00:00 2001
From: Jason Miller
Date: Thu, 13 Sep 2018 09:25:56 -0400
Subject: [PATCH 3/7] simplify null check for sending body
---
src/index.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/index.js b/src/index.js
index ff46e61..e5f4f4c 100644
--- a/src/index.js
+++ b/src/index.js
@@ -17,8 +17,7 @@ export default typeof fetch=='function' ? fetch.bind() : function(url, options)
request.onerror = reject;
- let requestBody = typeof options.body !== 'undefined' ? options.body : null;
- request.send(requestBody);
+ request.send(options.body || null);
function response() {
let keys = [],
From ce45d59bd32a14fbcc8945917825754ac18b6897 Mon Sep 17 00:00:00 2001
From: bglee
Date: Fri, 14 Sep 2018 12:41:12 +0900
Subject: [PATCH 4/7] fix #87 change isomorphic-fetch ts definition: export
default to export =
---
src/index.d.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/index.d.ts b/src/index.d.ts
index 0c53ad9..4a2ecdd 100644
--- a/src/index.d.ts
+++ b/src/index.d.ts
@@ -14,4 +14,4 @@ declare namespace unfetch {
declare const unfetch: typeof fetch;
-export default unfetch;
+export = unfetch;
From 0d24c9f7e14a0355da3d94595d8f81e7deeda5ee Mon Sep 17 00:00:00 2001
From: Jason Miller
Date: Mon, 17 Sep 2018 14:55:08 -0400
Subject: [PATCH 5/7] Clean up badges.
---
README.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 712df7c..96cdf1f 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,7 @@
-
-
+
From bf40ce83e3145c2c6ad7c7bc69d3838ddd41d86d Mon Sep 17 00:00:00 2001
From: Jason Miller
Date: Mon, 17 Sep 2018 18:02:31 -0400
Subject: [PATCH 6/7] Update icon
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 96cdf1f..ff8f085 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-
+
From 12575a27b8f7059e50e4fe404b4ae88cd8623f22 Mon Sep 17 00:00:00 2001
From: Jason Miller
Date: Mon, 17 Sep 2018 18:09:27 -0400
Subject: [PATCH 7/7] 3.1.2
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 7d60897..0c15e56 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "unfetch",
- "version": "3.1.1",
+ "version": "3.1.2",
"description": "Bare minimum fetch polyfill in 500 bytes",
"unpkg": "dist/unfetch.umd.js",
"main": "dist/unfetch.js",