@repdf/preview 0.0.16 → 0.0.17

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.
Files changed (85) hide show
  1. package/dist/index.cjs +9 -15
  2. package/dist/index.js +9 -15
  3. package/dist/preview/.next/BUILD_ID +1 -1
  4. package/dist/preview/.next/build-manifest.json +8 -7
  5. package/dist/preview/.next/cache/.tsbuildinfo +1 -1
  6. package/dist/preview/.next/cache/webpack/client-development/0.pack.gz +0 -0
  7. package/dist/preview/.next/cache/webpack/client-development/1.pack.gz +0 -0
  8. package/dist/preview/.next/cache/webpack/client-development/10.pack.gz +0 -0
  9. package/dist/preview/.next/cache/webpack/client-development/11.pack.gz +0 -0
  10. package/dist/preview/.next/cache/webpack/client-development/12.pack.gz +0 -0
  11. package/dist/preview/.next/cache/webpack/client-development/13.pack.gz +0 -0
  12. package/dist/preview/.next/cache/webpack/client-development/14.pack.gz +0 -0
  13. package/dist/preview/.next/cache/webpack/client-development/15.pack.gz +0 -0
  14. package/dist/preview/.next/cache/webpack/client-development/16.pack.gz +0 -0
  15. package/dist/preview/.next/cache/webpack/client-development/2.pack.gz +0 -0
  16. package/dist/preview/.next/cache/webpack/client-development/3.pack.gz +0 -0
  17. package/dist/preview/.next/cache/webpack/client-development/4.pack.gz +0 -0
  18. package/dist/preview/.next/cache/webpack/client-development/5.pack.gz +0 -0
  19. package/dist/preview/.next/cache/webpack/client-development/6.pack.gz +0 -0
  20. package/dist/preview/.next/cache/webpack/client-development/7.pack.gz +0 -0
  21. package/dist/preview/.next/cache/webpack/client-development/8.pack.gz +0 -0
  22. package/dist/preview/.next/cache/webpack/client-development/9.pack.gz +0 -0
  23. package/dist/preview/.next/cache/webpack/client-development/index.pack.gz +0 -0
  24. package/dist/preview/.next/cache/webpack/client-development/index.pack.gz.old +0 -0
  25. package/dist/preview/.next/cache/webpack/client-development-fallback/0.pack.gz +0 -0
  26. package/dist/preview/.next/cache/webpack/client-development-fallback/index.pack.gz.old +0 -0
  27. package/dist/preview/.next/cache/webpack/client-production/0.pack +0 -0
  28. package/dist/preview/.next/cache/webpack/client-production/index.pack +0 -0
  29. package/dist/preview/.next/cache/webpack/client-production/index.pack.old +0 -0
  30. package/dist/preview/.next/cache/webpack/edge-server-production/index.pack +0 -0
  31. package/dist/preview/.next/cache/webpack/server-development/0.pack.gz +0 -0
  32. package/dist/preview/.next/cache/webpack/server-development/1.pack.gz +0 -0
  33. package/dist/preview/.next/cache/webpack/server-development/10.pack.gz +0 -0
  34. package/dist/preview/.next/cache/webpack/server-development/11.pack.gz +0 -0
  35. package/dist/preview/.next/cache/webpack/server-development/12.pack.gz +0 -0
  36. package/dist/preview/.next/cache/webpack/server-development/13.pack.gz +0 -0
  37. package/dist/preview/.next/cache/webpack/server-development/14.pack.gz +0 -0
  38. package/dist/preview/.next/cache/webpack/server-development/15.pack.gz +0 -0
  39. package/dist/preview/.next/cache/webpack/server-development/16.pack.gz +0 -0
  40. package/dist/preview/.next/cache/webpack/server-development/2.pack.gz +0 -0
  41. package/dist/preview/.next/cache/webpack/server-development/3.pack.gz +0 -0
  42. package/dist/preview/.next/cache/webpack/server-development/4.pack.gz +0 -0
  43. package/dist/preview/.next/cache/webpack/server-development/5.pack.gz +0 -0
  44. package/dist/preview/.next/cache/webpack/server-development/6.pack.gz +0 -0
  45. package/dist/preview/.next/cache/webpack/server-development/7.pack.gz +0 -0
  46. package/dist/preview/.next/cache/webpack/server-development/8.pack.gz +0 -0
  47. package/dist/preview/.next/cache/webpack/server-development/9.pack.gz +0 -0
  48. package/dist/preview/.next/cache/webpack/server-development/index.pack.gz +0 -0
  49. package/dist/preview/.next/cache/webpack/server-development/index.pack.gz.old +0 -0
  50. package/dist/preview/.next/cache/webpack/server-production/0.pack +0 -0
  51. package/dist/preview/.next/cache/webpack/server-production/index.pack +0 -0
  52. package/dist/preview/.next/cache/webpack/server-production/index.pack.old +0 -0
  53. package/dist/preview/.next/next-minimal-server.js.nft.json +1 -1
  54. package/dist/preview/.next/next-server.js.nft.json +1 -1
  55. package/dist/preview/.next/prerender-manifest.json +1 -1
  56. package/dist/preview/.next/routes-manifest.json +1 -1
  57. package/dist/preview/.next/server/chunks/288.js +2 -2
  58. package/dist/preview/.next/server/middleware-build-manifest.js +1 -1
  59. package/dist/preview/.next/server/pages/_app.js +1 -1
  60. package/dist/preview/.next/server/pages/_app.js.nft.json +1 -1
  61. package/dist/preview/.next/server/pages/_error.js +1 -1
  62. package/dist/preview/.next/server/pages/_error.js.nft.json +1 -1
  63. package/dist/preview/.next/server/pages/api/pdf.js +1 -1
  64. package/dist/preview/.next/server/pages/api/trpc/[trpc].js.nft.json +1 -1
  65. package/dist/preview/.next/server/pages/en/404.html +1 -1
  66. package/dist/preview/.next/server/pages/en/500.html +1 -1
  67. package/dist/preview/.next/server/pages/en/hello.html +1 -1
  68. package/dist/preview/.next/server/pages/index.js +53 -1
  69. package/dist/preview/.next/server/pages/index.js.nft.json +1 -1
  70. package/dist/preview/.next/server/pages/preview/[...relTemplatePath].js +1 -1
  71. package/dist/preview/.next/server/pages/preview/[...relTemplatePath].js.nft.json +1 -1
  72. package/dist/preview/.next/server/pages-manifest.json +1 -1
  73. package/dist/preview/.next/static/S0LfO37YMLHJNvMGk_OGT/_buildManifest.js +1 -0
  74. package/dist/preview/.next/static/chunks/138-c24eca17d1ad2527.js +1 -0
  75. package/dist/preview/.next/static/chunks/pages/{_app-3647ba2a9492bf6f.js → _app-2de82f9e83b4c360.js} +3 -3
  76. package/dist/preview/.next/static/chunks/pages/index-cfb3abc654808c53.js +1 -0
  77. package/dist/preview/.next/static/chunks/pages/preview/[...relTemplatePath]-d073643405d70bc7.js +1 -0
  78. package/dist/preview/.next/static/css/{4775703643ebce7c.css → ba34de3f88ea3d7b.css} +1 -1
  79. package/dist/preview/.next/trace +14 -14
  80. package/package.json +2 -3
  81. package/dist/preview/.next/static/chunks/11-c3207764c75fac42.js +0 -1
  82. package/dist/preview/.next/static/chunks/pages/index-87aa243f34ebeb5e.js +0 -1
  83. package/dist/preview/.next/static/chunks/pages/preview/[...relTemplatePath]-c13e695dc8db2407.js +0 -1
  84. package/dist/preview/.next/static/lo0rR1N4wNElIr4ODG6Cy/_buildManifest.js +0 -1
  85. /package/dist/preview/.next/static/{lo0rR1N4wNElIr4ODG6Cy → S0LfO37YMLHJNvMGk_OGT}/_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.16",
