fastpass-cli 0.2.3 → 0.2.4
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/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastpass-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Cloudflare Access in 60 seconds.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"fastpass-cli": "./bin/fastpass.js"
|
|
7
|
+
"fastpass-cli": "./bin/fastpass-cli.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin/",
|
package/src/cli.js
CHANGED
package/src/commands/list.js
CHANGED
|
@@ -14,7 +14,7 @@ export async function list(api) {
|
|
|
14
14
|
|
|
15
15
|
if (!result?.length) {
|
|
16
16
|
console.log(pc.dim('\n No Access applications found.\n'));
|
|
17
|
-
console.log(` Run ${pc.cyan('fastpass protect <domain>')} to get started.\n`);
|
|
17
|
+
console.log(` Run ${pc.cyan('fastpass-cli protect <domain>')} to get started.\n`);
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
20
|
|
package/src/commands/protect.js
CHANGED
|
@@ -39,8 +39,8 @@ export async function protect(api, opts = {}) {
|
|
|
39
39
|
const existing = await checkExistingApp(api, domain.trim());
|
|
40
40
|
if (existing) {
|
|
41
41
|
console.log(`\n ${pc.yellow('This domain is already protected by Access.')}\n`);
|
|
42
|
-
console.log(` Run ${pc.cyan(`fastpass inspect ${domain.trim()}`)} to view its configuration.`);
|
|
43
|
-
console.log(` Run ${pc.cyan(`fastpass remove ${domain.trim()}`)} to remove it first.\n`);
|
|
42
|
+
console.log(` Run ${pc.cyan(`fastpass-cli inspect ${domain.trim()}`)} to view its configuration.`);
|
|
43
|
+
console.log(` Run ${pc.cyan(`fastpass-cli remove ${domain.trim()}`)} to remove it first.\n`);
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -135,8 +135,8 @@ export async function protect(api, opts = {}) {
|
|
|
135
135
|
s.fail(`Failed to create Access application for ${pc.bold(domain.trim())}`);
|
|
136
136
|
if (err instanceof ApiError && err.message.includes('application_already_exists')) {
|
|
137
137
|
console.log(`\n ${pc.yellow('This domain is already protected by Access.')}\n`);
|
|
138
|
-
console.log(` Run ${pc.cyan(`fastpass inspect ${domain.trim()}`)} to view its configuration.`);
|
|
139
|
-
console.log(` Run ${pc.cyan(`fastpass remove ${domain.trim()}`)} to remove it first.\n`);
|
|
138
|
+
console.log(` Run ${pc.cyan(`fastpass-cli inspect ${domain.trim()}`)} to view its configuration.`);
|
|
139
|
+
console.log(` Run ${pc.cyan(`fastpass-cli remove ${domain.trim()}`)} to remove it first.\n`);
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
142
|
throw err;
|
|
File without changes
|