@promte/app-upload 0.1.6 → 0.1.7

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.
@@ -6,7 +6,7 @@ import AdmZip from "adm-zip";
6
6
  import undici from "undici";
7
7
  import readline from "node:readline/promises";
8
8
 
9
- const { FormData, Blob } = undici;
9
+ const { FormData, Blob, fetch: undiciFetch } = undici;
10
10
  const BlobCtor = globalThis.Blob || Blob;
11
11
 
12
12
  const DEFAULT_HOST = "https://app.promte.dk";
@@ -209,7 +209,7 @@ async function runPush(args) {
209
209
  url.searchParams.set("workspaceId", workspaceId);
210
210
  if (args.version) url.searchParams.set("version", args.version);
211
211
 
212
- const res = await fetch(url.toString(), {
212
+ const res = await undiciFetch(url.toString(), {
213
213
  method: "POST",
214
214
  headers: {
215
215
  "service-key": serviceKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promte/app-upload",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "CLI to upload Promte app bundles",
5
5
  "type": "module",
6
6
  "bin": {