@formfeed/sdk 0.3.13 → 0.3.14

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.
Files changed (3) hide show
  1. package/index.cjs +4 -2
  2. package/index.js +4 -2
  3. 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 res = await this.fetchImpl(target.download_url, {
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 this.fetchImpl(url, {
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 res = await this.fetchImpl(target.download_url, {
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 this.fetchImpl(url, {
640
+ res = await fetchImpl(url, {
639
641
  method,
640
642
  headers,
641
643
  body: body === void 0 ? void 0 : isForm ? body : JSON.stringify(body),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formfeed/sdk",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Formfeed API client: renders, templates, webhooks. No dependencies, Web APIs only.",
5
5
  "license": "MIT",
6
6
  "type": "module",