@bookmypuja-tech/bmp-pdf 0.2.18 → 0.2.20

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 (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -594,7 +594,7 @@ var Text7 = ({ children, style = {} }) => {
594
594
  }
595
595
  try {
596
596
  const xhr = new XMLHttpRequest();
597
- xhr.open("POST", "http://localhost:3000/api/text-to-image", false);
597
+ xhr.open("POST", "/api/text-to-image", false);
598
598
  xhr.setRequestHeader("Content-Type", "application/json");
599
599
  xhr.send(JSON.stringify({ text: childrenStr }));
600
600
  if (xhr.status === 200) {
@@ -611,7 +611,7 @@ var Text7 = ({ children, style = {} }) => {
611
611
  Image5,
612
612
  {
613
613
  key: index,
614
- src: `http://localhost:3000${imageLink}`,
614
+ src: `${process.env.NEXT_PUBLIC_APP_BASE_URL}/${imageLink}`,
615
615
  style: {
616
616
  width: "auto",
617
617
  height: style.fontSize || 12,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bookmypuja-tech/bmp-pdf",
3
3
  "description": "PDF Report Generation for Temple360 and T-360 by BookMyPuja",
4
- "version": "0.2.18",
4
+ "version": "0.2.20",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",