@joystick.js/node-canary 0.0.0-canary.94 → 0.0.0-canary.95

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.
@@ -57,10 +57,6 @@ var getTranslations_default = async (paths = {}, req = {}) => {
57
57
  }
58
58
  }
59
59
  const translationsFile = await getTranslationsFile(matchingFile, paths);
60
- console.log({
61
- matchingFile,
62
- translationsFile
63
- });
64
60
  return translationsFile;
65
61
  };
66
62
  export {
@@ -122,6 +122,7 @@ var render_default = (req, res, next, appInstance = {}) => {
122
122
  if (layoutPath && fs.existsSync(layoutPath)) {
123
123
  props.page = Page;
124
124
  }
125
+ console.log("TRANSLATIONS IN SSR", translations);
125
126
  const html = await ssr({
126
127
  componentFunction: Layout || Page,
127
128
  req,
package/dist/ssr/index.js CHANGED
@@ -339,8 +339,8 @@ const ssr = async (options, { resolve, reject }) => {
339
339
  const dataFromComponent = await getDataFromComponent(componentInstance, apiForDataFunctions, browserSafeRequest).then((data) => data).catch((error) => {
340
340
  return [{ error }];
341
341
  });
342
- buildTreeForComponent(componentInstance, ssrTree);
343
- buildTreeForComponent(componentInstance, ssrTreeForCSS);
342
+ buildTreeForComponent(componentInstance, ssrTree, options?.translations);
343
+ buildTreeForComponent(componentInstance, ssrTreeForCSS, options?.translations);
344
344
  const dataFromTree = await getDataFromTree(ssrTree).then((data) => data).catch((error) => {
345
345
  return [{ error }];
346
346
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.94",
3
+ "version": "0.0.0-canary.95",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",