@valbuild/server 0.81.0 → 0.83.0

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.
@@ -1722,15 +1722,15 @@ class ValOps {
1722
1722
  };
1723
1723
  }
1724
1724
 
1725
- // #region getPreviews
1726
- async getPreviews(schemas, sources) {
1727
- const previews = {};
1725
+ // #region getRenders
1726
+ async getRenders(schemas, sources) {
1727
+ const renders = {};
1728
1728
  for (const [pathS, schema] of Object.entries(schemas)) {
1729
1729
  const path = pathS;
1730
- previews[path] = schema["executePreview"](path, sources[path]);
1730
+ renders[path] = schema["executeRender"](path, sources[path]);
1731
1731
  }
1732
1732
  return {
1733
- previews
1733
+ renders
1734
1734
  };
1735
1735
  }
1736
1736
 
@@ -5641,7 +5641,7 @@ const ValServer = (valModules, options, callbacks) => {
5641
5641
  ...(onlyPatchedTreeModules.errors || {})
5642
5642
  }
5643
5643
  };
5644
- const previewsRes = await serverOps.getPreviews(schemasRes, sourcesRes.sources);
5644
+ const renderRes = await serverOps.getRenders(schemasRes, sourcesRes.sources);
5645
5645
  let sourcesValidation = {
5646
5646
  errors: {},
5647
5647
  files: {},
@@ -5688,7 +5688,7 @@ const ValServer = (valModules, options, callbacks) => {
5688
5688
  }
5689
5689
  modules[moduleFilePath] = {
5690
5690
  source: module,
5691
- preview: previewsRes.previews[moduleFilePath] || null,
5691
+ render: renderRes.renders[moduleFilePath] || null,
5692
5692
  patches: appliedPatches.length > 0 || skippedPatches.length > 0 || Object.keys(patchErrors).length > 0 ? {
5693
5693
  applied: appliedPatches,
5694
5694
  skipped: skippedPatches.length > 0 ? skippedPatches : undefined,
@@ -1722,15 +1722,15 @@ class ValOps {
1722
1722
  };
1723
1723
  }
1724
1724
 
1725
- // #region getPreviews
1726
- async getPreviews(schemas, sources) {
1727
- const previews = {};
1725
+ // #region getRenders
1726
+ async getRenders(schemas, sources) {
1727
+ const renders = {};
1728
1728
  for (const [pathS, schema] of Object.entries(schemas)) {
1729
1729
  const path = pathS;
1730
- previews[path] = schema["executePreview"](path, sources[path]);
1730
+ renders[path] = schema["executeRender"](path, sources[path]);
1731
1731
  }
1732
1732
  return {
1733
- previews
1733
+ renders
1734
1734
  };
1735
1735
  }
1736
1736
 
@@ -5641,7 +5641,7 @@ const ValServer = (valModules, options, callbacks) => {
5641
5641
  ...(onlyPatchedTreeModules.errors || {})
5642
5642
  }
5643
5643
  };
5644
- const previewsRes = await serverOps.getPreviews(schemasRes, sourcesRes.sources);
5644
+ const renderRes = await serverOps.getRenders(schemasRes, sourcesRes.sources);
5645
5645
  let sourcesValidation = {
5646
5646
  errors: {},
5647
5647
  files: {},
@@ -5688,7 +5688,7 @@ const ValServer = (valModules, options, callbacks) => {
5688
5688
  }
5689
5689
  modules[moduleFilePath] = {
5690
5690
  source: module,
5691
- preview: previewsRes.previews[moduleFilePath] || null,
5691
+ render: renderRes.renders[moduleFilePath] || null,
5692
5692
  patches: appliedPatches.length > 0 || skippedPatches.length > 0 || Object.keys(patchErrors).length > 0 ? {
5693
5693
  applied: appliedPatches,
5694
5694
  skipped: skippedPatches.length > 0 ? skippedPatches : undefined,
@@ -1691,15 +1691,15 @@ class ValOps {
1691
1691
  };
1692
1692
  }
1693
1693
 
1694
- // #region getPreviews
1695
- async getPreviews(schemas, sources) {
1696
- const previews = {};
1694
+ // #region getRenders
1695
+ async getRenders(schemas, sources) {
1696
+ const renders = {};
1697
1697
  for (const [pathS, schema] of Object.entries(schemas)) {
1698
1698
  const path = pathS;
1699
- previews[path] = schema["executePreview"](path, sources[path]);
1699
+ renders[path] = schema["executeRender"](path, sources[path]);
1700
1700
  }
1701
1701
  return {
1702
- previews
1702
+ renders
1703
1703
  };
1704
1704
  }
1705
1705
 
@@ -5610,7 +5610,7 @@ const ValServer = (valModules, options, callbacks) => {
5610
5610
  ...(onlyPatchedTreeModules.errors || {})
5611
5611
  }
5612
5612
  };
5613
- const previewsRes = await serverOps.getPreviews(schemasRes, sourcesRes.sources);
5613
+ const renderRes = await serverOps.getRenders(schemasRes, sourcesRes.sources);
5614
5614
  let sourcesValidation = {
5615
5615
  errors: {},
5616
5616
  files: {},
@@ -5657,7 +5657,7 @@ const ValServer = (valModules, options, callbacks) => {
5657
5657
  }
5658
5658
  modules[moduleFilePath] = {
5659
5659
  source: module,
5660
- preview: previewsRes.previews[moduleFilePath] || null,
5660
+ render: renderRes.renders[moduleFilePath] || null,
5661
5661
  patches: appliedPatches.length > 0 || skippedPatches.length > 0 || Object.keys(patchErrors).length > 0 ? {
5662
5662
  applied: appliedPatches,
5663
5663
  skipped: skippedPatches.length > 0 ? skippedPatches : undefined,
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "./package.json": "./package.json"
13
13
  },
14
14
  "types": "dist/valbuild-server.cjs.d.ts",
15
- "version": "0.81.0",
15
+ "version": "0.83.0",
16
16
  "scripts": {
17
17
  "typecheck": "tsc --noEmit",
18
18
  "test": "jest",
@@ -23,9 +23,9 @@
23
23
  "@types/jest": "^29.2.5"
24
24
  },
25
25
  "dependencies": {
26
- "@valbuild/core": "~0.81.0",
27
- "@valbuild/shared": "~0.81.0",
28
- "@valbuild/ui": "~0.81.0",
26
+ "@valbuild/core": "~0.83.0",
27
+ "@valbuild/shared": "~0.83.0",
28
+ "@valbuild/ui": "~0.83.0",
29
29
  "chokidar": "^4.0.1",
30
30
  "image-size": "^1.0.2",
31
31
  "minimatch": "^3.0.4",