@repdf/preview 0.0.13 → 0.0.14
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/README.md +11 -1
- package/dist/index.cjs +3 -4
- package/dist/index.js +3 -4
- package/dist/preview/.next/BUILD_ID +1 -1
- package/dist/preview/.next/build-manifest.json +2 -2
- 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/client-production/index.pack.old +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/cache/webpack/server-production/index.pack.old +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/functions-config-manifest.json +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-manifest.json +1 -1
- package/dist/preview/.next/trace +14 -14
- package/package.json +1 -1
- /package/dist/preview/.next/static/{ek5PUJ-kuCFNuyqnUz9I2 → unWRLxcyb0kpzlwdDMgbW}/_buildManifest.js +0 -0
- /package/dist/preview/.next/static/{ek5PUJ-kuCFNuyqnUz9I2 → unWRLxcyb0kpzlwdDMgbW}/_ssgManifest.js +0 -0
package/README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
STILL IN DEVELOPMENT
|
|
2
2
|
|
|
3
|
-
repdf preview app
|
|
3
|
+
repdf preview app
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
TODO:
|
|
7
|
+
- [ ] return rather than throw error if the provided pdf folder does not exist so the user gets a better error message
|
|
8
|
+
- [ ] add a way to test the email renderer
|
|
9
|
+
- [ ] add a way to test the pdf renderer
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Gotchas For Development:
|
|
13
|
+
- for some reason "static" pages dont work if you have a static page force it to be dynamic with a getServerSideProp for it to work
|
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.14",
|
|
33
33
|
type: "module",
|
|
34
34
|
main: "dist/index.js",
|
|
35
35
|
bin: {
|
|
@@ -278,8 +278,6 @@ var isDev = !__filename.endsWith("index.js");
|
|
|
278
278
|
console.log("cli script is in dev mode", isDev);
|
|
279
279
|
var cliPackageLocation = isDev ? import_path.default.resolve(__dirname, "../..") : import_path.default.resolve(__dirname, "../..");
|
|
280
280
|
var previewServerLocation = isDev ? import_path.default.resolve(__dirname, "../../..") : import_path.default.resolve(__dirname, "./preview");
|
|
281
|
-
console.log("isDev", isDev);
|
|
282
|
-
console.log("previewServerLocation", previewServerLocation);
|
|
283
281
|
var getEnvVariablesForPreviewApp = (relativePathToPdfsDirectory, cwd) => {
|
|
284
282
|
return {
|
|
285
283
|
RELATIVE_PATH_TO_PDF_FOLDER: relativePathToPdfsDirectory,
|
|
@@ -297,7 +295,8 @@ var startPreviewServer = async (pdfsDirRelativePath, port) => {
|
|
|
297
295
|
const wss = new import_ws2.WebSocketServer({ noServer: true });
|
|
298
296
|
process.env = {
|
|
299
297
|
...process.env,
|
|
300
|
-
NODE_ENV: "development",
|
|
298
|
+
NODE_ENV: isDev ? "development" : "production",
|
|
299
|
+
// TODO: why is this set to devlopment and is that right?
|
|
301
300
|
PORT: port.toString(),
|
|
302
301
|
...getEnvVariablesForPreviewApp(
|
|
303
302
|
// If we don't do normalization here, stuff like https://github.com/resend/react-email/issues/1354 happens.
|
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.14",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -254,8 +254,6 @@ var isDev = !__filename.endsWith("index.js");
|
|
|
254
254
|
console.log("cli script is in dev mode", isDev);
|
|
255
255
|
var cliPackageLocation = isDev ? path2.resolve(__dirname, "../..") : path2.resolve(__dirname, "../..");
|
|
256
256
|
var previewServerLocation = isDev ? path2.resolve(__dirname, "../../..") : path2.resolve(__dirname, "./preview");
|
|
257
|
-
console.log("isDev", isDev);
|
|
258
|
-
console.log("previewServerLocation", previewServerLocation);
|
|
259
257
|
var getEnvVariablesForPreviewApp = (relativePathToPdfsDirectory, cwd) => {
|
|
260
258
|
return {
|
|
261
259
|
RELATIVE_PATH_TO_PDF_FOLDER: relativePathToPdfsDirectory,
|
|
@@ -273,7 +271,8 @@ var startPreviewServer = async (pdfsDirRelativePath, port) => {
|
|
|
273
271
|
const wss = new WebSocketServer({ noServer: true });
|
|
274
272
|
process.env = {
|
|
275
273
|
...process.env,
|
|
276
|
-
NODE_ENV: "development",
|
|
274
|
+
NODE_ENV: isDev ? "development" : "production",
|
|
275
|
+
// TODO: why is this set to devlopment and is that right?
|
|
277
276
|
PORT: port.toString(),
|
|
278
277
|
...getEnvVariablesForPreviewApp(
|
|
279
278
|
// If we don't do normalization here, stuff like https://github.com/resend/react-email/issues/1354 happens.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
unWRLxcyb0kpzlwdDMgbW
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"devFiles": [],
|
|
6
6
|
"ampDevFiles": [],
|
|
7
7
|
"lowPriorityFiles": [
|
|
8
|
-
"static/
|
|
9
|
-
"static/
|
|
8
|
+
"static/unWRLxcyb0kpzlwdDMgbW/_buildManifest.js",
|
|
9
|
+
"static/unWRLxcyb0kpzlwdDMgbW/_ssgManifest.js"
|
|
10
10
|
],
|
|
11
11
|
"rootMainFiles": [],
|
|
12
12
|
"pages": {
|