percher 0.2.3 → 0.2.4
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/bin/percher.js +9 -5
- package/dist/src/context.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/telemetry.d.ts +1 -1
- package/dist/src/telemetry.js +1 -1
- package/package.json +1 -1
package/dist/bin/percher.js
CHANGED
|
@@ -9420,11 +9420,15 @@ class Http {
|
|
|
9420
9420
|
async postBinary(path, body) {
|
|
9421
9421
|
const headers = this.buildHeaders();
|
|
9422
9422
|
headers["Content-Type"] = "application/octet-stream";
|
|
9423
|
-
const
|
|
9423
|
+
const init = {
|
|
9424
9424
|
method: "POST",
|
|
9425
9425
|
headers,
|
|
9426
9426
|
body
|
|
9427
|
-
}
|
|
9427
|
+
};
|
|
9428
|
+
if (body instanceof ReadableStream) {
|
|
9429
|
+
init.duplex = "half";
|
|
9430
|
+
}
|
|
9431
|
+
const res = await this.fetchImpl(`${this.apiUrl}${path}`, init);
|
|
9428
9432
|
if (!res.ok)
|
|
9429
9433
|
throw await this.parseError(res);
|
|
9430
9434
|
return await res.json();
|
|
@@ -11956,7 +11960,7 @@ async function prompt(question, options) {
|
|
|
11956
11960
|
|
|
11957
11961
|
// src/context.ts
|
|
11958
11962
|
async function createCliContext() {
|
|
11959
|
-
const client = new PercherClient({ clientVersion: "percher-cli/0.2.
|
|
11963
|
+
const client = new PercherClient({ clientVersion: "percher-cli/0.2.4" });
|
|
11960
11964
|
const encoder = new TextEncoder;
|
|
11961
11965
|
const stdout = new WritableStream({
|
|
11962
11966
|
write(chunk) {
|
|
@@ -12026,7 +12030,7 @@ async function renderError(stderr, error) {
|
|
|
12026
12030
|
}
|
|
12027
12031
|
|
|
12028
12032
|
// src/telemetry.ts
|
|
12029
|
-
var VERSION = "0.2.
|
|
12033
|
+
var VERSION = "0.2.4";
|
|
12030
12034
|
var API_URL = "https://api.percher.run";
|
|
12031
12035
|
function isDisabled() {
|
|
12032
12036
|
return process.env.PERCHER_NO_TELEMETRY === "1" || process.env.PERCHER_NO_TELEMETRY === "true" || process.env.DO_NOT_TRACK === "1";
|
|
@@ -12089,7 +12093,7 @@ Update available: ${VERSION} → ${latest}`));
|
|
|
12089
12093
|
}
|
|
12090
12094
|
|
|
12091
12095
|
// src/index.ts
|
|
12092
|
-
var VERSION2 = "0.2.
|
|
12096
|
+
var VERSION2 = "0.2.4";
|
|
12093
12097
|
|
|
12094
12098
|
class SilentExitError {
|
|
12095
12099
|
exitCode;
|
package/dist/src/context.js
CHANGED
|
@@ -2,7 +2,7 @@ import { PercherClient } from "@percher/client";
|
|
|
2
2
|
import { openUrl } from "./open";
|
|
3
3
|
import { prompt } from "./prompt";
|
|
4
4
|
export async function createCliContext() {
|
|
5
|
-
const client = new PercherClient({ clientVersion: "percher-cli/0.2.
|
|
5
|
+
const client = new PercherClient({ clientVersion: "percher-cli/0.2.4" });
|
|
6
6
|
const encoder = new TextEncoder();
|
|
7
7
|
const stdout = new WritableStream({
|
|
8
8
|
write(chunk) {
|
package/dist/src/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createCliContext } from "./context";
|
|
|
5
5
|
import { renderError } from "./output";
|
|
6
6
|
import { showTelemetryNotice, trackEvent } from "./telemetry";
|
|
7
7
|
import { checkForUpdates } from "./version-check";
|
|
8
|
-
const VERSION = "0.2.
|
|
8
|
+
const VERSION = "0.2.4";
|
|
9
9
|
/** Thrown after output is already printed, to signal non-zero exit without an error message. */
|
|
10
10
|
class SilentExitError {
|
|
11
11
|
exitCode;
|
package/dist/src/telemetry.d.ts
CHANGED
package/dist/src/telemetry.js
CHANGED