@fedify/init 2.1.0-dev.438 → 2.1.0-dev.449
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/command.d.ts +6 -6
- package/dist/const.js +4 -1
- package/dist/deno.js +1 -1
- package/dist/json/db-to-check.js +6 -0
- package/dist/json/db-to-check.json +5 -0
- package/dist/json/mq.js +18 -0
- package/dist/json/mq.json +25 -0
- package/package.json +1 -1
package/dist/command.d.ts
CHANGED
|
@@ -12,15 +12,15 @@ declare const initOptions: _optique_core0.Parser<"sync", {
|
|
|
12
12
|
readonly dir: string;
|
|
13
13
|
readonly webFramework: "hono" | "nitro" | "next" | "elysia" | "astro" | "express";
|
|
14
14
|
readonly packageManager: "deno" | "pnpm" | "bun" | "yarn" | "npm";
|
|
15
|
-
readonly kvStore: "denokv" | "redis" | "postgres";
|
|
16
|
-
readonly messageQueue: "denokv" | "redis" | "postgres" | "amqp";
|
|
15
|
+
readonly kvStore: "denokv" | "redis" | "postgres" | "mysql";
|
|
16
|
+
readonly messageQueue: "denokv" | "redis" | "postgres" | "mysql" | "amqp";
|
|
17
17
|
readonly dryRun: boolean;
|
|
18
18
|
}, {
|
|
19
19
|
readonly dir: [_optique_core0.ValueParserResult<string>];
|
|
20
20
|
readonly webFramework: [_optique_core0.ValueParserResult<"hono" | "nitro" | "next" | "elysia" | "astro" | "express">];
|
|
21
21
|
readonly packageManager: [_optique_core0.ValueParserResult<"deno" | "pnpm" | "bun" | "yarn" | "npm">];
|
|
22
|
-
readonly kvStore: [_optique_core0.ValueParserResult<"denokv" | "redis" | "postgres">];
|
|
23
|
-
readonly messageQueue: [_optique_core0.ValueParserResult<"denokv" | "redis" | "postgres" | "amqp">];
|
|
22
|
+
readonly kvStore: [_optique_core0.ValueParserResult<"denokv" | "redis" | "postgres" | "mysql">];
|
|
23
|
+
readonly messageQueue: [_optique_core0.ValueParserResult<"denokv" | "redis" | "postgres" | "mysql" | "amqp">];
|
|
24
24
|
readonly dryRun: _optique_core0.ValueParserResult<boolean>;
|
|
25
25
|
}>;
|
|
26
26
|
/**
|
|
@@ -30,8 +30,8 @@ declare const initCommand: _optique_core0.Parser<"sync", {
|
|
|
30
30
|
readonly dir: string;
|
|
31
31
|
readonly webFramework: "hono" | "nitro" | "next" | "elysia" | "astro" | "express";
|
|
32
32
|
readonly packageManager: "deno" | "pnpm" | "bun" | "yarn" | "npm";
|
|
33
|
-
readonly kvStore: "denokv" | "redis" | "postgres";
|
|
34
|
-
readonly messageQueue: "denokv" | "redis" | "postgres" | "amqp";
|
|
33
|
+
readonly kvStore: "denokv" | "redis" | "postgres" | "mysql";
|
|
34
|
+
readonly messageQueue: "denokv" | "redis" | "postgres" | "mysql" | "amqp";
|
|
35
35
|
readonly dryRun: boolean;
|
|
36
36
|
} & {
|
|
37
37
|
readonly command: "init";
|
package/dist/const.js
CHANGED
|
@@ -21,13 +21,15 @@ const MESSAGE_QUEUE = [
|
|
|
21
21
|
"denokv",
|
|
22
22
|
"redis",
|
|
23
23
|
"postgres",
|
|
24
|
+
"mysql",
|
|
24
25
|
"amqp"
|
|
25
26
|
];
|
|
26
27
|
/** All supported key-value store backend identifiers. */
|
|
27
28
|
const KV_STORE = [
|
|
28
29
|
"denokv",
|
|
29
30
|
"redis",
|
|
30
|
-
"postgres"
|
|
31
|
+
"postgres",
|
|
32
|
+
"mysql"
|
|
31
33
|
];
|
|
32
34
|
/**
|
|
33
35
|
* External database services that need to be running for integration tests.
|
|
@@ -36,6 +38,7 @@ const KV_STORE = [
|
|
|
36
38
|
const DB_TO_CHECK = [
|
|
37
39
|
"redis",
|
|
38
40
|
"postgres",
|
|
41
|
+
"mysql",
|
|
39
42
|
"amqp"
|
|
40
43
|
];
|
|
41
44
|
|
package/dist/deno.js
CHANGED
package/dist/json/db-to-check.js
CHANGED
|
@@ -9,6 +9,11 @@ var postgres = {
|
|
|
9
9
|
"defaultPort": 5432,
|
|
10
10
|
"documentation": "https://www.postgresql.org/download/"
|
|
11
11
|
};
|
|
12
|
+
var mysql = {
|
|
13
|
+
"name": "MySQL/MariaDB",
|
|
14
|
+
"defaultPort": 3306,
|
|
15
|
+
"documentation": "https://dev.mysql.com/doc/mysql-installation-excerpt/en/"
|
|
16
|
+
};
|
|
12
17
|
var amqp = {
|
|
13
18
|
"name": "RabbitMQ",
|
|
14
19
|
"defaultPort": 5672,
|
|
@@ -17,6 +22,7 @@ var amqp = {
|
|
|
17
22
|
var db_to_check_default = {
|
|
18
23
|
redis,
|
|
19
24
|
postgres,
|
|
25
|
+
mysql,
|
|
20
26
|
amqp
|
|
21
27
|
};
|
|
22
28
|
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
"defaultPort": 5432,
|
|
10
10
|
"documentation": "https://www.postgresql.org/download/"
|
|
11
11
|
},
|
|
12
|
+
"mysql": {
|
|
13
|
+
"name": "MySQL/MariaDB",
|
|
14
|
+
"defaultPort": 3306,
|
|
15
|
+
"documentation": "https://dev.mysql.com/doc/mysql-installation-excerpt/en/"
|
|
16
|
+
},
|
|
12
17
|
"amqp": {
|
|
13
18
|
"name": "RabbitMQ",
|
|
14
19
|
"defaultPort": 5672,
|
package/dist/json/mq.js
CHANGED
|
@@ -33,6 +33,23 @@ var postgres = {
|
|
|
33
33
|
"object": "new PostgresMessageQueue(postgres(process.env.POSTGRES_URL))",
|
|
34
34
|
"env": { "POSTGRES_URL": "postgres://postgres@localhost:5432/postgres" }
|
|
35
35
|
};
|
|
36
|
+
var mysql = {
|
|
37
|
+
"label": "MySQL/MariaDB",
|
|
38
|
+
"packageManagers": [
|
|
39
|
+
"deno",
|
|
40
|
+
"bun",
|
|
41
|
+
"npm",
|
|
42
|
+
"yarn",
|
|
43
|
+
"pnpm"
|
|
44
|
+
],
|
|
45
|
+
"dependencies": { "npm:mysql2": "^3.18.0" },
|
|
46
|
+
"imports": {
|
|
47
|
+
"@fedify/mysql": { "MysqlMessageQueue": "MysqlMessageQueue" },
|
|
48
|
+
"mysql2/promise": { "default": "mysql" }
|
|
49
|
+
},
|
|
50
|
+
"object": "new MysqlMessageQueue(mysql.createPool(process.env.MYSQL_URL))",
|
|
51
|
+
"env": { "MYSQL_URL": "mysql://root@localhost/fedify" }
|
|
52
|
+
};
|
|
36
53
|
var amqp = {
|
|
37
54
|
"label": "AMQP (e.g., RabbitMQ)",
|
|
38
55
|
"packageManagers": [
|
|
@@ -61,6 +78,7 @@ var denokv = {
|
|
|
61
78
|
var mq_default = {
|
|
62
79
|
redis,
|
|
63
80
|
postgres,
|
|
81
|
+
mysql,
|
|
64
82
|
amqp,
|
|
65
83
|
denokv
|
|
66
84
|
};
|
package/dist/json/mq.json
CHANGED
|
@@ -49,6 +49,31 @@
|
|
|
49
49
|
"POSTGRES_URL": "postgres://postgres@localhost:5432/postgres"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
+
"mysql": {
|
|
53
|
+
"label": "MySQL/MariaDB",
|
|
54
|
+
"packageManagers": [
|
|
55
|
+
"deno",
|
|
56
|
+
"bun",
|
|
57
|
+
"npm",
|
|
58
|
+
"yarn",
|
|
59
|
+
"pnpm"
|
|
60
|
+
],
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"npm:mysql2": "^3.18.0"
|
|
63
|
+
},
|
|
64
|
+
"imports": {
|
|
65
|
+
"@fedify/mysql": {
|
|
66
|
+
"MysqlMessageQueue": "MysqlMessageQueue"
|
|
67
|
+
},
|
|
68
|
+
"mysql2/promise": {
|
|
69
|
+
"default": "mysql"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"object": "new MysqlMessageQueue(mysql.createPool(process.env.MYSQL_URL))",
|
|
73
|
+
"env": {
|
|
74
|
+
"MYSQL_URL": "mysql://root@localhost/fedify"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
52
77
|
"amqp": {
|
|
53
78
|
"label": "AMQP (e.g., RabbitMQ)",
|
|
54
79
|
"packageManagers": [
|