@joystick.js/node-canary 0.0.0-canary.74 → 0.0.0-canary.76

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
@@ -40,6 +40,7 @@ import getBrowserSafeRequest from "./getBrowserSafeRequest.js";
40
40
  import getDataFromComponent from "../ssr/getDataFromComponent.js";
41
41
  import getTranslations from "./middleware/getTranslations.js";
42
42
  import runUserQuery from "./accounts/runUserQuery.js";
43
+ import wait from "../lib/wait.js";
43
44
  process.setMaxListeners(0);
44
45
  class App {
45
46
  constructor(options = {}) {
@@ -191,6 +192,7 @@ class App {
191
192
  if (existingUser) {
192
193
  await runUserQuery("deleteUser", { userId: existingUser?._id || existingUser?.user_id });
193
194
  }
195
+ await wait(0.5);
194
196
  const signup = await accounts.signup({
195
197
  emailAddress: req?.body?.emailAddress,
196
198
  password: req?.body?.password,
@@ -0,0 +1,8 @@
1
+ var wait_default = (seconds = 0) => {
2
+ return new Promise((resolve) => {
3
+ setTimeout(() => resolve(), seconds * 1e3);
4
+ });
5
+ };
6
+ export {
7
+ wait_default as default
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.74",
3
+ "version": "0.0.0-canary.76",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",