@grafosoft/excel-validator 1.0.1 → 1.0.2

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.
@@ -26,7 +26,7 @@ const ExcelValidator = ({ initData, fileContent, matrix, validationErrors, onSel
26
26
  const content = lines.join("\n");
27
27
  const base64 = btoa(String.fromCharCode(...new TextEncoder().encode(content)));
28
28
  try {
29
- const response = await fetch(`http://lab.globho.com/api/v1/plains/upload?companyId=&apikey=`, {
29
+ const response = await fetch(`${initData.environment}api/v1/plains/upload?companyId=${initData.companyId}&apikey=${initData.apikey}`, {
30
30
  method: "POST",
31
31
  headers: {
32
32
  "Content-Type": "application/json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafosoft/excel-validator",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "React component to validate Excel files against configurable JSON rules.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",