Skip to content

Commit 6928c03

Browse files
committed
cleanup
1 parent 5ac6eab commit 6928c03

File tree

2 files changed

+14
-49
lines changed

2 files changed

+14
-49
lines changed

deno.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
{
22
"name": "@inspatial/cloud",
3-
"version": "0.1.8",
3+
"version": "0.2.0",
44
"license": "Apache-2.0",
55
"exports": {
66
".": "./mod.ts",
77
"./extensions": "./extensions/mod.ts",
88
"./types": "./types.ts"
99
},
10+
"publish": {
11+
"include": [
12+
"src/",
13+
"examples/",
14+
"extensions/",
15+
"types.ts",
16+
"mod.ts",
17+
"README.md",
18+
"LICENSE"
19+
],
20+
"exclude": [".github/", ".vscode/", ".zed/", "examples/**/.inspatial/"]
21+
},
22+
1023
"imports": {
1124
"#/": "./src/",
1225
"#extensions/": "./extensions/",
Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import type { InCloud } from "#/inspatial-cloud.ts";
2-
import ColorMe from "#/utils/color-me.ts";
3-
import { inLog } from "#/in-log/in-log.ts";
42

53
async function checkForUser(app: InCloud) {
64
const { orm } = app;
@@ -30,7 +28,6 @@ async function checkForUser(app: InCloud) {
3028
}
3129

3230
function promptForUser() {
33-
const subject = "Create User";
3431
let firstName: string | null = "InSpatial";
3532
let lastName: string | null = "Admin";
3633
let email: string | null = "[email protected]";
@@ -41,51 +38,6 @@ function promptForUser() {
4138
email,
4239
password,
4340
};
44-
while (!firstName) {
45-
firstName = prompt(ColorMe.fromOptions("First Name:", {
46-
color: "brightCyan",
47-
}));
48-
if (!firstName) {
49-
inLog.warn("First name cannot be empty", subject);
50-
}
51-
}
52-
while (!lastName) {
53-
lastName = prompt(ColorMe.fromOptions("Last Name:", {
54-
color: "brightCyan",
55-
}));
56-
if (!lastName) {
57-
inLog.warn("Last name cannot be empty", subject);
58-
}
59-
}
60-
while (!email) {
61-
email = prompt(ColorMe.fromOptions("Email:", { color: "brightCyan" }));
62-
if (!email) {
63-
inLog.warn("Email cannot be empty", subject);
64-
}
65-
}
66-
while (!password) {
67-
password = prompt("Password:");
68-
if (!password) {
69-
inLog.warn("Password cannot be empty", subject);
70-
}
71-
}
72-
const user = {
73-
firstName,
74-
lastName,
75-
email,
76-
password,
77-
};
78-
79-
inLog.info(
80-
`User: ${ColorMe.fromOptions(user.firstName, { color: "green" })} ${
81-
ColorMe.fromOptions(
82-
user.lastName,
83-
{ color: "green" },
84-
)
85-
} ${ColorMe.fromOptions(user.email, { color: "green" })}`,
86-
subject,
87-
);
88-
return user;
8941
}
9042

9143
export default checkForUser;

0 commit comments

Comments
 (0)