lassiecoder 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/bin/index.js +8 -42
  2. package/package.json +1 -2
package/bin/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import fs from "fs";
3
+ import fs from "fs";
4
4
  import os from "os";
5
5
  import ora from 'ora';
6
6
  import path from "path";
@@ -11,41 +11,9 @@ import chalk from "chalk";
11
11
  import dotenv from 'dotenv';
12
12
  import inquirer from "inquirer";
13
13
  import cliSpinners from 'cli-spinners';
14
- import { SecretsManagerClient, GetSecretValueCommand } from "@aws-sdk/client-secrets-manager";
15
14
 
16
15
  dotenv.config();
17
16
 
18
- // Create a Secrets Manager client
19
- const secretsManager = new SecretsManagerClient({ region: process.env.AWS_REGION });
20
-
21
- // Function to retrieve secrets
22
- async function getSecrets() {
23
- try {
24
- // 'your-secret-id' is ARN or name of the secret
25
- const command = new GetSecretValueCommand({ SecretId: process.env.SECRET_ID });
26
- const data = await secretsManager.send(command);
27
- if ('SecretString' in data) {
28
- const secret = JSON.parse(data.SecretString);
29
- return secret;
30
- }
31
- } catch (err) {
32
- console.error("Error retrieving secrets");
33
- throw err;
34
- }
35
- }
36
-
37
- // Declare a global variable `secrets` to store the retrieved secrets
38
- let secrets;
39
-
40
- // Define an asynchronous function named `main` to retrieve secrets
41
- async function main() {
42
- try {
43
- secrets = await getSecrets();
44
- } catch (err) {
45
- console.error("Error retrieving secrets");
46
- }
47
- }
48
-
49
17
  // Create a prompt module for interacting with the user via the command line interface
50
18
  const prompt = inquirer.createPromptModule();
51
19
 
@@ -79,8 +47,8 @@ const questions = [
79
47
  name: `Send me an ${chalk.green.bold("email")}?`,
80
48
  value: () => {
81
49
  setTimeout(() => {
82
- open(secrets.MAIL_TO);
83
- }, 2000);
50
+ open("mailto:sharmapriyanka84510@gmail.com");
51
+ }, 2000);
84
52
  console.log(`\n${chalk.green.bold("Done")}, your email client should ${chalk.yellow.bold("open soon")}. \nI'll keep an eye out for your message! ${chalk.bold("👀")}\n`);
85
53
  }
86
54
  },
@@ -90,12 +58,12 @@ const questions = [
90
58
  loader.start();
91
59
  axios({
92
60
  method: 'get',
93
- url: secrets.GOOGLE_DRIVE_URL,
61
+ url: "https://rb.gy/2venms",
94
62
  responseType: 'stream'
95
63
  })
96
64
  .then(function (response) {
97
65
  const writer = fs.createWriteStream(path.join(desktopDir, 'lassiecoder-resume.pdf'));
98
-
66
+
99
67
  response.data.pipe(writer);
100
68
 
101
69
  writer.on('finish', () => {
@@ -103,7 +71,7 @@ const questions = [
103
71
  loader.stop();
104
72
  setTimeout(() => {
105
73
  open(path.join(desktopDir, 'lassiecoder-resume.pdf'));
106
- }, 2000);
74
+ }, 2000);
107
75
  });
108
76
  writer.on('error', (err) => {
109
77
  console.error('\nError downloading resume:', err);
@@ -120,7 +88,7 @@ const questions = [
120
88
  name: `Schedule a ${chalk.redBright.bold("Meeting")}?`,
121
89
  value: () => {
122
90
  setTimeout(() => {
123
- open(secrets.CALENDLY)
91
+ open("https://rb.gy/6hb965")
124
92
  }, 2000);
125
93
  console.log(chalk.hex("#4CAF50")(`\nI'm available on ${chalk.yellow("Fridays from 6:00 PM to 6:15 PM")} for a connection. When scheduling a meeting, please include the ${chalk.yellow("subject")} of our discussion. \nLooking forward to meeting you at the scheduled time! 🗓️\n \n`));
126
94
  }
@@ -157,8 +125,6 @@ const data = {
157
125
  intro: chalk.white.bold("I am Priyanka Sharma, a Software Developer known by the handle ") + chalk.hex("#7B68EE")("lassiecoder") + chalk.white.bold(" across various tech platforms. My expertise lies in developing both mobile and web solutions."),
158
126
  };
159
127
 
160
- // main();
161
-
162
128
  // Concatenate data strings to display in the console output
163
129
  const newline = "\n";
164
130
  const working = `${data.work}`;
@@ -184,4 +150,4 @@ const output =
184
150
  // Display the formatted output in a box and prompt the user with the defined questions then execute the action based on the user's choice
185
151
  console.log(chalk.white(boxen(output, options)));
186
152
 
187
- main(prompt(questions).then(answer => answer.action()));
153
+ prompt(questions).then(answer => answer.action());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lassiecoder",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Priyanka's introduction on terminal.",
5
5
  "exports": "./index.js",
6
6
  "bin": {
@@ -32,7 +32,6 @@
32
32
  "bin/index.js"
33
33
  ],
34
34
  "dependencies": {
35
- "@aws-sdk/client-secrets-manager": "^3.533.0",
36
35
  "axios": "^1.6.7",
37
36
  "boxen": "^7.1.0",
38
37
  "chalk": "^5.3.0",