betterstart-cli 0.0.38 → 0.0.40
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/cli.js +11 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -22176,6 +22176,11 @@ function scaffoldEnv(cwd, options) {
|
|
|
22176
22176
|
}
|
|
22177
22177
|
|
|
22178
22178
|
// adapters/next/init/prompts/plugins.ts
|
|
22179
|
+
function maskBlobToken(token) {
|
|
22180
|
+
const match = /^(vercel_blob_rw_[A-Za-z0-9]+)_/.exec(token);
|
|
22181
|
+
if (match) return `${match[1]}_***`;
|
|
22182
|
+
return `${token.slice(0, 8)}***`;
|
|
22183
|
+
}
|
|
22179
22184
|
async function promptPlugins(cwd, options = {}) {
|
|
22180
22185
|
const sections = [];
|
|
22181
22186
|
const overwriteKeys = /* @__PURE__ */ new Set();
|
|
@@ -22217,7 +22222,6 @@ async function promptPlugins(cwd, options = {}) {
|
|
|
22217
22222
|
const flow = !existingToken && options.provisionVercelBlob ? await options.provisionVercelBlob() : void 0;
|
|
22218
22223
|
if (flow?.ok && flow.token) {
|
|
22219
22224
|
persistBlobReadWriteToken(cwd, flow.token);
|
|
22220
|
-
p12.log.success("Saved BLOB_READ_WRITE_TOKEN to .env.local");
|
|
22221
22225
|
sections.push({
|
|
22222
22226
|
header: "Storage (Vercel Blob)",
|
|
22223
22227
|
vars: [{ key: "BLOB_READ_WRITE_TOKEN", value: flow.token }]
|
|
@@ -22236,7 +22240,12 @@ async function promptPlugins(cwd, options = {}) {
|
|
|
22236
22240
|
storageStep.skip();
|
|
22237
22241
|
} else {
|
|
22238
22242
|
if (existingToken) {
|
|
22239
|
-
p12.log.info(
|
|
22243
|
+
p12.log.info(
|
|
22244
|
+
`Using the existing Vercel Blob token from .env.local ${styleText(
|
|
22245
|
+
"dim",
|
|
22246
|
+
`(${maskBlobToken(existingToken)})`
|
|
22247
|
+
)}`
|
|
22248
|
+
);
|
|
22240
22249
|
}
|
|
22241
22250
|
mergeIntegrationConfig(await collectIntegrationConfig(cwd, ["vercel-blob"]));
|
|
22242
22251
|
storageStep.confirm();
|
|
@@ -25867,7 +25876,6 @@ async function runInitCommand(name, options) {
|
|
|
25867
25876
|
});
|
|
25868
25877
|
if (flow.ok && flow.token) {
|
|
25869
25878
|
persistBlobReadWriteToken(cwd, flow.token);
|
|
25870
|
-
p18.log.success(`Saved BLOB_READ_WRITE_TOKEN to ${pc7.cyan(".env.local")}`);
|
|
25871
25879
|
collectedIntegrationConfig.sections.push({
|
|
25872
25880
|
header: "Storage (Vercel Blob)",
|
|
25873
25881
|
vars: [{ key: "BLOB_READ_WRITE_TOKEN", value: flow.token }]
|