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.mjs
CHANGED
|
@@ -689,7 +689,7 @@ var getCid = async (config, cid, options) => {
|
|
|
689
689
|
errorData
|
|
690
690
|
);
|
|
691
691
|
}
|
|
692
|
-
const contentType = request.headers.get("content-type");
|
|
692
|
+
const contentType = request.headers.get("content-type")?.split(";")[0] || null;
|
|
693
693
|
if (contentType?.includes("application/json")) {
|
|
694
694
|
data = await request.json();
|
|
695
695
|
} else if (contentType?.includes("text/")) {
|
|
@@ -1340,7 +1340,6 @@ var deleteGroup = async (config, options) => {
|
|
|
1340
1340
|
"Content-Type": "application/json",
|
|
1341
1341
|
...config.customHeaders
|
|
1342
1342
|
};
|
|
1343
|
-
headers = { ...config.customHeaders };
|
|
1344
1343
|
} else {
|
|
1345
1344
|
headers = {
|
|
1346
1345
|
Authorization: `Bearer ${config.pinataJwt}`,
|