32
+ version: "0.0.17",
33
33
  type: "module",
34
34
  main: "dist/index.js",
35
35
  bin: {
@@ -52,7 +52,7 @@ var package_default = {
52
52
  tsup: "tsup --tsconfig tsconfig.build.json && node build-preview-server.js",
53
53
  build: "next build",
54
54
  dev: "next dev -p 3005",
55
- "dev:live": "tsx src/cli/index.ts dev",
55
+ "dev:live": "tsx watch src/cli/index.ts dev",
56
56
  "dev:live:notused": "tsup --tsconfig tsconfig.build.json --watch",
57
57
  lint: "next lint",
58
58
  start: "next start",
@@ -111,7 +111,6 @@ var package_default = {
111
111
  "@types/react-dom": "^18.3.1",
112
112
  "@types/ws": "^8.5.12",
113
113
  postcss: "^8.4.39",
114
- "prettier-plugin-tailwindcss": "^0.6.8",
115
114
  "react-email": "3.0.1",
116
115
  tailwindcss: "^3.4.13",
117
116
  typescript: "^5.6.3"
@@ -262,13 +261,11 @@ function pdfTemplateWatcher() {
262
261
  // Ignore dot files
263
262
  });
264
263
  watcher2.add(Array.from(allFiles));
265
- watcher2.on("add", (filePath) => logger_default.debug(`File ${filePath} has been added`)).on(
266
- "change",
267
- (filePath) => logger_default.debug(`File ${filePath} has been changed`)
268
- ).on(
269
- "unlink",
270
- (filePath) => logger_default.debug(`File ${filePath} has been removed`)
271
- ).on("error", (error) => logger_default.error(`Watcher error: ${error}`));
264
+ watcher2.on("add", (filePath) => {
265
+ logger_default.debug(`File ${filePath} has been added`);
266
+ }).on("change", (filePath) => {
267
+ }).on("unlink", (filePath) => {
268
+ }).on("error", (error) => logger_default.error(`Watcher error: ${error}`));
272
269
  return watcher2;
273
270
  }
274
271
 
@@ -356,14 +353,11 @@ var startPreviewServer = async (pdfsDirRelativePath, port) => {
356
353
  if (pathname === "/_next/webpack-hmr") {
357
354
  logger_default.info("inside nextjs hot module reloading path");
358
355
  nextApp.getUpgradeHandler()(req, socket, head);
359
- } else if (pathname === "/api/ws") {
360
- logger_default.info("inside websocket server path");
356
+ }
357
+ if (pathname === "/api/ws") {
361
358
  wss.handleUpgrade(req, socket, head, (ws) => {
362
359
  wss.emit("connection", ws, req);
363
360
  });
364
- } else {
365
- logger_default.info("unknown ws path destory socket", pathname);
366
- socket.destroy();
367
361
  }
368
362
  });
