apiblaze 0.17.9 → 0.17.11
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/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -699,7 +699,7 @@ var import_commander = require("commander");
|
|
|
699
699
|
var import_chalk37 = __toESM(require("chalk"));
|
|
700
700
|
|
|
701
701
|
// package.json
|
|
702
|
-
var version = "0.17.
|
|
702
|
+
var version = "0.17.11";
|
|
703
703
|
|
|
704
704
|
// src/index.ts
|
|
705
705
|
init_types();
|
|
@@ -5026,7 +5026,7 @@ async function provision(spec2, target, opts) {
|
|
|
5026
5026
|
}
|
|
5027
5027
|
if (!base && spec2.info && typeof spec2.info.title === "string") base = normalizeName2(spec2.info.title);
|
|
5028
5028
|
if (!base || base.length < 3) base = "apichat";
|
|
5029
|
-
let name = opts.name ? base : `${base}
|
|
5029
|
+
let name = opts.name ? base : `${base}${salt()}`;
|
|
5030
5030
|
const spinner = (0, import_ora16.default)("Provisioning an api_key proxy...").start();
|
|
5031
5031
|
let result;
|
|
5032
5032
|
for (let attempt = 0; attempt < 4; attempt++) {
|
|
@@ -5063,7 +5063,7 @@ async function provision(spec2, target, opts) {
|
|
|
5063
5063
|
const status = err instanceof ApiError ? err.status : void 0;
|
|
5064
5064
|
const collision = err instanceof ApiError && (err.status === 409 || /exist|taken|available/i.test(err.message));
|
|
5065
5065
|
if (collision && attempt < 3) {
|
|
5066
|
-
name = `${base}
|
|
5066
|
+
name = `${base}${salt()}`;
|
|
5067
5067
|
continue;
|
|
5068
5068
|
}
|
|
5069
5069
|
if (status === 401) {
|