@ribbon-studios/js-utils 1.6.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -81,10 +81,6 @@ async function rfetch(url, { params, body, ...options } = {}) {
81
81
  if (requestInit.method !== "GET" && body) {
82
82
  if (body instanceof FormData) {
83
83
  requestInit.body = body;
84
- requestInit.headers = {
85
- "Content-Type": "application/x-www-form-urlencoded",
86
- ...requestInit.headers
87
- };
88
84
  } else if (typeof body === "string") {
89
85
  requestInit.body = body;
90
86
  requestInit.headers = {
package/dist/index.js CHANGED
@@ -79,10 +79,6 @@ async function rfetch(url, { params, body, ...options } = {}) {
79
79
  if (requestInit.method !== "GET" && body) {
80
80
  if (body instanceof FormData) {
81
81
  requestInit.body = body;
82
- requestInit.headers = {
83
- "Content-Type": "application/x-www-form-urlencoded",
84
- ...requestInit.headers
85
- };
86
82
  } else if (typeof body === "string") {
87
83
  requestInit.body = body;
88
84
  requestInit.headers = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ribbon-studios/js-utils",
3
- "version": "1.6.1",
3
+ "version": "2.0.0",
4
4
  "description": "Collection of generic javascript utilities curated by the Rainbow Cafe~",
5
5
  "type": "module",
6
6
  "source": "src/*.ts",