369
363
  });
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.16",
9
+ version: "0.0.17",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -29,7 +29,7 @@ var package_default = {
29
29
  tsup: "tsup --tsconfig tsconfig.build.json && node build-preview-server.js",
30
30
  build: "next build",
31
31
  dev: "next dev -p 3005",
32
- "dev:live": "tsx src/cli/index.ts dev",
32
+ "dev:live": "tsx watch src/cli/index.ts dev",
33
33
  "dev:live:notused": "tsup --tsconfig tsconfig.build.json --watch",
34
34
  lint: "next lint",
35
35
  start: "next start",
@@ -88,7 +88,6 @@ var package_default = {
88
88
  "@types/react-dom": "^18.3.1",
89
89
  "@types/ws": "^8.5.12",
90
90
  postcss: "^8.4.39",
91
- "prettier-plugin-tailwindcss": "^0.6.8",
92
91
  "react-email": "3.0.1",
93
92
  tailwindcss: "^3.4.13",
94
93
  typescript: "^5.6.3"
@@ -239,13 +238,11 @@ function pdfTemplateWatcher() {
239
238
  // Ignore dot files
240
239
  });
241
240
  watcher2.add(Array.from(allFiles));
242
- watcher2.on("add", (filePath) => logger_default.debug(`File ${filePath} has been added`)).on(
243
- "change",
244
- (filePath) => logger_default.debug(`File ${filePath} has been changed`)
245
- ).on(
246
- "unlink",
247
- (filePath) => logger_default.debug(`File ${filePath} has been removed`)
248
- ).on("error", (error) => logger_default.error(`Watcher error: ${error}`));
241
+ watcher2.on("add", (filePath) => {
242
+ logger_default.debug(`File ${filePath} has been added`);
243
+ }).on("change", (filePath) => {
244
+ }).on("unlink", (filePath) => {
245
+ }).on("error", (error) => logger_default.error(`Watcher error: ${error}`));
249
246
  return watcher2;
250
247
  }
