create-cloudflare 0.0.0-e33bb44a → 0.0.0-e72a5794
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
CHANGED
|
@@ -59412,7 +59412,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
59412
59412
|
var yargs_default = Yargs;
|
|
59413
59413
|
|
|
59414
59414
|
// package.json
|
|
59415
|
-
var version = "0.0.0-
|
|
59415
|
+
var version = "0.0.0-e72a5794";
|
|
59416
59416
|
|
|
59417
59417
|
// src/common.ts
|
|
59418
59418
|
var import_fs6 = require("fs");
|
|
@@ -59514,6 +59514,9 @@ var runCommand = async (command2, opts = {}) => {
|
|
|
59514
59514
|
}
|
|
59515
59515
|
}
|
|
59516
59516
|
});
|
|
59517
|
+
cmd.on("error", (code) => {
|
|
59518
|
+
reject(code);
|
|
59519
|
+
});
|
|
59517
59520
|
});
|
|
59518
59521
|
}
|
|
59519
59522
|
});
|
|
@@ -59624,10 +59627,14 @@ var installWrangler = async () => {
|
|
|
59624
59627
|
};
|
|
59625
59628
|
var isLoggedIn = async () => {
|
|
59626
59629
|
const { npx: npx6 } = detectPackageManager();
|
|
59627
|
-
|
|
59628
|
-
|
|
59629
|
-
|
|
59630
|
-
|
|
59630
|
+
try {
|
|
59631
|
+
const output = await runCommand(`${npx6} wrangler whoami`, {
|
|
59632
|
+
silent: true
|
|
59633
|
+
});
|
|
59634
|
+
return /You are logged in/.test(output);
|
|
59635
|
+
} catch (error) {
|
|
59636
|
+
return false;
|
|
59637
|
+
}
|
|
59631
59638
|
};
|
|
59632
59639
|
var wranglerLogin = async () => {
|
|
59633
59640
|
const { npx: npx6 } = detectPackageManager();
|
package/package.json
CHANGED