pinata 1.7.0 → 1.7.2
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.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -715,7 +715,7 @@ var getCid = async (config, cid, options) => {
|
|
|
715
715
|
errorData
|
|
716
716
|
);
|
|
717
717
|
}
|
|
718
|
-
const contentType = request.headers.get("content-type");
|
|
718
|
+
const contentType = request.headers.get("content-type")?.split(";")[0] || null;
|
|
719
719
|
if (contentType?.includes("application/json")) {
|
|
720
720
|
data = await request.json();
|
|
721
721
|
} else if (contentType?.includes("text/")) {
|
|
@@ -1366,7 +1366,6 @@ var deleteGroup = async (config, options) => {
|
|
|
1366
1366
|
"Content-Type": "application/json",
|
|
1367
1367
|
...config.customHeaders
|
|
1368
1368
|
};
|
|
1369
|
-
headers = { ...config.customHeaders };
|
|
1370
1369
|
} else {
|
|
1371
1370
|
headers = {
|
|
1372
1371
|
Authorization: `Bearer ${config.pinataJwt}`,
|