@joystick.js/node-canary 0.0.0-canary.81 → 0.0.0-canary.83

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/dist/app/index.js CHANGED
@@ -184,12 +184,14 @@ class App {
184
184
  const browserSafeRequest = getBrowserSafeRequest(req);
185
185
  const data = await getDataFromComponent(componentInstance, apiForDataFunctions, browserSafeRequest);
186
186
  const translations = await getTranslations({ build: buildPath, page: req?.query?.pathToComponent }, req);
187
+ const settings = loadSettings();
187
188
  return res.status(200).send({
188
189
  data: {
189
190
  [data?.componentId]: data?.data
190
191
  },
191
- translations,
192
- req: browserSafeRequest
192
+ req: browserSafeRequest,
193
+ settings,
194
+ translations
193
195
  });
194
196
  }
195
197
  res.status(200).send({ data: {}, translations: {} });
@@ -207,7 +209,7 @@ class App {
207
209
  });
208
210
  res.status(200).send(JSON.stringify({
209
211
  ...signup?.user || {},
210
- joystickToken: signup?.token,
212
+ joystickLoginToken: signup?.token,
211
213
  joystickLoginTokenExpiresAt: signup?.tokenExpiresAt
212
214
  }));
213
215
  });
@@ -220,7 +222,7 @@ class App {
220
222
  });
221
223
  res.status(200).send(JSON.stringify({
222
224
  ...login?.user || {},
223
- joystickToken: login?.token,
225
+ joystickLoginToken: login?.token,
224
226
  joystickLoginTokenExpiresAt: login?.tokenExpiresAt
225
227
  }));
226
228
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.81",
3
+ "version": "0.0.0-canary.83",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",