faustwave 0.98.0 → 0.98.1
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/npm/faustwave.mjs +14 -5
- package/package.json +1 -1
package/dist/npm/faustwave.mjs
CHANGED
|
@@ -9056,8 +9056,17 @@ function newer(a, b) {
|
|
|
9056
9056
|
}
|
|
9057
9057
|
async function latest() {
|
|
9058
9058
|
try {
|
|
9059
|
-
const
|
|
9060
|
-
const
|
|
9059
|
+
const { get } = await import("node:https");
|
|
9060
|
+
const body = await new Promise((resolve, reject) => {
|
|
9061
|
+
const req = get(`https://registry.npmjs.org/${NAME}/latest`, { agent: false, timeout: 2e3 }, (res) => {
|
|
9062
|
+
if (res.statusCode !== 200) return res.resume(), resolve("{}");
|
|
9063
|
+
let text2 = "";
|
|
9064
|
+
res.setEncoding("utf8");
|
|
9065
|
+
res.on("data", (chunk) => text2 += chunk).on("end", () => resolve(text2));
|
|
9066
|
+
});
|
|
9067
|
+
req.on("timeout", () => req.destroy(new Error("timeout"))).on("error", reject);
|
|
9068
|
+
});
|
|
9069
|
+
const version2 = JSON.parse(body).version;
|
|
9061
9070
|
return version2 && /^\d+\.\d+\.\d+(-[\w.]+)?$/.test(version2) ? version2 : null;
|
|
9062
9071
|
} catch {
|
|
9063
9072
|
return null;
|
|
@@ -9141,7 +9150,7 @@ var init_update = __esm({
|
|
|
9141
9150
|
"src/update.ts"() {
|
|
9142
9151
|
"use strict";
|
|
9143
9152
|
init_pipe();
|
|
9144
|
-
VERSION2 = false ? null : "0.98.
|
|
9153
|
+
VERSION2 = false ? null : "0.98.1";
|
|
9145
9154
|
NAME = "faustwave";
|
|
9146
9155
|
DAY = 24 * 60 * 60 * 1e3;
|
|
9147
9156
|
file = () => path7.join(userData(), "cli-update.json");
|
|
@@ -31389,7 +31398,7 @@ init_pipe();
|
|
|
31389
31398
|
// package.json
|
|
31390
31399
|
var package_default = {
|
|
31391
31400
|
name: "faustwave",
|
|
31392
|
-
version: "0.98.
|
|
31401
|
+
version: "0.98.1",
|
|
31393
31402
|
description: "The FaustWave CLI \u2014 a Faust patch as a WebCLAP plugin with its page, from a terminal or a script.",
|
|
31394
31403
|
keywords: [
|
|
31395
31404
|
"faust",
|
|
@@ -31590,7 +31599,7 @@ The admin:
|
|
|
31590
31599
|
yank <slug> <version> withdraw a published release
|
|
31591
31600
|
releases <slug> any app's releases
|
|
31592
31601
|
app visibility <slug> <draft | unlisted | public>`;
|
|
31593
|
-
var VERSION3 = false ? null : "0.98.
|
|
31602
|
+
var VERSION3 = false ? null : "0.98.1";
|
|
31594
31603
|
var usage = (admin) => `faustwave \u2014 build WebCLAP plugins from Faust patches and publish them on faustwave.io
|
|
31595
31604
|
|
|
31596
31605
|
faustwave <command> [options]
|