251
248
 
@@ -332,14 +329,11 @@ var startPreviewServer = async (pdfsDirRelativePath, port) => {
332
329
  if (pathname === "/_next/webpack-hmr") {
333
330
  logger_default.info("inside nextjs hot module reloading path");
334
331
  nextApp.getUpgradeHandler()(req, socket, head);
335
- } else if (pathname === "/api/ws") {
336
- logger_default.info("inside websocket server path");
332
+ }
333
+ if (pathname === "/api/ws") {
337
334
  wss.handleUpgrade(req, socket, head, (ws) => {
338
335
  wss.emit("connection", ws, req);
339
336
  });
340
- } else {
341
- logger_default.info("unknown ws path destory socket", pathname);
342
- socket.destroy();
343
337
  }
344
338
  });
345
339
  });
@@ -1 +1 @@
1
- lo0rR1N4wNElIr4ODG6Cy
1
+ S0LfO37YMLHJNvMGk_OGT
@@ -5,8 +5,8 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/lo0rR1N4wNElIr4ODG6Cy/_buildManifest.js",
9
- "static/lo0rR1N4wNElIr4ODG6Cy/_ssgManifest.js"
8
+ "static/S0LfO37YMLHJNvMGk_OGT/_buildManifest.js",
9
+ "static/S0LfO37YMLHJNvMGk_OGT/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
12
  "pages": {
@@ -14,14 +14,15 @@
14
14
  "static/chunks/webpack-b8f8d6679aaa5f42.js",
15
15
  "static/chunks/framework-e0f347a11a70369e.js",
16
16
  "static/chunks/main-58cc12cfc6868a7a.js",
17
- "static/chunks/pages/index-87aa243f34ebeb5e.js"
17
+ "static/chunks/138-c24eca17d1ad2527.js",
18
+ "static/chunks/pages/index-cfb3abc654808c53.js"
18
19
  ],
19
20
  "/_app": [
20
21
  "static/chunks/webpack-b8f8d6679aaa5f42.js",
21
22
  "static/chunks/framework-e0f347a11a70369e.js",
22
23
  "static/chunks/main-58cc12cfc6868a7a.js",
23
- "static/css/4775703643ebce7c.css",
24
- "static/chunks/pages/_app-3647ba2a9492bf6f.js"
24
+ "static/css/ba34de3f88ea3d7b.css",
25
+ "static/chunks/pages/_app-2de82f9e83b4c360.js"
25
26
  ],
26
27
  "/_error": [
27
28
  "static/chunks/webpack-b8f8d6679aaa5f42.js",
@@ -39,8 +40,8 @@
39
40
  "static/chunks/webpack-b8f8d6679aaa5f42.js",
40
41
  "static/chunks/framework-e0f347a11a70369e.js",
41
42
  "static/chunks/main-58cc12cfc6868a7a.js",
42
- "static/chunks/11-c3207764c75fac42.js",
43
- "static/chunks/pages/preview/[...relTemplatePath]-c13e695dc8db2407.js"
43
+ "static/chunks/138-c24eca17d1ad2527.js",
44
+ "static/chunks/pages/preview/[...relTemplatePath]-d073643405d70bc7.js"
44
45
  ]
45
46
  },
46
47
  "ampFirstPages": []