Skip to content

Commit

Permalink
feat: added env IPFS_API_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
kostysh committed Jul 5, 2022
1 parent c41c15e commit eaa7f15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface IpfsApiAddResponse {
Size: string;
}

export const defaultIpfsApiHost =
export const defaultIpfsApiHost = process.env.IPFS_API_HOST ||
'https://staging-ipfs.marketplace.windingtree.com';

// Adds and pin a file to IPFS
Expand Down
2 changes: 1 addition & 1 deletion src/api/keysImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const importEthereum = async (
name: 'password',
message: 'Please provide a password',
validate: value =>
/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/.exec(value)
/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z])/.exec(value)
? true
: 'Password must consist of a minimum of eight characters, at least one letter and one number'
}
Expand Down

0 comments on commit eaa7f15

Please sign in to comment.