@paralect/hive 0.0.12 → 0.0.14

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.
@@ -12,7 +12,7 @@ module.exports = async () => {
12
12
  ]);
13
13
 
14
14
  try {
15
- await axios({ url: `https://hive-api-test.paralect.co/auth/login-code`, method: 'post', data: { email } });
15
+ await axios({ url: `https://hive-api-core.paralect.co/auth/login-code`, method: 'post', data: { email } });
16
16
 
17
17
  const { code } = await inquirer.prompt([
18
18
  {
@@ -22,7 +22,7 @@ module.exports = async () => {
22
22
  }
23
23
  ]);
24
24
 
25
- const { token, user } = (await axios({ url: `https://hive-api-test.paralect.co/auth/verify-login`, method: 'post', data: { email, code } })).data;
25
+ const { token, user } = (await axios({ url: `https://hive-api-core.paralect.co/auth/verify-login`, method: 'post', data: { email, code } })).data;
26
26
 
27
27
  process.env.HIVE_TOKEN = token;
28
28
  console.log(`
@@ -30,7 +30,9 @@ module.exports = async () => {
30
30
 
31
31
  Important: to save access add HIVE_TOKEN to your env variables and your ~/.zshrc file
32
32
 
33
- export HIVE_TOKEN=${token}`);
33
+ export HIVE_TOKEN=${token}
34
+
35
+ `);
34
36
 
35
37
  return { token, user };
36
38
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paralect/hive",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -35,9 +35,10 @@ const config = {
35
35
  },
36
36
 
37
37
  smtp: {
38
+ fromEmail: process.env.SMTP_FROM_EMAIL,
38
39
  host: process.env.SMTP_SERVER,
39
40
  port: process.env.SMTP_PORT,
40
- secure: true,
41
+ secure: false,
41
42
  auth: {
42
43
  user: process.env.SMTP_USER,
43
44
  pass: process.env.SMTP_KEY,
@@ -8,7 +8,7 @@ module.exports = {
8
8
  const transporter = nodemailer.createTransport(config.smtp)
9
9
 
10
10
  return await transporter.sendMail({
11
- from: process.env.SMTP_USER,
11
+ from: config.smtp.fromEmail,
12
12
  to, subject, html
13
13
  })
14
14
  }