@vocoder/cli 0.12.0 → 0.12.2
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/README.md +3 -3
- package/dist/bin.mjs +31 -62
- package/dist/bin.mjs.map +1 -1
- package/dist/{chunk-XUCVAFBG.mjs → chunk-2Q3JPWWV.mjs} +5 -5
- package/dist/{chunk-XUCVAFBG.mjs.map → chunk-2Q3JPWWV.mjs.map} +1 -1
- package/dist/lib.d.mts +7 -6
- package/dist/lib.mjs +1 -1
- package/dist/lib.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -44265,10 +44265,10 @@ var VocoderAPI = class {
|
|
|
44265
44265
|
}
|
|
44266
44266
|
}
|
|
44267
44267
|
/**
|
|
44268
|
-
* Add a new
|
|
44268
|
+
* Add a new App to an existing project (monorepo: new app directory).
|
|
44269
44269
|
* Does not check plan limits — no new project is created.
|
|
44270
44270
|
*/
|
|
44271
|
-
async
|
|
44271
|
+
async createApp(userToken, params) {
|
|
44272
44272
|
const response = await fetch(`${this.apiUrl}/api/cli/project/apps`, {
|
|
44273
44273
|
method: "POST",
|
|
44274
44274
|
headers: {
|
|
@@ -44282,7 +44282,7 @@ var VocoderAPI = class {
|
|
|
44282
44282
|
throw new VocoderAPIError({
|
|
44283
44283
|
message: extractErrorMessage(
|
|
44284
44284
|
payload,
|
|
44285
|
-
`Failed to create
|
|
44285
|
+
`Failed to create app (${response.status})`
|
|
44286
44286
|
),
|
|
44287
44287
|
status: response.status,
|
|
44288
44288
|
payload
|
|
@@ -44408,7 +44408,7 @@ import { mkdirSync, readFileSync as readFileSync2, unlinkSync, writeFileSync } f
|
|
|
44408
44408
|
import { homedir } from "os";
|
|
44409
44409
|
import { dirname, join as join2 } from "path";
|
|
44410
44410
|
function getAuthFilePath() {
|
|
44411
|
-
return join2(homedir(), ".
|
|
44411
|
+
return join2(homedir(), ".vocoder", "auth.json");
|
|
44412
44412
|
}
|
|
44413
44413
|
function readAuthData() {
|
|
44414
44414
|
const filePath = getAuthFilePath();
|
|
@@ -51500,4 +51500,4 @@ export {
|
|
|
51500
51500
|
loadVocoderConfig,
|
|
51501
51501
|
StringExtractor
|
|
51502
51502
|
};
|
|
51503
|
-
//# sourceMappingURL=chunk-
|
|
51503
|
+
//# sourceMappingURL=chunk-2Q3JPWWV.mjs.map
|