@docubook/flame 1.6.2 → 1.6.3
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/.docu/lib/build.deno.js +2 -2
- package/.docu/lib/{build.impl-CFTUVIX7.js → build.impl-GH62P623.js} +2 -2
- package/.docu/lib/build.node.js +2 -2
- package/.docu/lib/{chunk-KHRQUSNL.js → chunk-66756URY.js} +7 -2
- package/.docu/lib/{chunk-TU7G4RJV.js → chunk-DJTS6D3J.js} +1 -1
- package/.docu/lib/{chunk-N25ZVCKO.js → chunk-DSGJHYQX.js} +1 -1
- package/.docu/lib/{chunk-OREEWUOV.js → chunk-JM7HWEF6.js} +1 -1
- package/.docu/lib/{chunk-77NNQDFX.js → chunk-KLB4S2KT.js} +1 -1
- package/.docu/lib/clean.js +1 -1
- package/.docu/lib/deploy.deno.js +1 -1
- package/.docu/lib/deploy.node.js +1 -1
- package/.docu/lib/preview.deno.js +2 -2
- package/.docu/lib/preview.node.js +2 -2
- package/.docu/lib/server.deno.js +2 -2
- package/.docu/lib/server.node.js +2 -2
- package/.docu/node/deploy.shared.ts +6 -1
- package/.docu/node/deploy.ts +0 -1
- package/package.json +3 -3
package/.docu/lib/build.deno.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runBuildCli
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JM7HWEF6.js";
|
|
4
4
|
import "./chunk-WSJC3PRH.js";
|
|
5
5
|
import "./chunk-EOK6KATZ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DJTS6D3J.js";
|
|
7
7
|
import "./chunk-4IQXHHPF.js";
|
|
8
8
|
|
|
9
9
|
// .docu/node/build.deno.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runBuild,
|
|
3
3
|
runBuildCli
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JM7HWEF6.js";
|
|
5
5
|
import "./chunk-WSJC3PRH.js";
|
|
6
6
|
import "./chunk-EOK6KATZ.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-DJTS6D3J.js";
|
|
8
8
|
import "./chunk-4IQXHHPF.js";
|
|
9
9
|
export {
|
|
10
10
|
runBuild,
|
package/.docu/lib/build.node.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runBuildCli
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JM7HWEF6.js";
|
|
4
4
|
import "./chunk-WSJC3PRH.js";
|
|
5
5
|
import "./chunk-EOK6KATZ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DJTS6D3J.js";
|
|
7
7
|
import "./chunk-4IQXHHPF.js";
|
|
8
8
|
|
|
9
9
|
// .docu/node/build.node.ts
|
|
@@ -24,6 +24,7 @@ var NGINX_CONF = `server {
|
|
|
24
24
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
|
|
25
25
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
26
26
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
27
|
+
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'" always;
|
|
27
28
|
|
|
28
29
|
location /assets/ {
|
|
29
30
|
expires 1y;
|
|
@@ -33,6 +34,7 @@ var NGINX_CONF = `server {
|
|
|
33
34
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
|
|
34
35
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
35
36
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
37
|
+
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'" always;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
location /docs/assets/ {
|
|
@@ -43,6 +45,7 @@ var NGINX_CONF = `server {
|
|
|
43
45
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
|
|
44
46
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
45
47
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
48
|
+
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'" always;
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
location / {
|
|
@@ -104,7 +107,10 @@ function detectPkgManager(dir) {
|
|
|
104
107
|
var HEADERS_FILE = `/*
|
|
105
108
|
X-Frame-Options: DENY
|
|
106
109
|
X-Content-Type-Options: nosniff
|
|
110
|
+
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
|
|
107
111
|
Referrer-Policy: strict-origin-when-cross-origin
|
|
112
|
+
Permissions-Policy: camera=(), microphone=(), geolocation=()
|
|
113
|
+
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'
|
|
108
114
|
|
|
109
115
|
/assets/*
|
|
110
116
|
Cache-Control: public, max-age=31536000, immutable
|
|
@@ -127,7 +133,7 @@ async function runBuild() {
|
|
|
127
133
|
process.env.FLAME_BUILD_SILENT = "1";
|
|
128
134
|
process.env.LOG_LEVEL = "error";
|
|
129
135
|
}
|
|
130
|
-
const { runBuildCli } = await import("./build.impl-
|
|
136
|
+
const { runBuildCli } = await import("./build.impl-GH62P623.js");
|
|
131
137
|
await runBuildCli();
|
|
132
138
|
}
|
|
133
139
|
async function writeDockerFiles() {
|
|
@@ -146,7 +152,6 @@ RUN ${pm.runCmd} run build
|
|
|
146
152
|
FROM nginx:alpine
|
|
147
153
|
COPY --from=builder /app/.docu/dist /usr/share/nginx/html
|
|
148
154
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
149
|
-
USER nginx
|
|
150
155
|
EXPOSE 80
|
|
151
156
|
CMD ["nginx", "-g", "daemon off;"]
|
|
152
157
|
`
|
package/.docu/lib/clean.js
CHANGED
package/.docu/lib/deploy.deno.js
CHANGED
package/.docu/lib/deploy.node.js
CHANGED
package/.docu/lib/server.deno.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLB4S2KT.js";
|
|
4
4
|
import "./chunk-WSJC3PRH.js";
|
|
5
5
|
import "./chunk-EOK6KATZ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DJTS6D3J.js";
|
|
7
7
|
import "./chunk-4IQXHHPF.js";
|
|
8
8
|
|
|
9
9
|
// .docu/node/server.deno.ts
|
package/.docu/lib/server.node.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KLB4S2KT.js";
|
|
4
4
|
import "./chunk-WSJC3PRH.js";
|
|
5
5
|
import "./chunk-EOK6KATZ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-DJTS6D3J.js";
|
|
7
7
|
import "./chunk-4IQXHHPF.js";
|
|
8
8
|
|
|
9
9
|
// .docu/node/server.node.ts
|
|
@@ -31,6 +31,7 @@ export const NGINX_CONF = `server {
|
|
|
31
31
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
|
|
32
32
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
33
33
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
34
|
+
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'" always;
|
|
34
35
|
|
|
35
36
|
location /assets/ {
|
|
36
37
|
expires 1y;
|
|
@@ -40,6 +41,7 @@ export const NGINX_CONF = `server {
|
|
|
40
41
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
|
|
41
42
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
42
43
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
44
|
+
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'" always;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
location /docs/assets/ {
|
|
@@ -50,6 +52,7 @@ export const NGINX_CONF = `server {
|
|
|
50
52
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
|
|
51
53
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
52
54
|
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
|
55
|
+
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'" always;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
location / {
|
|
@@ -126,7 +129,10 @@ export function detectPkgManager(dir: string): {
|
|
|
126
129
|
export const HEADERS_FILE = `/*
|
|
127
130
|
X-Frame-Options: DENY
|
|
128
131
|
X-Content-Type-Options: nosniff
|
|
132
|
+
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
|
|
129
133
|
Referrer-Policy: strict-origin-when-cross-origin
|
|
134
|
+
Permissions-Policy: camera=(), microphone=(), geolocation=()
|
|
135
|
+
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' data:; connect-src 'self' https:; frame-src https://www.youtube-nocookie.com; frame-ancestors 'none'
|
|
130
136
|
|
|
131
137
|
/assets/*
|
|
132
138
|
Cache-Control: public, max-age=31536000, immutable
|
|
@@ -172,7 +178,6 @@ RUN ${pm.runCmd} run build
|
|
|
172
178
|
FROM nginx:alpine
|
|
173
179
|
COPY --from=builder /app/.docu/dist /usr/share/nginx/html
|
|
174
180
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
175
|
-
USER nginx
|
|
176
181
|
EXPOSE 80
|
|
177
182
|
CMD ["nginx", "-g", "daemon off;"]
|
|
178
183
|
`
|
package/.docu/node/deploy.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docubook/flame",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "A blazing-fast React + MDX framework powered by Bun, built for modern documentation experiences.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@docubook/core": "^1.8.2",
|
|
58
58
|
"@docubook/mdx-content": "^3.4.5",
|
|
59
59
|
"@docubook/runt": "^1.0.0",
|
|
60
|
-
"@docubook/
|
|
61
|
-
"@docubook/
|
|
60
|
+
"@docubook/themes-colors": "^1.0.2",
|
|
61
|
+
"@docubook/ui-react": "^1.0.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@sentry/bun": "^10.0.0"
|