@notionhq/custom-blocks-dev-shell 0.1.76 → 0.1.78
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/bin/cli.js +5 -3
- package/dist/index.html +10 -10
- package/package.json +2 -2
package/bin/cli.js
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
* The package exposes this file as its CLI entry point. Keep the wrapper dependency-free.
|
|
6
6
|
*/
|
|
7
7
|
try {
|
|
8
|
-
await import(new URL("../dist-cli/published-cli.js", import.meta.url))
|
|
8
|
+
await import(new URL("../dist-cli/published-cli.js", import.meta.url).href)
|
|
9
9
|
} catch (error) {
|
|
10
10
|
if (
|
|
11
|
-
error
|
|
12
|
-
|
|
11
|
+
error instanceof Error &&
|
|
12
|
+
"code" in error &&
|
|
13
|
+
error.code === "ERR_MODULE_NOT_FOUND" &&
|
|
14
|
+
error.message.includes("dist-cli")
|
|
13
15
|
) {
|
|
14
16
|
process.stderr.write(
|
|
15
17
|
"✗ Could not locate the built CLI. Reinstall the dev shell package.\n",
|
package/dist/index.html
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Workers local shell</title>
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-YFQJm-TG.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B-371Yik.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="root"></div>
|
|
12
|
+
</body>
|
|
13
13
|
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@notionhq/custom-blocks-dev-shell",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.78",
|
|
4
4
|
"description": "Local preview shell for Notion custom block workers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"typescript": "^7.0.2",
|
|
35
35
|
"vite": "^8.2.2",
|
|
36
36
|
"vitest": "^5.0.0",
|
|
37
|
-
"@notionhq/custom-blocks-host": "0.1.
|
|
37
|
+
"@notionhq/custom-blocks-host": "0.1.24",
|
|
38
38
|
"@notionhq/custom-blocks-protocol": "0.1.0"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|