fix(api, client): update Gatsby, webpack & related things (#41452)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Mrugesh Mohapatra
2021-03-26 00:43:43 +05:30
committed by GitHub
parent 92dfb3065c
commit ad9b1f89d8
71 changed files with 35182 additions and 9001 deletions

View File

@@ -14,7 +14,7 @@ export function ensureLowerCaseEmail(profile) {
: '';
}
export default function (UserIdent) {
export default function initializeUserIdent(UserIdent) {
UserIdent.on('dataSourceAttached', () => {
UserIdent.findOne$ = observeMethod(UserIdent, 'findOne');
});

View File

@@ -1,6 +1,6 @@
import { Observable } from 'rx';
export default function (Block) {
export default function initializeBlock(Block) {
Block.on('dataSourceAttached', () => {
Block.findOne$ = Observable.fromNodeCallback(Block.findOne, Block);
Block.findById$ = Observable.fromNodeCallback(Block.findById, Block);

View File

@@ -152,7 +152,7 @@ function populateRequiredFields(user) {
return;
}
export default function (User) {
export default function initializeUser(User) {
// set salt factor for passwords
User.settings.saltWorkFactor = 5;
// set user.rand to random number