@equicord/publish-browser-extension 4.0.4 → 4.0.5
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/cli.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as chromeStatus, n as submit, t as init, u as chromeSetDeployPercentage } from "./init-
|
|
1
|
+
import { d as chromeStatus, n as submit, t as init, u as chromeSetDeployPercentage } from "./init-CeaZntzI.js";
|
|
2
2
|
import { cac } from "cac";
|
|
3
3
|
import { consola as consola$1 } from "consola";
|
|
4
4
|
import { config } from "dotenv";
|
|
5
5
|
|
|
6
6
|
//#region package.json
|
|
7
|
-
var version = "4.0.
|
|
7
|
+
var version = "4.0.5";
|
|
8
8
|
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/cli.ts
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as FirefoxAddonStoreOptions, c as EdgeAddonStoreOptions, d as chromeStatus, f as ChromeWebStore, i as FirefoxAddonStore, l as EdgeApi, m as CwsApi, n as submit, o as AddonsApi, p as ChromeWebStoreOptions, r as InlineConfig, s as EdgeAddonStore, t as init, u as chromeSetDeployPercentage } from "./init-
|
|
1
|
+
import { a as FirefoxAddonStoreOptions, c as EdgeAddonStoreOptions, d as chromeStatus, f as ChromeWebStore, i as FirefoxAddonStore, l as EdgeApi, m as CwsApi, n as submit, o as AddonsApi, p as ChromeWebStoreOptions, r as InlineConfig, s as EdgeAddonStore, t as init, u as chromeSetDeployPercentage } from "./init-CeaZntzI.js";
|
|
2
2
|
|
|
3
3
|
export { AddonsApi, ChromeWebStore, ChromeWebStoreOptions, CwsApi, EdgeAddonStore, EdgeAddonStoreOptions, EdgeApi, FirefoxAddonStore, FirefoxAddonStoreOptions, InlineConfig, chromeSetDeployPercentage, chromeStatus, init, submit };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
import { Listr } from "listr2";
|
|
3
|
+
import { fileFromPath } from "formdata-node/file-from-path";
|
|
3
4
|
import { createFetch, ofetch } from "ofetch";
|
|
4
5
|
import { z } from "zod/v4";
|
|
5
6
|
import fs, { copyFile, readFile, writeFile } from "node:fs/promises";
|
|
6
7
|
import consola, { consola as consola$1 } from "consola";
|
|
7
8
|
import fs$1 from "fs";
|
|
8
|
-
import { FormData } from "formdata-node";
|
|
9
|
-
import { fileFromPath } from "formdata-node/file-from-path";
|
|
9
|
+
import { FormData as FormData$1 } from "formdata-node";
|
|
10
10
|
import { FormDataEncoder } from "form-data-encoder";
|
|
11
11
|
import { Readable } from "node:stream";
|
|
12
12
|
|
|
@@ -70,9 +70,12 @@ var CwsApi = class {
|
|
|
70
70
|
}
|
|
71
71
|
async uploadZip(params) {
|
|
72
72
|
const Authorization = this.getAuthHeader(params.token);
|
|
73
|
+
const form = new FormData();
|
|
74
|
+
const file = await fileFromPath(params.zipFile);
|
|
75
|
+
form.append("image", file);
|
|
73
76
|
return fetch(this.uploadEndpoint(params.extensionId), {
|
|
74
77
|
method: "POST",
|
|
75
|
-
body:
|
|
78
|
+
body: form,
|
|
76
79
|
headers: {
|
|
77
80
|
Authorization,
|
|
78
81
|
"X-Goog-Upload-Protocol": "raw"
|
|
@@ -3842,7 +3845,7 @@ var AddonsApi = class {
|
|
|
3842
3845
|
*/
|
|
3843
3846
|
async uploadCreate(params) {
|
|
3844
3847
|
const endpoint = this.addonsUploadCreateEndpoint();
|
|
3845
|
-
const form = new FormData();
|
|
3848
|
+
const form = new FormData$1();
|
|
3846
3849
|
form.set("channel", params.channel);
|
|
3847
3850
|
form.set("upload", await fileFromPath(params.file));
|
|
3848
3851
|
const encoder = new FormDataEncoder(form);
|
|
@@ -3863,7 +3866,7 @@ var AddonsApi = class {
|
|
|
3863
3866
|
}
|
|
3864
3867
|
async versionCreate(params) {
|
|
3865
3868
|
const endpoint = this.addonVersionCreateEndpoint(params.extensionId);
|
|
3866
|
-
const form = new FormData();
|
|
3869
|
+
const form = new FormData$1();
|
|
3867
3870
|
form.set("upload", params.uploadUuid);
|
|
3868
3871
|
if (params.sourceFile) form.set("source", await fileFromPath(params.sourceFile));
|
|
3869
3872
|
else form.set("source", "");
|