@repdf/preview 0.0.15 → 0.0.16
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.cjs +7 -4
- package/dist/index.js +7 -4
- package/dist/preview/.next/BUILD_ID +1 -1
- package/dist/preview/.next/build-manifest.json +3 -3
- package/dist/preview/.next/cache/.tsbuildinfo +1 -1
- package/dist/preview/.next/cache/webpack/client-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/client-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/0.pack +0 -0
- package/dist/preview/.next/cache/webpack/server-production/index.pack +0 -0
- package/dist/preview/.next/next-minimal-server.js.nft.json +1 -1
- package/dist/preview/.next/next-server.js.nft.json +1 -1
- package/dist/preview/.next/prerender-manifest.json +1 -1
- package/dist/preview/.next/routes-manifest.json +1 -1
- package/dist/preview/.next/server/chunks/288.js +2 -2
- package/dist/preview/.next/server/middleware-build-manifest.js +1 -1
- package/dist/preview/.next/server/pages/_app.js +1 -1
- package/dist/preview/.next/server/pages/_app.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/_error.js +1 -1
- package/dist/preview/.next/server/pages/_error.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/api/component.js +1 -1
- package/dist/preview/.next/server/pages/api/pdf.js +1 -1
- package/dist/preview/.next/server/pages/api/trpc/[trpc].js +1 -1
- package/dist/preview/.next/server/pages/api/trpc/[trpc].js.nft.json +1 -1
- package/dist/preview/.next/server/pages/en/404.html +1 -1
- package/dist/preview/.next/server/pages/en/500.html +1 -1
- package/dist/preview/.next/server/pages/en/hello.html +1 -1
- package/dist/preview/.next/server/pages/index.js +1 -1
- package/dist/preview/.next/server/pages/index.js.nft.json +1 -1
- package/dist/preview/.next/server/pages/preview/[...relTemplatePath].js +1 -1
- package/dist/preview/.next/server/pages/preview/[...relTemplatePath].js.nft.json +1 -1
- package/dist/preview/.next/server/pages-manifest.json +1 -1
- package/dist/preview/.next/static/chunks/pages/{_app-caf4749cda1fd607.js → _app-3647ba2a9492bf6f.js} +2 -2
- package/dist/preview/.next/trace +14 -14
- package/package.json +2 -2
- /package/dist/preview/.next/static/{1CrsRuCE0pQeCQKjv8YSV → lo0rR1N4wNElIr4ODG6Cy}/_buildManifest.js +0 -0
- /package/dist/preview/.next/static/{1CrsRuCE0pQeCQKjv8YSV → lo0rR1N4wNElIr4ODG6Cy}/_ssgManifest.js +0 -0
package/dist/index.cjs
CHANGED
|
@@ -29,7 +29,7 @@ var import_commander = require("commander");
|
|
|
29
29
|
// package.json
|
|
30
30
|
var package_default = {
|
|
31
31
|
name: "@repdf/preview",
|
|
32
|
-
version: "0.0.
|
|
32
|
+
version: "0.0.16",
|
|
33
33
|
type: "module",
|
|
34
34
|
main: "dist/index.js",
|
|
35
35
|
bin: {
|
|
@@ -89,7 +89,7 @@ var package_default = {
|
|
|
89
89
|
puppeteer: "^23.4.1",
|
|
90
90
|
react: "^18.3.1",
|
|
91
91
|
"react-dom": "^18.3.1",
|
|
92
|
-
"react-use-websocket": "^4.
|
|
92
|
+
"react-use-websocket": "^4.10.0",
|
|
93
93
|
"source-map-js": "^1.2.1",
|
|
94
94
|
"stacktrace-parser": "^0.1.10",
|
|
95
95
|
superjson: "^2.2.1",
|
|
@@ -356,11 +356,14 @@ var startPreviewServer = async (pdfsDirRelativePath, port) => {
|
|
|
356
356
|
if (pathname === "/_next/webpack-hmr") {
|
|
357
357
|
logger_default.info("inside nextjs hot module reloading path");
|
|
358
358
|
nextApp.getUpgradeHandler()(req, socket, head);
|
|
359
|
-
}
|
|
360
|
-
|
|
359
|
+
} else if (pathname === "/api/ws") {
|
|
360
|
+
logger_default.info("inside websocket server path");
|
|
361
361
|
wss.handleUpgrade(req, socket, head, (ws) => {
|
|
362
362
|
wss.emit("connection", ws, req);
|
|
363
363
|
});
|
|
364
|
+
} else {
|
|
365
|
+
logger_default.info("unknown ws path destory socket", pathname);
|
|
366
|
+
socket.destroy();
|
|
364
367
|
}
|
|
365
368
|
});
|
|
366
369
|
});
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { program } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@repdf/preview",
|
|
9
|
-
version: "0.0.
|
|
9
|
+
version: "0.0.16",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -66,7 +66,7 @@ var package_default = {
|
|
|
66
66
|
puppeteer: "^23.4.1",
|
|
67
67
|
react: "^18.3.1",
|
|
68
68
|
"react-dom": "^18.3.1",
|
|
69
|
-
"react-use-websocket": "^4.
|
|
69
|
+
"react-use-websocket": "^4.10.0",
|
|
70
70
|
"source-map-js": "^1.2.1",
|
|
71
71
|
"stacktrace-parser": "^0.1.10",
|
|
72
72
|
superjson: "^2.2.1",
|
|
@@ -332,11 +332,14 @@ var startPreviewServer = async (pdfsDirRelativePath, port) => {
|
|
|
332
332
|
if (pathname === "/_next/webpack-hmr") {
|
|
333
333
|
logger_default.info("inside nextjs hot module reloading path");
|
|
334
334
|
nextApp.getUpgradeHandler()(req, socket, head);
|
|
335
|
-
}
|
|
336
|
-
|
|
335
|
+
} else if (pathname === "/api/ws") {
|
|
336
|
+
logger_default.info("inside websocket server path");
|
|
337
337
|
wss.handleUpgrade(req, socket, head, (ws) => {
|
|
338
338
|
wss.emit("connection", ws, req);
|
|
339
339
|
});
|
|
340
|
+
} else {
|
|
341
|
+
logger_default.info("unknown ws path destory socket", pathname);
|
|
342
|
+
socket.destroy();
|
|
340
343
|
}
|
|
341
344
|
});
|
|
342
345
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
lo0rR1N4wNElIr4ODG6Cy
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"ampDevFiles": [],
|
|
7
7
|
"lowPriorityFiles": [
|
|
8
|
-
"static/
|
|
9
|
-
"static/
|
|
8
|
+
"static/lo0rR1N4wNElIr4ODG6Cy/_buildManifest.js",
|
|
9
|
+
"static/lo0rR1N4wNElIr4ODG6Cy/_ssgManifest.js"
|
|
10
10
|
],
|
|
11
11
|
"rootMainFiles": [],
|
|
12
12
|
"pages": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"static/chunks/framework-e0f347a11a70369e.js",
|
|
22
22
|
"static/chunks/main-58cc12cfc6868a7a.js",
|
|
23
23
|
"static/css/4775703643ebce7c.css",
|
|
24
|
-
"static/chunks/pages/_app-
|
|
24
|
+
"static/chunks/pages/_app-3647ba2a9492bf6f.js"
|
|
25
25
|
],
|
|
26
26
|
"/_error": [
|
|
27
27
|
"static/chunks/webpack-b8f8d6679aaa5f42.js",
|