glitch-javascript-sdk 3.15.0 → 4.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/browser/hosting-runtime.js +1 -1
- package/dist/browser/hosting-runtime.js.map +1 -1
- package/dist/cjs/index.js +7495 -20
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Microtransactions.d.ts +256 -34
- package/dist/esm/index.js +7529 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/util/Requests.d.ts +3 -1
- package/dist/index.d.ts +260 -36
- package/guides/commerce-delivery-receiver.mjs +117 -0
- package/guides/microtransactions.md +98 -17
- package/package.json +1 -1
- package/src/api/Microtransactions.ts +223 -33
- package/src/routes/MicrotransactionsRoute.ts +11 -0
- package/src/util/Requests.ts +2 -2
- package/src/util/Session.ts +3 -2
|
@@ -5894,7 +5894,7 @@
|
|
|
5894
5894
|
// Prepare FormData
|
|
5895
5895
|
const formData = new FormData();
|
|
5896
5896
|
formData.append(filename, file);
|
|
5897
|
-
if (Requests.community_id) {
|
|
5897
|
+
if (Requests.community_id && !(options === null || options === void 0 ? void 0 : options.excludeCommunityContext)) {
|
|
5898
5898
|
data = Object.assign(Object.assign({}, data), { communities: [Requests.community_id] });
|
|
5899
5899
|
}
|
|
5900
5900
|
for (let key in data) {
|