@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 +2 -0
- package/dist/lib/wait.js +8 -0
- package/package.json +1 -1
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,
|
package/dist/lib/wait.js
ADDED