create-hollware 0.10.0 → 0.11.0
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/index.mjs
CHANGED
|
@@ -17,6 +17,10 @@ const USAGE = [
|
|
|
17
17
|
" --site <key> The key of your site, such as my-site; it never changes (default: my-site)",
|
|
18
18
|
" --preset <name> What the site starts with: blog, docs or empty (default: blog)",
|
|
19
19
|
" --locales <list> Its locales, comma-separated, the first the default (default: en)",
|
|
20
|
+
" --ip-addresses <off|hashed>",
|
|
21
|
+
" Whether the activity log keeps a keyed hash of each address (default: off)",
|
|
22
|
+
" --audit-retention-days <n>",
|
|
23
|
+
" Days each line of the activity log is kept, 30 to 3650 (default: forever)",
|
|
20
24
|
" --pm <npm|pnpm> The package manager that installs (default: npm)",
|
|
21
25
|
" --yes Take the defaults: <dir> is my-hollware when it is not given",
|
|
22
26
|
" --no-install Do not install, migrate or make the site",
|
|
@@ -51,6 +55,8 @@ function readChoices(argv) {
|
|
|
51
55
|
site: { type: "string" },
|
|
52
56
|
preset: { type: "string" },
|
|
53
57
|
locales: { type: "string" },
|
|
58
|
+
"ip-addresses": { type: "string" },
|
|
59
|
+
"audit-retention-days": { type: "string" },
|
|
54
60
|
pm: { type: "string" },
|
|
55
61
|
yes: { type: "boolean" },
|
|
56
62
|
"no-install": { type: "boolean" },
|
|
@@ -78,7 +84,12 @@ function readChoices(argv) {
|
|
|
78
84
|
pm,
|
|
79
85
|
install: values["no-install"] !== true,
|
|
80
86
|
git: values["no-git"] !== true,
|
|
81
|
-
initFlags: [
|
|
87
|
+
initFlags: [
|
|
88
|
+
...values.preset === void 0 ? [] : ["--preset", values.preset],
|
|
89
|
+
...values.locales === void 0 ? [] : ["--locales", values.locales],
|
|
90
|
+
...values["ip-addresses"] === void 0 ? [] : ["--ip-addresses", values["ip-addresses"]],
|
|
91
|
+
...values["audit-retention-days"] === void 0 ? [] : ["--audit-retention-days", values["audit-retention-days"]]
|
|
92
|
+
]
|
|
82
93
|
};
|
|
83
94
|
}
|
|
84
95
|
function replaceIn(path, replacements) {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// Generated by Wrangler by running `wrangler types` (hash:
|
|
2
|
+
// Generated by Wrangler by running `wrangler types` (hash: 8cce72e181db11068cbc639f31cd25a2)
|
|
3
3
|
// Runtime types generated with workerd@1.20261012.1 2026-10-06 global_fetch_strictly_public,no_nodejs_compat,no_nodejs_compat_v2
|
|
4
4
|
interface __BaseEnv_Env {
|
|
5
5
|
OAUTH_KV: KVNamespace;
|
|
6
6
|
DB: D1Database;
|
|
7
7
|
EVENTS: Queue;
|
|
8
|
+
HOLLWARE_RATE_LIMIT: RateLimit;
|
|
8
9
|
ASSETS: Fetcher;
|
|
9
10
|
HOLLWARE_PUBLIC_URL: "http://localhost:5199";
|
|
10
11
|
}
|
package/template/wrangler.jsonc
CHANGED
|
@@ -40,6 +40,15 @@
|
|
|
40
40
|
// The OAuth server's clients, grants and tokens (ADR-026). No id: the first `hollware deploy`
|
|
41
41
|
// creates the namespace and writes its id here.
|
|
42
42
|
"kv_namespaces": [{ "binding": "OAUTH_KV" }],
|
|
43
|
+
// Sign-in, OAuth's token endpoint and the beacon take at most 60 requests a minute from one
|
|
44
|
+
// address each: what a person or a site sends never comes near it.
|
|
45
|
+
"ratelimits": [
|
|
46
|
+
{
|
|
47
|
+
"name": "HOLLWARE_RATE_LIMIT",
|
|
48
|
+
"namespace_id": "1001",
|
|
49
|
+
"simple": { "limit": 60, "period": 60 },
|
|
50
|
+
},
|
|
51
|
+
],
|
|
43
52
|
"d1_databases": [
|
|
44
53
|
{
|
|
45
54
|
"binding": "DB",
|