vectorvesper 0.1.0 → 0.1.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/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -451,7 +451,8 @@ async function fetchWithRetry(url) {
|
|
|
451
451
|
"User-Agent": "vv-cli",
|
|
452
452
|
"Accept": "application/json"
|
|
453
453
|
};
|
|
454
|
-
|
|
454
|
+
const isPublicRegistry = url.includes("raw.githubusercontent.com");
|
|
455
|
+
if (token && !isPublicRegistry) {
|
|
455
456
|
headers["Authorization"] = `Bearer ${token}`;
|
|
456
457
|
logger.debug(`Using auth token for request`);
|
|
457
458
|
}
|
|
@@ -814,7 +815,7 @@ async function addCommand(slug, options = {}) {
|
|
|
814
815
|
import fs6 from "fs";
|
|
815
816
|
import path6 from "path";
|
|
816
817
|
import pc5 from "picocolors";
|
|
817
|
-
var CLI_VERSION = true ? "0.1.
|
|
818
|
+
var CLI_VERSION = true ? "0.1.1" : "0.0.0-dev";
|
|
818
819
|
async function infoCommand() {
|
|
819
820
|
console.log(pc5.bold(pc5.cyan("\nVector Vesper Diagnostics\n")));
|
|
820
821
|
const projectInfo = detectProject();
|
|
@@ -1123,7 +1124,7 @@ async function whoamiCommand() {
|
|
|
1123
1124
|
}
|
|
1124
1125
|
|
|
1125
1126
|
// src/index.ts
|
|
1126
|
-
var version = true ? "0.1.
|
|
1127
|
+
var version = true ? "0.1.1" : "0.0.0-dev";
|
|
1127
1128
|
var program = new Command();
|
|
1128
1129
|
program.name("vv").description("Vector Vesper CLI \u2014 add visual components to your React project").version(version).option("--verbose", "Show detailed debug output").hook("preAction", (thisCommand) => {
|
|
1129
1130
|
const opts = thisCommand.opts();
|