@formfeed/sdk 0.3.13 → 0.3.15
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/index.cjs +4 -2
- package/index.js +4 -2
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -147,7 +147,8 @@ var Formfeed = class {
|
|
|
147
147
|
`render ${target.id} has no output (${target.status})`,
|
|
148
148
|
0
|
|
149
149
|
);
|
|
150
|
-
const
|
|
150
|
+
const fetchImpl = this.fetchImpl;
|
|
151
|
+
const res = await fetchImpl(target.download_url, {
|
|
151
152
|
signal: options.signal
|
|
152
153
|
});
|
|
153
154
|
if (!res.ok)
|
|
@@ -663,8 +664,9 @@ var Formfeed = class {
|
|
|
663
664
|
() => controller.abort(options.signal?.reason)
|
|
664
665
|
);
|
|
665
666
|
let res;
|
|
667
|
+
const fetchImpl = this.fetchImpl;
|
|
666
668
|
try {
|
|
667
|
-
res = await
|
|
669
|
+
res = await fetchImpl(url, {
|
|
668
670
|
method,
|
|
669
671
|
headers,
|
|
670
672
|
body: body === void 0 ? void 0 : isForm ? body : JSON.stringify(body),
|
package/index.js
CHANGED
|
@@ -118,7 +118,8 @@ var Formfeed = class {
|
|
|
118
118
|
`render ${target.id} has no output (${target.status})`,
|
|
119
119
|
0
|
|
120
120
|
);
|
|
121
|
-
const
|
|
121
|
+
const fetchImpl = this.fetchImpl;
|
|
122
|
+
const res = await fetchImpl(target.download_url, {
|
|
122
123
|
signal: options.signal
|
|
123
124
|
});
|
|
124
125
|
if (!res.ok)
|
|
@@ -634,8 +635,9 @@ var Formfeed = class {
|
|
|
634
635
|
() => controller.abort(options.signal?.reason)
|
|
635
636
|
);
|
|
636
637
|
let res;
|
|
638
|
+
const fetchImpl = this.fetchImpl;
|
|
637
639
|
try {
|
|
638
|
-
res = await
|
|
640
|
+
res = await fetchImpl(url, {
|
|
639
641
|
method,
|
|
640
642
|
headers,
|
|
641
643
|
body: body === void 0 ? void 0 : isForm ? body : JSON.stringify(body),
|